| | |
| | | import constant |
| | | from code_atrribute import gpcode_manager |
| | | from code_atrribute.history_k_data_util import HistoryKDatasUtils |
| | | from code_atrribute.position_code_data_manager import PositionCodeDataManager |
| | | from log_module import async_log_util |
| | | from log_module.log import hx_logger_trade_debug, logger_system, printlog |
| | | from trade import huaxin_trade_api, huaxin_trade_record_manager |
| | |
| | | if not gpcode_manager.get_price_pre_cache(d["securityID"]): |
| | | # 获取昨日的收盘价 |
| | | need_update_codes.append(d["securityID"]) |
| | | try: |
| | | PositionCodeDataManager.request_pre_volume(d["securityID"]) |
| | | except: |
| | | pass |
| | | if need_update_codes: |
| | | gpcode_manager.request_price_pre(need_update_codes) |
| | | async_log_util.info(hx_logger_trade_debug, f"获取收盘价:{type_}") |