huaxin_client/l1_client.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
huaxin_client/tool.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
huaxin_client/l1_client.py
@@ -161,7 +161,7 @@ def __upload_codes_info(queue_l1_w_strategy_r: multiprocessing.Queue, datas): if not tool.is_trade_time(): if not tool.is_trade_time() and not tool.is_pre_trade_time(): return # 上传数据 type_ = "set_target_codes" huaxin_client/tool.py
@@ -15,7 +15,7 @@ return False # 是否为交易前时间:9:25:00到9:30:00 # 是否为交易前时间:9:19:00到9:30:00 def is_pre_trade_time(): relative_timestamp = time.time() % (24 * 60 * 60) + 8 * 60 * 60 start1 = 60 * 60 * 9 + 19 * 60