33 Commits

Author SHA1 Message Date
zhiyong
c443d0368a fix: stop and start cheduler 2025-05-29 19:57:09 +08:00
zhiyong
64c88dcc24 添加控制限价单超时后是否撤单并挂市价单补单的功能 2025-05-22 22:53:07 +08:00
zhiyong
1d893aa629 重构项目文件结构 2025-05-22 22:30:08 +08:00
zhiyong
7c8db6adeb 添加锁, 避免定时任务check_pending_orders堆积, 从而导致重复执行撤单, 补单 2025-05-16 20:07:18 +08:00
zhiyong
e7463158d2 优化check_pending_orders 2025-05-16 20:00:33 +08:00
zhiyong
1a4d8cd11e add more log for pending order checking 2025-05-16 14:15:06 +08:00
zhiyong
b1a291b632 always update order status 2025-05-15 13:54:06 +08:00
zhiyong
2f02d05daf fix check pending order 2025-05-15 13:47:07 +08:00
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
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
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
2f0d7e5a7e remove log 2025-05-15 09:52:08 +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
9736919a49 fix: 限价单后撤单下市价单没有工作 2025-05-14 11:00:41 +08:00
zhiyong
e79d622b2c fix Timer bug 2025-05-14 09:39:14 +08:00
zhiyong
d1edce5c94 feat: add all_orders in position manager 2025-05-13 00:20:51 +08:00
zhiyong
9a292f1609 refactor: 检查订单更新 2025-05-12 16:11:51 +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
f8448e0323 fix: cannot launch trader server 2025-05-10 21:33:57 +08:00
zhiyong
ee165eb6fe updated trade server 2025-05-10 18:08:18 +08:00
zhiyong
978834772b refactor position manager 2025-05-01 15:19:27 +08:00