Administrator
2023-07-31 1597521f0a150f471850aa82cc691ef977e57b2a
错误日志记录
1个文件已修改
6 ■■■■ 已修改文件
l2/l2_data_source_util.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_source_util.py
@@ -2,6 +2,7 @@
L2数据溯源
"""
import constant
from log_module.log import logger_l2_error
from utils import tool
@@ -140,8 +141,8 @@
        data = None
        try:
            data = total_data[index]
        except:
            print("")
        except Exception as e:
            logger_l2_error.error(f"未找到买入索引对应的数据:index-{index} total_data长度-{len(total_data) if total_data else 0} 错误原因:{str(e)}")
        val = data["val"]
        # 判断当前买是否已经买撤
        cancel_datas = local_today_num_operate_map.get(
@@ -149,7 +150,6 @@
        canceled = False
        if cancel_datas:
            for cancel_data in cancel_datas:
                buy_index = cls.get_buy_index_with_cancel_data(code, cancel_data, local_today_num_operate_map)
                if buy_index == index:
                    canceled = True