Administrator
2023-11-30 87ac0a29a56b1d51c532d18324123449c7c93b32
U撤修改
1个文件已修改
12 ■■■■ 已修改文件
l2/cancel_buy_strategy.py 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py
@@ -1724,12 +1724,12 @@
        total_datas = local_today_datas.get(code)
        time_sub = tool.trade_time_sub(tool.get_now_time_str(),
                                       total_datas[order_begin_pos.buy_exec_index]["val"]["time"])
        if time_sub > 15 * 60:
            if len(current_limit_up_block_codes_dict[block]) == 1:
                return True, "独苗下单15分钟无后排"
        elif time_sub > 5 * 60:
            if len(current_limit_up_block_codes_dict[block]) == 1 and volume_rate < 0.8:
                return True, f"独苗下单5分钟无后排且量({volume_rate})小于80%"
        # if time_sub > 15 * 60:
        #     if len(current_limit_up_block_codes_dict[block]) == 1:
        #         return True, "独苗下单15分钟无后排"
        if time_sub > 10 * 60:
            if len(current_limit_up_block_codes_dict[block]) == 1 and volume_rate < 0.6:
                return True, f"独苗下单5分钟无后排且量({volume_rate})小于60%"
        return False, "不需要撤单"