Skip to content

Commit

Permalink
Include mining income in total assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Icermann authored and bitsofwinter committed Apr 9, 2018
1 parent d8997dd commit a79be60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ def get_sell_coin(trade:Trade):
tax_event = sell_coin.sell(trade.sell_amount, trade.sell_value)
if trade.date >= from_date:
tax_events.append(tax_event)

elif trade.type == 'Mining':
buy_coin = get_buy_coin(trade)
if buy_coin:
buy_coin.buy(trade.buy_amount, trade.buy_value)

elif trade.type == 'Gift/Tip':
buy_coin = get_buy_coin(trade)
Expand Down

0 comments on commit a79be60

Please sign in to comment.