tradingSystem/docs/evidence/pms_day_order_cancel_202610...

494 lines
17 KiB
JSON

{
"cause": {
"at": "2026-10-30T10:40:35.812835",
"params": {
"PMS_DISPATCH_MODE": "ws",
"PMS_RECON_SOURCE": "ws_only",
"PMS_QMT_WS_URL": "ws://192.168.18.182:9443/pms",
"PMS_QMT_WS_ENABLED": true,
"PMS_GLOBAL_BUY_HALT": false,
"PMS_GLOBAL_EXEC_HALT": false,
"PMS_EXEC_QMT_PRICE_MONITOR": true,
"PMS_DAILY_BUY_REVIEW": true,
"PMS_ORDER_TTL_MIN": 10
},
"orders": [
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793326860000,
"created_at": "2026-10-30 10:11:05",
"sent_at": "2026-10-30 10:11:05",
"final_at": "2026-10-30 10:21:28",
"updated_at": "2026-10-30 10:21:28",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-c4591a9c78",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793327520000,
"created_at": "2026-10-30 10:22:02",
"sent_at": "2026-10-30 10:22:02",
"final_at": "2026-10-30 10:32:02",
"updated_at": "2026-10-30 10:32:02",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-6d51935a96",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D03",
"status": "ACCEPTED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": null,
"limit_price": "23.30",
"valid_until": 1793328180000,
"created_at": "2026-10-30 10:33:01",
"sent_at": "2026-10-30 10:33:02",
"final_at": null,
"updated_at": "2026-10-30 10:33:02",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-18347d4c92",
"reject_code": null
}
],
"messages": [
{
"seq": 1501990,
"msg_type": "persist_result",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D03",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D03\", \"scope\": \"final\", \"trade_no\": null, \"ok\": true, \"tables\": {\"trading_order\": \"DESK-18347d4c92\"}, \"error\": null}",
"received_at": "2026-10-30 10:33:02"
},
{
"seq": 1501989,
"msg_type": "ack",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D03",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D03\", \"accepted\": true, \"duplicate\": false, \"broker_order_id\": \"DESK-18347d4c92\", \"status\": \"ACCEPTED\"}",
"received_at": "2026-10-30 10:33:02"
},
{
"seq": 1501972,
"msg_type": "order_update",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D02\", \"broker_order_id\": \"DESK-6d51935a96\", \"status\": \"EXPIRED\", \"final\": true, \"cum_qty\": 0, \"cum_avg_price\": null, \"leaves_qty\": 0, \"update_time\": 1793327521896, \"reason\": \"valid_until\"}",
"received_at": "2026-10-30 10:32:02"
},
{
"seq": 1501811,
"msg_type": "persist_result",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D02\", \"scope\": \"final\", \"trade_no\": null, \"ok\": true, \"tables\": {\"trading_order\": \"DESK-6d51935a96\"}, \"error\": null}",
"received_at": "2026-10-30 10:22:02"
},
{
"seq": 1501810,
"msg_type": "ack",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D02\", \"accepted\": true, \"duplicate\": false, \"broker_order_id\": \"DESK-6d51935a96\", \"status\": \"ACCEPTED\"}",
"received_at": "2026-10-30 10:22:02"
},
{
"seq": 1501798,
"msg_type": "order_update",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D01\", \"broker_order_id\": \"DESK-c4591a9c78\", \"status\": \"EXPIRED\", \"final\": true, \"cum_qty\": 0, \"cum_avg_price\": null, \"leaves_qty\": 0, \"update_time\": 1793326879970, \"reason\": \"valid_until\"}",
"received_at": "2026-10-30 10:21:28"
},
{
"seq": 1501639,
"msg_type": "persist_result",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D01\", \"scope\": \"final\", \"trade_no\": null, \"ok\": true, \"tables\": {\"trading_order\": \"DESK-c4591a9c78\"}, \"error\": null}",
"received_at": "2026-10-30 10:11:05"
},
{
"seq": 1501638,
"msg_type": "ack",
"corr_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"payload_json": "{\"instruction_id\": \"INS_20261030_688100SH_OPEN_001_39f88720f32d_D01\", \"accepted\": true, \"duplicate\": false, \"broker_order_id\": \"DESK-c4591a9c78\", \"status\": \"ACCEPTED\"}",
"received_at": "2026-10-30 10:11:05"
}
]
},
"deployment": {
"at_beijing": "2026-10-30 10:52:39",
"health": {
"status": "ok",
"version": "0.2.0-dev",
"service": "pms-web",
"now": "2026-10-30 10:52:39",
"trade_day": true,
"calendar_degraded": false,
"db_ok": true
},
"source_commit": "2eaec70",
"image": "pms:day-order-2eaec70",
"server_commit": "6702090",
"page_sha256": "2b55496a0298e0ed86f9b6e5c4fde07212a41da910add08ba83e53b0b850990f",
"worker_idle_before": {
"celery@308c9752144e": []
},
"recreated": [
"pms-web",
"pms-worker",
"pms-ws"
],
"parameter": {
"ok": true,
"key": "PMS_EXEC_QMT_DAY_ORDER",
"value": true
},
"beat_unchanged": true,
"environment_mounts_unchanged": true,
"services": {
"pms-web": {
"image": "pms:day-order-2eaec70",
"started": "2026-10-30T02:52:34.907638327Z"
},
"pms-worker": {
"image": "pms:day-order-2eaec70",
"started": "2026-10-30T02:52:34.905973353Z"
},
"pms-beat": {
"image": "pms:micro30-f1424f3",
"started": "2026-10-28T04:48:27.998315799Z"
},
"pms-ws": {
"image": "pms:day-order-2eaec70",
"started": "2026-10-30T02:52:34.905287589Z"
}
}
},
"verification": [
{
"at": "2026-10-30T10:53:00.840527",
"params": {
"PMS_DISPATCH_MODE": "ws",
"PMS_RECON_SOURCE": "ws_only",
"PMS_QMT_WS_URL": "ws://192.168.18.182:9443/pms",
"PMS_QMT_WS_ENABLED": true,
"PMS_GLOBAL_BUY_HALT": false,
"PMS_GLOBAL_EXEC_HALT": false,
"PMS_EXEC_QMT_PRICE_MONITOR": true,
"PMS_DAILY_BUY_REVIEW": true,
"PMS_ORDER_TTL_MIN": 10,
"PMS_EXEC_QMT_DAY_ORDER": true
},
"channel": {
"process_alive": true,
"conn_state": "ONLINE",
"online": true,
"heartbeat_age_sec": 1.0,
"last_seq": 1502289,
"acked_seq": 1502289,
"resync_required": false,
"queue": {
"ABORTED": 2,
"ACCEPTED": 1,
"CANCELLED": 2,
"EXPIRED": 57,
"FILLED": 360,
"REJECTED": 5
},
"inbox_pending": 0,
"orphan_held": 0,
"error": null,
"connected_at": "2026-10-30 10:52:37",
"last_error": "",
"stat": {
"rx": 6,
"tx": 12,
"trades": 0,
"rejects": 0,
"reconnects": 0,
"dropped": 0,
"last_rx_at": "10:52:57",
"last_tx_at": "10:52:57",
"hs_server_seq": 1502282,
"hs_last_seq": 1502282,
"snap_positions_at": "10:52:37",
"snap_positions_n": 2,
"snap_funds_at": "10:52:37",
"seq_hwm": 1502289,
"peer_skew_ms": -56,
"peer_skew_min": -59,
"peer_skew_max": -44
}
},
"cash": {
"source": "ws",
"cash_avail": 1912221.0,
"total_asset": 1997349.0,
"account_market_value": 85128.0,
"frozen_cash": 0.0,
"age_sec": 24.0,
"why": ""
},
"recon": {
"ok": true,
"diffs": [],
"fixes": [],
"errors": [],
"severity": "OK",
"source": "ws",
"note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略"
},
"cash_difference": 0.0,
"orders": [
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793326860000,
"created_at": "2026-10-30 10:11:05",
"sent_at": "2026-10-30 10:11:05",
"final_at": "2026-10-30 10:21:28",
"updated_at": "2026-10-30 10:21:28",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-c4591a9c78",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793327520000,
"created_at": "2026-10-30 10:22:02",
"sent_at": "2026-10-30 10:22:02",
"final_at": "2026-10-30 10:32:02",
"updated_at": "2026-10-30 10:32:02",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-6d51935a96",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D03",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793328180000,
"created_at": "2026-10-30 10:33:01",
"sent_at": "2026-10-30 10:33:02",
"final_at": "2026-10-30 10:43:01",
"updated_at": "2026-10-30 10:43:01",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-18347d4c92",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D04",
"status": "ACCEPTED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": null,
"limit_price": "23.30",
"valid_until": 1793328780000,
"created_at": "2026-10-30 10:43:06",
"sent_at": "2026-10-30 10:43:06",
"final_at": null,
"updated_at": "2026-10-30 10:43:06",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-7eb3c789d8",
"reject_code": null
}
]
},
{
"at": "2026-10-30T10:54:05.684820",
"params": {
"PMS_DISPATCH_MODE": "ws",
"PMS_RECON_SOURCE": "ws_only",
"PMS_QMT_WS_URL": "ws://192.168.18.182:9443/pms",
"PMS_QMT_WS_ENABLED": true,
"PMS_GLOBAL_BUY_HALT": false,
"PMS_GLOBAL_EXEC_HALT": false,
"PMS_EXEC_QMT_PRICE_MONITOR": true,
"PMS_DAILY_BUY_REVIEW": true,
"PMS_ORDER_TTL_MIN": 10,
"PMS_EXEC_QMT_DAY_ORDER": true
},
"channel": {
"process_alive": true,
"conn_state": "ONLINE",
"online": true,
"heartbeat_age_sec": 1.8,
"last_seq": 1502309,
"acked_seq": 1502309,
"resync_required": false,
"queue": {
"ABORTED": 2,
"ACCEPTED": 1,
"CANCELLED": 2,
"EXPIRED": 58,
"FILLED": 360,
"REJECTED": 5
},
"inbox_pending": 0,
"orphan_held": 0,
"error": null,
"connected_at": "2026-10-30 10:52:37",
"last_error": "",
"stat": {
"rx": 26,
"tx": 44,
"trades": 0,
"rejects": 0,
"reconnects": 0,
"dropped": 0,
"last_rx_at": "10:54:02",
"last_tx_at": "10:54:03",
"hs_server_seq": 1502282,
"hs_last_seq": 1502282,
"snap_positions_at": "10:53:37",
"snap_positions_n": 2,
"snap_funds_at": "10:53:37",
"seq_hwm": 1502309,
"peer_skew_ms": -56,
"peer_skew_min": -59,
"peer_skew_max": -44
}
},
"cash": {
"source": "ws",
"cash_avail": 1912221.0,
"total_asset": 1997299.0,
"account_market_value": 85078.0,
"frozen_cash": 0.0,
"age_sec": 27.8,
"why": ""
},
"recon": {
"ok": true,
"diffs": [],
"fixes": [],
"errors": [],
"severity": "OK",
"source": "ws",
"note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略"
},
"cash_difference": 0.0,
"orders": [
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D01",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793326860000,
"created_at": "2026-10-30 10:11:05",
"sent_at": "2026-10-30 10:11:05",
"final_at": "2026-10-30 10:21:28",
"updated_at": "2026-10-30 10:21:28",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-c4591a9c78",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D02",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793327520000,
"created_at": "2026-10-30 10:22:02",
"sent_at": "2026-10-30 10:22:02",
"final_at": "2026-10-30 10:32:02",
"updated_at": "2026-10-30 10:32:02",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-6d51935a96",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D03",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793328180000,
"created_at": "2026-10-30 10:33:01",
"sent_at": "2026-10-30 10:33:02",
"final_at": "2026-10-30 10:43:01",
"updated_at": "2026-10-30 10:43:01",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-18347d4c92",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D04",
"status": "EXPIRED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": 0,
"limit_price": "23.30",
"valid_until": 1793328780000,
"created_at": "2026-10-30 10:43:06",
"sent_at": "2026-10-30 10:43:06",
"final_at": "2026-10-30 10:53:02",
"updated_at": "2026-10-30 10:53:02",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-7eb3c789d8",
"reject_code": null
},
{
"instruction_id": "INS_20261030_688100SH_OPEN_001_39f88720f32d_D05",
"status": "ACCEPTED",
"qty": 400,
"cum_qty": 0,
"leaves_qty": null,
"limit_price": "23.30",
"valid_until": 1793343600000,
"created_at": "2026-10-30 10:53:04",
"sent_at": "2026-10-30 10:53:05",
"final_at": null,
"updated_at": "2026-10-30 10:53:05",
"cancel_state": "NONE",
"cancel_req_at": null,
"broker_order_id": "DESK-9da5d84aa1",
"reject_code": null
}
]
}
],
"tests": {
"local_special_cases": 22,
"local_full_regression": "PASS before final cancel-read-failure follow-up",
"server_final_image": "pms:day-order-2eaec70",
"server_offline_full": "ALL SUITES PASS",
"artificial_live_orders": 0,
"cancel_fill_races": "isolated replay only"
}
}