Administrator
2025-07-29 cfba83b787a60317424f6b6ae2a282aaa8df612b
l2/l2_data_manager_new.py
@@ -2066,6 +2066,7 @@
                                                                                             radical_data[5])
            # 缺乏的大单金额
            current_lack_money = int(big_order_deal_enough_result[5])
            current_deal_order_ids = big_order_deal_enough_result[7]
            total_lack_money = int(big_order_deal_enough_result[6])
            # 如果有大单成交就不需要看大单
            if constant.CAN_RADICAL_BUY_NEED_BIG_ORDER_EVERYTIME:
@@ -2131,8 +2132,9 @@
                if val["num"] >= bigger_money_num:
                    watch_indexes.add(i)
                if val["num"] >= current_min_num:
                if val["num"] >= current_min_num and int(val["orderNo"]) not in current_deal_order_ids:
                    current_lack_money -= round(val["price"], 2) * val["num"] * 100
                    current_deal_order_ids.add(val["orderNo"])
                if val["num"] >= total_min_num:
                    total_lack_money -= round(val["price"], 2) * val["num"] * 100
@@ -2146,7 +2148,7 @@
                    min_order_no = min(min(every_time_big_orders, key=lambda e: e[0])[0], radical_data[1])
                else:
                    min_order_no = radical_data[1]
                return True, single_index, f"有大单,大单情况:{big_order_deal_enough_result[1]}", watch_indexes, min_order_no
                return True, single_index, f"有大单,大单情况:{big_order_deal_enough_result[1]}, 本批次上板大单:{current_deal_order_ids}", watch_indexes, min_order_no
            return False, None, f"大单不足:{trade_index}-{end_index}  缺少的大单-{max(current_lack_money, total_lack_money)}  大单情况:{big_order_deal_enough_result[1]}", watch_indexes, None
        radical_data = RadicalBuyDealCodesManager.buy_by_l2_delegate_expire_time_dict.get(code)