mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 12:13:57 +00:00
Fix test after merge, fix forgotten 'amount'
This commit is contained in:
parent
9999d0ffb5
commit
815d88fd4a
|
@ -553,7 +553,7 @@ class FreqtradeBot:
|
||||||
order['filled'], order['amount'], order['remaining']
|
order['filled'], order['amount'], order['remaining']
|
||||||
)
|
)
|
||||||
stake_amount = order['cost']
|
stake_amount = order['cost']
|
||||||
amount = order['filled']
|
amount = safe_value_fallback(order, 'filled', 'amount')
|
||||||
buy_limit_filled_price = safe_value_fallback(order, 'average', 'price')
|
buy_limit_filled_price = safe_value_fallback(order, 'average', 'price')
|
||||||
order_id = None
|
order_id = None
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ class Trade(_DECL_BASE):
|
||||||
'is_open': self.is_open,
|
'is_open': self.is_open,
|
||||||
'exchange': self.exchange,
|
'exchange': self.exchange,
|
||||||
'amount': round(self.amount, 8),
|
'amount': round(self.amount, 8),
|
||||||
'amount_requested': round(self.amount_requested, 8),
|
'amount_requested': round(self.amount_requested, 8) if self.amount_requested else None,
|
||||||
'stake_amount': round(self.stake_amount, 8),
|
'stake_amount': round(self.stake_amount, 8),
|
||||||
'strategy': self.strategy,
|
'strategy': self.strategy,
|
||||||
'ticker_interval': self.timeframe, # DEPRECATED
|
'ticker_interval': self.timeframe, # DEPRECATED
|
||||||
|
|
Loading…
Reference in New Issue
Block a user