| | |
| | | # logger.info(f"【没有】在集合竞价内启动,采用【掘金数据】记录") |
| | | print(f"【没有】在开盘前内启动,采用【掘金数据】记录 开盘价") |
| | | data_cache.record_current_open_execution = True |
| | | current_datas = utils.juejin_api.JueJinApi.get_codes_open(data_cache.DataCache().filtered_stocks, fields='symbol,open') |
| | | current_datas = utils.juejin_api.JueJinApi.get_codes_open(data_cache.DataCache().min_stocks, fields='symbol,open') |
| | | # print(f"current_datas=={current_datas}") |
| | | for current_data in current_datas: |
| | | # print(f"current_data=={current_data}") |
| | |
| | | # print(f"当前时间更新时间:{now_time}") |
| | | if not __current_high_or_low_dict: |
| | | # 还没初始化 |
| | | # current_datas = current(symbols=data_cache.DataCache().filtered_stocks, fields='symbol,high,low') |
| | | # current_datas = current(symbols=data_cache.DataCache().min_stocks, fields='symbol,high,low') |
| | | current_datas = utils.juejin_api.JueJinApi.get_codes_high_and_low( |
| | | data_cache.DataCache().filtered_stocks, fields='symbol,high,low') |
| | | data_cache.DataCache().min_stocks, fields='symbol,high,low') |
| | | # print(f"current_datas=={current_datas}") |
| | | for current_data in current_datas: |
| | | symbol, high, low = current_data['symbol'], current_data['high'], current_data['low'] |
| | |
| | | for current_info in current_infos: |
| | | # print(f"开始循环current_infos") |
| | | symbol = basic_methods.format_stock_symbol(current_info[0]) |
| | | if symbol not in data_cache.DataCache().filtered_stocks: |
| | | if symbol not in data_cache.DataCache().min_stocks: |
| | | continue |
| | | # if symbol.find("300810") > 0: |
| | | # print(f"开始循环current_infos:"+symbol) |
| | |
| | | # 初始化 |
| | | # current_datas = current(symbols=[symbol], fields='symbol,high,low') |
| | | current_datas = utils.juejin_api.JueJinApi.get_codes_high_and_low( |
| | | data_cache.DataCache().filtered_stocks, fields='symbol,high,low') |
| | | data_cache.DataCache().min_stocks, fields='symbol,high,low') |
| | | current_data = current_datas[0] |
| | | # print(f"开始实例化对象") |
| | | symbol, high, low = current_data['symbol'], current_data['high'], current_data['low'] |