use new names from bitcoin.de api v4

This commit is contained in:
2021-05-11 20:51:34 +02:00
parent 81a20860d5
commit 1ef459bcad
+4 -4
View File
@@ -37,10 +37,10 @@ class ImportBtcDe:
if trade['trading_pair'].upper().endswith(f): if trade['trading_pair'].upper().endswith(f):
t.fiat_currency = f t.fiat_currency = f
t.owner = Owner t.owner = Owner
t.crypto_amount = Decimal(trade['amount']) t.crypto_amount = Decimal(trade['amount_currency_to_trade'])
t.crypto_fee = Decimal(trade['fee_currency']) t.crypto_fee = Decimal(trade['fee_currency_to_trade'])
t.fiat_amount = Decimal(trade['volume']) t.fiat_amount = Decimal(trade['volume_currency_to_pay'])
t.fiat_fee = Decimal(trade['fee_eur']) t.fiat_fee = Decimal(trade['fee_currency_to_pay'])
if trade['type'] == 'sell': if trade['type'] == 'sell':
t.transaction_type = 'S' t.transaction_type = 'S'
else: else: