mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Reinit orders list on "local" objects to instance variable
This commit is contained in:
parent
e97d9013d5
commit
2c20464983
|
@ -536,6 +536,7 @@ class LocalTrade:
|
|||
for key in kwargs:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.recalc_open_trade_value()
|
||||
self.orders = []
|
||||
if self.trading_mode == TradingMode.MARGIN and self.interest_rate is None:
|
||||
raise OperationalException(
|
||||
f"{self.trading_mode.value} trading requires param interest_rate on trades")
|
||||
|
|
Loading…
Reference in New Issue
Block a user