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:
@@ -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 = ("止损", "止盈", "移动止盈", "保本止盈", "手动平仓")
|
||||
|
||||
Reference in New Issue
Block a user