use new names from bitcoin.de api v4
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user