| | |
| | | now_time_int = int(tool.get_now_time_str().replace(":", "")) |
| | | if now_time_int >= 145700: |
| | | return False, True, f"14:57后不能交易", True |
| | | if now_time_int < 93100: |
| | | return False, True, f"09:31之前不能交易", True |
| | | # if now_time_int < 93100: |
| | | # return False, True, f"09:31之前不能交易", True |
| | | # 二板以上的票不买 |
| | | yesterday_codes = kpl_data_manager.get_yesterday_limit_up_codes() |
| | | if yesterday_codes and code in yesterday_codes: |
| | |
| | | if result_by_volume[0] != radical_buy_strategy.BUY_MODE_NONE: |
| | | if not WantBuyCodesManager().is_in_cache(code): |
| | | # 加绿的不需要判断如下问题 |
| | | if tool.get_now_time_as_int() < 93100: |
| | | radical_buy_data_manager.ExcludeIndexComputeCodesManager.add_code(code) |
| | | async_log_util.info(logger_l2_radical_buy, |
| | | f"09:31之前不交易:{code}") |
| | | return True |
| | | # if tool.get_now_time_as_int() < 93100: |
| | | # radical_buy_data_manager.ExcludeIndexComputeCodesManager.add_code(code) |
| | | # async_log_util.info(logger_l2_radical_buy, |
| | | # f"09:31之前不交易:{code}") |
| | | # return True |
| | | # 判断是否开得太高 |
| | | open_price = L1DataManager.get_open_price(code) |
| | | if not radical_buy_strategy.is_can_buy_with_open_price(code, open_price): |