fix for fees for selling.

fix for taxfree amount.
add description to transactions.
This commit is contained in:
2021-05-12 06:54:32 +02:00
parent 2818d9c11f
commit 68c26eb924
7 changed files with 70 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class ImportBtcDe:
if trade['trading_pair'].upper().endswith(f):
t.fiat_currency = f
t.owner = Owner
t.crypto_amount = Decimal(trade['amount_currency_to_trade'])
t.crypto_amount = Decimal(trade['amount_currency_to_trade'])-Decimal(trade['amount_currency_to_trade'])
t.crypto_fee = Decimal(trade['fee_currency_to_trade'])
t.fiat_amount = Decimal(trade['volume_currency_to_pay'])
t.fiat_fee = Decimal(trade['fee_currency_to_pay'])