Administrator
2024-04-18 48301738dffccccc0dde7cab9169bf82744cc1a0
S快砸有大卖单无条件撤
1个文件已修改
11 ■■■■■ 已修改文件
l2/cancel_buy_strategy.py 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py
@@ -292,13 +292,22 @@
            real_order_time_ms = total_datas[real_order_index]["val"]["time"] + ".{0:0>3}".format(
                total_datas[real_order_index]["val"]["tms"])
        max_money = 0
        for x in big_sell_order_info[1]:
            deal_time = l2_huaxin_util.convert_time(x[4][0], with_ms=True)
            if real_order_time_ms:
                if tool.trade_time_sub_with_ms(deal_time, real_order_time_ms) >= 0:
                    total_deal_money += x[1] * x[2]
                    m = x[1] * x[2]
                    if max_money < m:
                        max_money = m
                    total_deal_money += m
            else:
                m = x[1] * x[2]
                if max_money < m:
                    max_money = m
                total_deal_money += x[1] * x[2]
        if max_money>=4990000:
            return True, f"有大于499w大卖单({max_money})"
        limit_up_price = gpcode_manager.get_limit_up_price(code)
        # 判断是否为激进下单