Administrator
2025-07-18 712d0fd8eba08aa4107017c8c348f8bad024aa16
测试
1个文件已修改
8 ■■■■ 已修改文件
cancel_strategy/s_l_h_cancel_strategy.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cancel_strategy/s_l_h_cancel_strategy.py
@@ -2038,15 +2038,19 @@
        @param code:
        @return:((总笔数, 总金额), (已撤笔数,已撤金额), (已成交笔数,已成交金额), 综合撤单比例, 撤单比例阈值, (200w以下撤单百分数, 200-300W撤单百分数, 300w以上撤单百分数))
        """
        # TODO 测试
        if code == '000751':
            self.__cancel_watch_index_info_cache[code] = (0, 1, [4061,4062,4065,4069,4070,4073, 4074, 4077, 4080,4082,4084,4085,4086,4089,4094,4095, 4097, 4107])
            self.__real_place_order_index_dict[code] = (4098 , False)
        watch_indexes_info = self.__get_watch_indexes_cache(code)
        if not watch_indexes_info:
            return True
            return None
        trade_index, is_default = TradeBuyQueue().get_traded_index(code)
        if trade_index is None:
            trade_index = 0
        real_place_order_index_info = self.__real_place_order_index_dict.get(code)
        if not real_place_order_index_info:
            return True
            return None
        limit_up_price = gpcode_manager.get_limit_up_price_as_num(code)
        # 计算已经成交的比例
        total_datas = local_today_datas.get(code)