Administrator
2024-04-12 7545d5e6930da8b4679c7c4ff2187de810c36361
bug修复
1个文件已修改
9 ■■■■■ 已修改文件
l2/place_order_single_data_manager.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/place_order_single_data_manager.py
@@ -1,7 +1,7 @@
"""
下单信号管理
"""
from l2 import l2_data_util, l2_log
from l2 import l2_log
from log_module.log import logger_l2_trade_buy, logger_debug
@@ -29,7 +29,8 @@
        cls.__latest_limit_up_sell_list_dict[code].append(data)
        if code not in cls.__latest_limit_up_sell_order_no_index_dict:
            cls.__latest_limit_up_sell_order_no_index_dict[code] = {}
        cls.__latest_limit_up_sell_order_no_index_dict[code][data['val']['orderNo']] = len(cls.__latest_limit_up_sell_list_dict[code]) - 1
        cls.__latest_limit_up_sell_order_no_index_dict[code][data['val']['orderNo']] = len(
            cls.__latest_limit_up_sell_list_dict[code]) - 1
    @classmethod
    def add_l2_delegate_limit_up_sell_cancel(cls, code, order_no):
@@ -74,9 +75,9 @@
            if not sell_list:
                return
            sell_info = sell_list[-1]
            if str(sell_no) == sell_info['val']['orderNo'] and sell_info["val"]["num"] == cls.__latest_sell_data[code][1]//100:
            if sell_no == sell_info['val']['orderNo'] and sell_info["val"]["num"] == cls.__latest_sell_data[code][
                1] // 100:
                # 成交完成
                l2_log.info(code, logger_l2_trade_buy, f"找到最近的被动涨停卖单数据:{data['val']['orderNo']}, 可以触发下单")
        except Exception as e:
            logger_debug.exception(e)