Fix trailing break-even stop loss not linked to CTP positions.

Match pending monitors to filled positions, reconcile pending on fast refresh, and refresh CTP before promote.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 09:26:54 +08:00
parent 45ae57ed43
commit d366344b0f
2 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ def reconcile_pending_orders(
match = match_symbol_fn or _match_symbol
positions = (
list_positions_fn(mode, refresh_if_empty=False, refresh_margin=False)
list_positions_fn(mode, refresh_if_empty=True, refresh_margin=False)
if list_positions_fn
else []
)