|
@@ -1445,10 +1445,9 @@ class MarketMonitor:
|
|
|
# The execute_stop_loss_order should create the 'pending_trigger' order in the DB
|
|
|
# and return details, including the DB ID of this 'pending_trigger' order.
|
|
|
sl_result = await self.trading_engine.execute_stop_loss_order(
|
|
|
- token=token, # Assuming token is enough for execute_stop_loss_order
|
|
|
- stop_price=stop_loss_price,
|
|
|
- # Pass lifecycle_id or other refs if needed by trading_engine to create the DB order
|
|
|
- trade_lifecycle_id_for_sl=lifecycle_id
|
|
|
+ token=token,
|
|
|
+ stop_price=stop_loss_price
|
|
|
+ # trade_lifecycle_id_for_sl=lifecycle_id # REMOVED: TE.execute_stop_loss_order handles linking
|
|
|
)
|
|
|
|
|
|
if sl_result.get('success'):
|