Administrator
2024-04-15 ece725aeb88f4754965852ea4be9ca8110a1445c
l2/l2_data_manager_new.py
@@ -1468,14 +1468,13 @@
        new_buy_exec_index, buy_nums, buy_count, rebegin_buy_pos, max_num_set_new, not_buy_msg = None, None, None, None, [], ""
        if order_begin_pos.mode == OrderBeginPosInfo.MODE_ACTIVE:
            # 设置为总卖额
            threshold_money = order_begin_pos.sell_info[0]
            new_buy_exec_index, buy_nums, buy_count, rebegin_buy_pos, threshold_money_new, max_num_set_new, not_buy_msg = cls.__sum_buy_num_for_order_active(
                code,
                start_process_index,
                compute_end_index,
                order_begin_pos.num,
                order_begin_pos.count,
                threshold_money,
                order_begin_pos.threshold_money,
                order_begin_pos.buy_single_index, order_begin_pos.max_num_set)
            threshold_money = threshold_money_new
            order_begin_pos.threshold_money = threshold_money
@@ -1690,6 +1689,7 @@
        total_datas = local_today_datas[code]
        start_time_str = total_datas[start_index]["val"]["time"]
        # 获取最近的总卖信息
        # (time_str, round(money), volume, sell_1_info)
        refer_sell_data = cls.__L2MarketSellManager.get_refer_sell_data(code, start_time_str)
        if code.find("60") == 0:
            if refer_sell_data is None:
@@ -1706,7 +1706,7 @@
                # 金额要大于50万
                if _val["num"] * float(_val["price"]) < 5000:
                    continue
                return True, i, [refer_sell_data[0], 0]
                return True, i, [refer_sell_data[0], refer_sell_data[1]]
            return False, -1, "未获取到激进买的起始信号"
        else:
            # 深证
@@ -2150,7 +2150,7 @@
        threshold_money = threshold_money_origin
        # 目标手数
        threshold_num = round(threshold_money / (limit_up_price * 100))
        threshold_num = 0 # round(threshold_money / (limit_up_price * 100))
        bigger_threshold_num = round(5000 / (limit_up_price))
        # buy_single_time_seconds = L2DataUtil.get_time_as_second(total_datas[buy_single_index]["val"]["time"])