servers/huaxin_trade_server.py
@@ -348,11 +348,15 @@ # 保存现价 @classmethod def __save_l1_current_price(cls, datas): before_trade = int(tool.get_now_time_str().replace(":", "")) < int("092900") for d in datas: code = d[0] # 格式 (代码,现价,涨幅,量,更新时间,买1价格,买1量) price = d[1] L1DataManager.set_l1_current_price(code, price) if before_trade: # 开盘前保存开盘价 L1DataManager.set_open_price(code, price) huaxin_l1_data_manager.set_buy1_data(code, d[5], d[6]) @classmethod