Skip to content

Exchange of an altcoin to BTC is not tracked properly causing significant 8949 profit/loss calculation mistake #16

@CoolSpot

Description

@CoolSpot

For tax purposes, exchange of a $COIN to BTC is recorded as two transactions:

  1. sell $COIN for USD
  2. buy BTC with USD
    This is handled in the function CoinTaxes.py->fix_orders().

There is a mistake that for amount of $COIN sold, the order['cost'] is used instead of order['amount'].
The order['cost'] contains amount of BTC purchased, while order['amount'] contains amount of $COIN sold.

For example, if in reality you have sold 10 ETH to buy 1 BTC, due to the error, that would be recorded as two transactions:

  1. sale of 1 ETH for USD cost of 10 BTC
  2. purchase of 10 BTC with USD from the above
    Which significantly interferes with gain/loss and proceeds calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions