For tax purposes, exchange of a $COIN to BTC is recorded as two transactions:
- sell $COIN for USD
- 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:
- sale of 1 ETH for USD cost of 10 BTC
- purchase of 10 BTC with USD from the above
Which significantly interferes with gain/loss and proceeds calculations.