Administrator
2023-11-17 93977060ffc2b41b1c8c7661cc375e37aed9d71e
真实下单位置寻找范围修改
1个文件已修改
4 ■■■■ 已修改文件
l2/huaxin/huaxin_delegate_postion_manager.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/huaxin/huaxin_delegate_postion_manager.py
@@ -67,11 +67,11 @@
    if shadow_place_order_index is None:
        return None
    total_datas = l2_data_util.local_today_datas.get(code)
    start_index = max(shadow_place_order_index - 10, 0)
    start_index = max(datas[0]["index"], 0)
    end_index = min(shadow_place_order_index + 10, datas[-1]["index"])
    real_place_index = None
    # 从中间向两头遍历
    for i in range(shadow_place_order_index - 1, start_index, -1):
    for i in range(shadow_place_order_index - 1, start_index - 1, -1):
        d = total_datas[i]
        if d["val"]["num"] != volume // 100:
            continue