restore set_isolated_liq

This commit is contained in:
adriance 2022-03-14 11:29:26 +08:00
parent c9bbc4a824
commit 3d9c55d519

View File

@ -751,13 +751,13 @@ class Backtesting:
trade.adjust_stop_loss(trade.open_rate, self.strategy.stoploss, initial=True) trade.adjust_stop_loss(trade.open_rate, self.strategy.stoploss, initial=True)
# trade.set_isolated_liq(self.exchange.get_liquidation_price( trade.set_isolated_liq(self.exchange.get_liquidation_price(
# pair=pair, pair=pair,
# open_rate=propose_rate, open_rate=propose_rate,
# amount=amount, amount=amount,
# leverage=leverage, leverage=leverage,
# is_short=is_short, is_short=is_short,
# )) ))
order = Order( order = Order(
id=self.order_id_counter, id=self.order_id_counter,