| | |
| | | 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, "不需要撤单" |
| | | |
| | | |