Administrator
2024-01-26 d9f8dff022d81d34b5d3eb60c8a7854ba2d73de5
L撤修改
1个文件已修改
8 ■■■■ 已修改文件
l2/cancel_buy_strategy.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py
@@ -836,10 +836,10 @@
    # 获取撤单比例,返回(撤单比例,是否必买)
    @classmethod
    def get_cancel_rate(cls, code, buy_exec_time, is_up=False):
        # 下单10s内撤单比例为设置为29%
        if not is_up and tool.trade_time_sub(tool.get_now_time_str(), buy_exec_time) <= 15:
            return 0.29, False
    def get_cancel_rate(cls, code, buy_exec_time, is_up=False, is_l_down_recomputed = False):
        # 下单15s内撤单比例为设置为29% -- 暂时不生效
        # if not is_up and tool.trade_time_sub(tool.get_now_time_str(), buy_exec_time) <= 15:
        #     return 0.29, False
        try:
            must_buy_cancel_rate = cls.__MustBuyCodesManager.get_cancel_rate_cache(code)
            if must_buy_cancel_rate is not None: