fix: Calculate liquidation price only once the initial order filled
closes #11318
This commit is contained in:
@@ -35,6 +35,7 @@ def update_liquidation_prices(
|
||||
|
||||
open_trades: list[Trade] = Trade.get_open_trades()
|
||||
for t in open_trades:
|
||||
if t.has_open_position:
|
||||
# TODO: This should be done in a batch update
|
||||
t.set_liquidation_price(
|
||||
exchange.get_liquidation_price(
|
||||
|
||||
Reference in New Issue
Block a user