| | |
| | | return False, True, f"均价涨幅({average_rate})小于1%" |
| | | |
| | | total_data = local_today_datas.get(code) |
| | | |
| | | # 9:32之前上证开1的票不买 |
| | | if code.find("60") == 0 and int(total_data[-1]["val"]["time"].replace(":", "")) <= int("093200"): |
| | | # 获取涨停时间 |
| | | limit_up_data = kpl_data_manager.KPLLimitUpDataRecordManager.record_code_dict.get(code) |
| | | if limit_up_data: |
| | | limit_up_time = tool.to_time_str(limit_up_data[2]) |
| | | if int(limit_up_time.replace(":", "")) < int("093000"): |
| | | return False, True, f"上证开一09:32之前不下单" |
| | | |
| | | order_begin_pos = cls.__get_order_begin_pos( |
| | | code) |
| | | if not trade_result_manager.can_place_order_for_cancel_time(code, total_data[order_begin_pos.buy_exec_index]): |
| | |
| | | else: |
| | | if not can_buy_result[0]: |
| | | place_order_count = trade_data_manager.PlaceOrderCountManager().get_place_order_count(code) |
| | | if place_order_count <=0 or can_buy_result[1]: |
| | | if place_order_count <= 0 or can_buy_result[1]: |
| | | return False, True, f"非强势30分钟,不满足身位:{can_buy_result[2]}" |
| | | else: |
| | | return True, False, "之前下过单" |