Track open orders as pending until CTP fill, with cancel and timeout.

Add configurable pending timeout in settings and clearer CTP password save feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-26 00:05:45 +08:00
parent 7ea8fb6301
commit a23f2c80ca
10 changed files with 567 additions and 41 deletions
+2
View File
@@ -46,6 +46,8 @@ MONITOR_ORDER_COLUMNS = (
"ALTER TABLE trade_order_monitors ADD COLUMN position_pct REAL",
"ALTER TABLE trade_order_monitors ADD COLUMN mark_price REAL",
"ALTER TABLE trade_order_monitors ADD COLUMN float_pnl REAL",
"ALTER TABLE trade_order_monitors ADD COLUMN vt_order_id TEXT",
"ALTER TABLE trade_order_monitors ADD COLUMN order_price REAL",
)
TRADE_RESULTS = ("止损", "止盈", "移动止盈", "保本止盈", "手动平仓")