145 Commits

Author SHA1 Message Date
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
zhiyong
363cb17ea4 如果position data 文件不存在, 创建它 2025-05-10 23:39:11 +08:00
zhiyong
ffb2952fce update todayentrust to todayorders 2025-05-10 23:34:11 +08:00
zhiyong
e525c9e5f7 fix get_positions in simulation trader 2025-05-10 23:29:52 +08:00
zhiyong
89b8ffe767 fix sell in simulation trader 2025-05-10 23:22:29 +08:00
zhiyong
ba943ce9c6 fix sell in simulation trader 2025-05-10 23:20:29 +08:00
zhiyong
675ffb46a6 update logs dir and data dir 2025-05-10 23:03:41 +08:00
zhiyong
42f5064e77 fix no is_trading_hours in simulation trader 2025-05-10 22:58:16 +08:00
zhiyong
f8821fe1ad update data folder 2025-05-10 22:55:57 +08:00
zhiyong
cd0a747646 change log folder path 2025-05-10 22:48:01 +08:00
zhiyong
58c8bafe45 fix cannot buy for simulation trader 2025-05-10 22:41:56 +08:00
zhiyong
28de80a779 fix: no is_trading_hours in simulation trader 2025-05-10 22:37:31 +08:00
zhiyong
e818699c13 fix logger in base_trader 2025-05-10 22:14:51 +08:00
zhiyong
6ad14c689e fix buy sell for simulation trader 2025-05-10 22:11:22 +08:00
zhiyong
5e732bf97a update log in trade server 2025-05-10 21:43:12 +08:00
zhiyong
d9800ba094 remove unused method 2025-05-10 21:38:42 +08:00
zhiyong
f8448e0323 fix: cannot launch trader server 2025-05-10 21:33:57 +08:00
zhiyong
f971a95320 update python to 3.10.5 2025-05-10 21:20:47 +08:00
zhiyong
5b97619411 update login 2025-05-10 18:21:32 +08:00
zhiyong
ee165eb6fe updated trade server 2025-05-10 18:08:18 +08:00
zhiyong
a9f654d359 update position manager 2025-05-09 18:31:41 +08:00
zhiyong
978834772b refactor position manager 2025-05-01 15:19:27 +08:00
zhiyong
a407ce1f2f refactor trader 2025-05-01 05:33:28 +08:00
zhiyong
5823967305 doc: update readme doc 2025-05-01 04:23:09 +08:00
zhiyong
606cc5c652 update example 2025-05-01 00:21:46 +08:00
zhiyong
6cb24fb618 add more example 2025-04-30 23:58:03 +08:00
zhiyong
aec79fb718 refactor: manage pending order in strategy position manager only 2025-04-30 23:47:32 +08:00
zhiyong
1b462a3044 使用RealTraderManager 处理实盘交易 2025-04-30 23:27:37 +08:00
zhiyong
456e1c0c52 修改get_today_entrust, get_today_trades, get_balance, cancel 这几个方法中的对模拟盘的使用 2025-04-30 23:22:50 +08:00
zhiyong
aa08773d5f 删除多余的单例实现 2025-04-30 23:12:39 +08:00
zhiyong
84a07f4cff 不在RealTraderManager创建xtTrader 2025-04-30 23:09:31 +08:00
zhiyong
519d4d2021 删除 导入chinese_calendar失败的逻辑 2025-04-30 23:05:42 +08:00
zhiyong
95cd287675 优化很多小问题 2025-04-30 22:50:00 +08:00
zhiyong
fdee1c3da1 更新使用实盘还是模拟盘的逻辑 2025-04-30 22:16:48 +08:00
zhiyong
414dca6ee4 refactor: logger 2025-04-30 16:30:07 +08:00