Administrator
2024-02-19 fb8164481fca9d389b70956bb50521cdd92c8c81
真实成交位bug修复
1个文件已修改
3 ■■■■ 已修改文件
l2/huaxin/huaxin_delegate_postion_manager.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/huaxin/huaxin_delegate_postion_manager.py
@@ -80,6 +80,7 @@
        shadow_place_order_index = d["index"]
        break
    real_place_index_info = None
    estimate_time_space = 1 if code.find("00") == 0 else 2.5
    if shadow_place_order_index:
        total_datas = l2_data_util.local_today_datas.get(code)
        # 找到不是同一ms的结束
@@ -121,7 +122,7 @@
            real_place_index_info = shadow_place_order_index, RELIABILITY_TYPE_VIRTUAL
        else:
            real_place_index_info = real_place_index, RELIABILITY_TYPE_REAL
    elif L2DataUtil.time_sub_as_ms(datas[-1]["val"], exec_data['val']) >= 2000:
    elif time.time() - order_time >= estimate_time_space:
        # 下单超过2s
        estimate_index = __compute_estimate_order_position(code, exec_data["index"])
        if estimate_index: