| | |
| | | from strategy.index_market_trend_strategy import index_trend_expectation |
| | | |
| | | from trade import middle_api_protocol |
| | | from utils import hx_qc_value_util |
| | | from utils import hx_qc_value_util, tool |
| | | |
| | | # 获取logger实例 |
| | | logger = logger_common |
| | |
| | | ds.append(request_plate_codes(d)) |
| | | dask_result = batch_get_plate_codes(ds) |
| | | dask_result.compute() |
| | | now_time = data_cache.now_time |
| | | now_time = tool.get_now_time_str() |
| | | if data_cache.L1_DATA_START_TIME < now_time < data_cache.CLOSING_TIME: |
| | | logger.info(f"精选板块股票强度数据更新 == {market_sift_plate_stock_dict}") |
| | | return market_sift_plate_stock_dict |
| | |
| | | # 获取涨停板块名称列表并存储本地的函数 |
| | | def get_limit_up_block_names(): |
| | | # 设定当前时间点 |
| | | now_time = data_cache.now_time |
| | | now_time = tool.get_now_time_str() |
| | | # print(f"now_time===={now_time}") |
| | | if data_cache.SERVER_RESTART_TIME < now_time < data_cache.UPDATE_DATA_TIME: |
| | | # print(f"在时间内使用--------------------------") |
| | |
| | | while True: |
| | | try: |
| | | if data_cache.position_automatic_management_switch is True: |
| | | now_time = data_cache.now_time |
| | | now_time = tool.get_now_time_str() |
| | | if data_cache.SERVER_RESTART_TIME < now_time < data_cache.UPDATE_DATA_TIME: |
| | | # 获取大盘综合强度分数 |
| | | data_cache.real_time_market_strong = get_market_strong() |