diff --git a/apps/transactions/importbtcde.py b/apps/transactions/importbtcde.py index 61ee798..4d0c5ea 100644 --- a/apps/transactions/importbtcde.py +++ b/apps/transactions/importbtcde.py @@ -37,10 +37,10 @@ class ImportBtcDe: if trade['trading_pair'].upper().endswith(f): t.fiat_currency = f t.owner = Owner - t.crypto_amount = Decimal(trade['amount']) - t.crypto_fee = Decimal(trade['fee_currency']) - t.fiat_amount = Decimal(trade['volume']) - t.fiat_fee = Decimal(trade['fee_eur']) + t.crypto_amount = 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']) if trade['type'] == 'sell': t.transaction_type = 'S' else: