| | |
| | | |
| | | # 获取撤单比例,返回(撤单比例,是否必买) |
| | | @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: |