Administrator
2024-08-28 39b0f4f68268166b55360c75138d0d5413f0bf26
9点25之前的订阅处理
2个文件已修改
4 ■■■■ 已修改文件
huaxin_client/l1_client.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
huaxin_client/tool.py 2 ●●● 补丁 | 查看 | 原始文档 | 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