From 1ef459bcad75e16732d954bfdb012db0955a9dd0 Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Tue, 11 May 2021 20:51:34 +0200 Subject: [PATCH] use new names from bitcoin.de api v4 --- apps/transactions/importbtcde.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: