Administrator
2024-05-09 464b9069e5b729d07004fc703ae5b86091d6d66e
l2/l2_data_manager_new.py
@@ -606,14 +606,14 @@
        # J撤
        def j_cancel(_buy_single_index, _buy_exec_index):
            try:
                b_need_cancel, b_cancel_data, extra_msg = JCancelBigNumComputer().need_cancel(code, start_index, end_index)
                b_need_cancel, b_cancel_data, extra_msg = JCancelBigNumComputer().need_cancel(code, start_index,
                                                                                              end_index)
                if b_need_cancel and b_cancel_data:
                    return b_cancel_data, f"J撤({extra_msg})"
            except Exception as e:
                async_log_util.error(logger_l2_error,
                                     f"J撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index} 错误原因:{str(e)}")
            return None, ""
        if start_index < 0:
            start_index = 0
@@ -663,13 +663,16 @@
        @param code:
        @return:
        """
        if global_util.zyltgb_map.get(code) > 50 * 100000000:
            # 50亿以上的无法激进下单
            return None
        can_buy_result = CodePlateKeyBuyManager.can_buy(code)
        if can_buy_result:
            if can_buy_result[5]:
                return can_buy_result[5]
            elif not can_buy_result[0] and can_buy_result[1]:
                # 10:00:00 前的独苗可激进买入
                if tool.trade_time_sub(tool.get_now_time_str(),"10:00:00") <=0:
                if tool.trade_time_sub(tool.get_now_time_str(), "10:00:00") <= 0:
                    return ["独苗"]
        return None
@@ -1274,7 +1277,6 @@
        # 是否是强势30分钟
        is_in_strong_time_30 = now_timestamp <= int("100000")
        # 获取市场行情
        situation = cls.__MarketSituationManager.get_situation_cache()