Administrator
2024-04-15 b4944ed430995f18225d2cfb3584603ea9d2d9d5
bug修复
1个文件已修改
6 ■■■■■ 已修改文件
l2/l2_data_manager_new.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -916,6 +916,9 @@
        if not cls.__TradeStateManager.is_can_buy_cache():
            return False, True, f"今日已禁止交易"
        if l2_trade_util.is_in_forbidden_trade_codes(code):
            return False, True, f"代码禁止交易"
        if cls.__PauseBuyCodesManager.is_in_cache(code):
            return False, True, f"该代码被暂停交易"
        now_time_int = int(tool.get_now_time_str().replace(":", ""))
@@ -1348,8 +1351,7 @@
            # if code.find('60') == 0:
            # 激进买
            continue_count = 1
            has_single, _index, sell_info = cls.__compute_active_order_begin_pos(code, continue_count, max(
                (compute_start_index - continue_count - 1) if new_add else compute_start_index, 0), compute_end_index)
            has_single, _index, sell_info = cls.__compute_active_order_begin_pos(code, continue_count, compute_start_index, compute_end_index)
            fast_msg = None
            if has_single:
                order_begin_pos.mode = OrderBeginPosInfo.MODE_ACTIVE