129 Commits

Author SHA1 Message Date
zhiyong
050eaaf041 fix: available cash 2025-05-15 13:26:49 +08:00
zhiyong
292866257a fix: order timeout 2025-05-15 11:40:47 +08:00
zhiyong
28472a3bb1 update check pendding order 2025-05-15 11:14:53 +08:00
zhiyong
11c620310c refactor on_stock_trade 2025-05-15 11:07:28 +08:00
zhiyong
c8f31c445b fix on_stock_trade 2025-05-15 10:59:13 +08:00
zhiyong
80be197d8f update time of check limit order 2025-05-15 10:52:51 +08:00
zhiyong
9b2dd35fa8 remove copy 2025-05-15 10:50:26 +08:00
zhiyong
fd4fa0962e fix check_limit_order 2025-05-15 10:46:24 +08:00
zhiyong
8f2ea1c260 refactor check limit order 2025-05-15 10:43:15 +08:00
zhiyong
0f23e5d6ba add more log 2025-05-15 10:35:03 +08:00
zhiyong
db47776764 设置检查限价单时间为30s 2025-05-15 10:28:38 +08:00
zhiyong
e62ab751d8 fix: 检查限价单是否超时时发生异常 2025-05-15 10:19:21 +08:00
zhiyong
a6a081e773 减少锁的持有时间 2025-05-15 10:13:14 +08:00
zhiyong
2f0d7e5a7e remove log 2025-05-15 09:52:08 +08:00
zhiyong
24e10b3c3d update logger config 2025-05-14 23:38:06 +08:00
biggerfish
9e13f3c956
refactor: use order callback to update order status (#1)
* fix: logger is none

* 由订单回调触发订单状态更新和补单

* 使position manager 线程安全

* remove empty line
2025-05-14 23:07:03 +08:00
zhiyong
7d49e19f5d fix: 撤单后补单失败 2025-05-14 11:49:26 +08:00
zhiyong
0880d66abe add more log 2025-05-14 11:47:20 +08:00
zhiyong
e80125140b add more log to xt_trader 2025-05-14 11:24:15 +08:00
zhiyong
1308f5c757 update log for position manager 2025-05-14 11:07:54 +08:00
zhiyong
9736919a49 fix: 限价单后撤单下市价单没有工作 2025-05-14 11:00:41 +08:00
zhiyong
e79d622b2c fix Timer bug 2025-05-14 09:39:14 +08:00
zhiyong
289fc846c1 save positions when change 2025-05-13 10:39:03 +08:00
zhiyong
ad90cba1fb fix: convert string to int when buy/sell 2025-05-13 10:33:32 +08:00
zhiyong
f88909cb2d build: add more ignore 2025-05-13 00:36:13 +08:00
zhiyong
90691e84cf fix: 只有实盘在非交易时间不可用 2025-05-13 00:31:00 +08:00
zhiyong
d1edce5c94 feat: add all_orders in position manager 2025-05-13 00:20:51 +08:00
zhiyong
9453b92474 remove empty file 2025-05-12 23:38:15 +08:00
zhiyong
9a292f1609 refactor: 检查订单更新 2025-05-12 16:11:51 +08:00
zhiyong
959a83d011 添加市价单 2025-05-12 14:52:27 +08:00
zhiyong
6c3afde1b2 fix NPE 2025-05-12 14:34:11 +08:00
zhiyong
c94f226fbc 添加市价单 2025-05-12 14:33:04 +08:00
zhiyong
97920a0ede fix: 无法更新order状态 2025-05-12 13:59:58 +08:00
zhiyong
1c62db5fb6 add log 2025-05-12 13:53:34 +08:00
zhiyong
7601c64087 add log 2025-05-12 13:48:58 +08:00
zhiyong
0e171dc572 添加get_order 2025-05-12 13:39:10 +08:00
zhiyong
3e0fbec6da fix: 静态方法is_trading_time 2025-05-12 10:20:07 +08:00
zhiyong
9c93af0c3a ignore output 2025-05-12 10:11:18 +08:00
zhiyong
bb76f3c239 update readme 2025-05-11 22:35:50 +08:00
zhiyong
f29f22e3cb update example 2025-05-11 22:25:45 +08:00
zhiyong
d3c1fa1246 删除冗余的log 2025-05-11 21:50:06 +08:00
zhiyong
f57ec0451c remove debug codes 2025-05-11 21:47:36 +08:00
zhiyong
1d4d52c053 fix: restart mini qmt 2025-05-11 21:29:23 +08:00
zhiyong
f76b38d1f5 feat: restart mini qmt software on working day 2025-05-11 21:05:48 +08:00
zhiyong
2e094d2776 update get_trader 2025-05-11 20:06:33 +08:00
zhiyong
a93e51f273 update results when clear strategy positions but strategy does not exist 2025-05-11 02:42:43 +08:00
zhiyong
e85d8bcdc8 fix logs folder position 2025-05-11 02:37:06 +08:00
zhiyong
0d491d14e3 feat: 实盘登陆失败, 发送邮件, 并每小时尝试连接 2025-05-11 02:24:54 +08:00
zhiyong
1c1b19383c feat: 自动重连, 并在重连失败时发送邮件警报 2025-05-11 02:05:39 +08:00
zhiyong
a9e074a116 添加断线重连功能 2025-05-11 01:18:04 +08:00