Administrator
2024-04-08 4b2104b79eaafe12f81cd84902b441202ee90897
l2/l2_data_manager_new.py
@@ -1659,6 +1659,9 @@
                    threshold_money += val["num"] * int(float(val["price"]) * 100)
                elif L2DataUtil.is_sell_cancel(val):
                    threshold_money -= val["num"] * int(float(val["price"]) * 100)
                elif L2DataUtil.is_buy(val):
                    # TODO 判断价格(大于买1) 被买吃掉
                    threshold_money -= val["num"] * int(float(val["price"]) * 100)
            # 第二步:计算起始信号
            second_930 = 9 * 3600 + 30 * 60 + 0
            total_datas = local_today_datas.get(code)
@@ -2147,8 +2150,8 @@
            if not trigger_buy:
                not_buy_msg = f"【{i}】没有买单触发"
                continue
            if buy_count < 2:
                not_buy_msg = f"【{i}】安全笔数不足,{buy_count}/{2}"
            if buy_count < 3:
                not_buy_msg = f"【{i}】安全笔数不足,{buy_count}/{3}"
                continue
            # max_buy_num_set = cls.__filter_not_deal_indexes(code, max_buy_num_set)