claude_dev
|
8c06ef1e53
|
feat(bridge): 补 /orders+/cancel 端点与客户端(实盘查委托/撤单)
bridge.py: POST /cancel + GET /orders; xt_gateway: query_orders/cancel_order(含xtquant状态映射50挂单/56已成/57拒单/54撤单); bridge_client: get_orders/cancel_order. 已在 VPS 生产验证.
|
2026-07-15 07:12:46 +08:00 |
|
claude_dev
|
b25b1e0331
|
feat(bridge): D-2 update.bat半自动更新脚本(git pull+重启bridge, 双击运行)
|
2026-07-11 07:44:52 +08:00 |
|
claude_dev
|
cadc59e6dc
|
feat(bridge): bridge稳定性完善—自动重连miniQMT+health探活+交易日判断
- xt_gateway: _open_session抽离, reconnect(stop旧trader+重建), is_alive(query探活), _retry_with_reconnect(query/order失败重连重试一次)
- query_account/positions/place_order包重试: 断线(异常/None)→reconnect→重试, broker拒单(order_id<=0)不重连
- bridge /health: is_alive真实探活(5s缓存)+断线后台reconnect(不阻塞), 不再假阳性
- trade_calendar: is_trading_day(周一-周五), /order非交易日加warning(120141提示)
- test_gateway15+test_trade_calendar6=NAS21passed, 回归bridge_client/d4a 10绿
- 修复Issue#4运维发现: miniQMT重启后bridge自动重连(无需手动重启)
|
2026-07-11 07:32:23 +08:00 |
|
claude_dev
|
eff9ed2ae9
|
feat(bridge): D-1 bridge MVP—FastAPI 4接口(xtquant封装+token鉴权+sh/sz代码转换)
- bridge.py: lifespan连miniQMT, health/order/account/positions, 连不上不崩
- xt_gateway.py: xtquant单例封装(延迟import), 照搬check_xtquant验证模式
- auth.py: X-Bridge-Token校验(hmac防时序攻击), 未配token返回503不裸奔
- requirements.txt(fastapi+uvicorn) + README.md(Windows部署步骤)
安全: 无硬编码secret, token/userdata/account均走环境变量(grep验证CLEAN)
|
2026-07-10 23:48:59 +08:00 |
|
claude_dev
|
6a40ae9336
|
fix(bridge): check_xtquant step3改用StockAccount对象(xtquant本版无xttrader.STOCK_ACCOUNT)
|
2026-07-10 23:25:04 +08:00 |
|
claude_dev
|
baab212a86
|
feat(bridge): D-1 xtquant 可用性验证脚本 check_xtquant.py
分3步探活(import xtquant / connect miniQMT / 查询模拟账户资金持仓)
已填国金QMT模拟独立交易环境(账号66639661)
|
2026-07-10 22:52:56 +08:00 |
|