l2/huaxin/huaxin_target_codes_manager.py
@@ -92,6 +92,8 @@ for d in datas: code = d[0] # 保存今日实时量 temp_volumns.append((code, d[3])) if not tool.is_can_buy_code(code): continue # 如果现价是0.0就取买1价 @@ -122,8 +124,7 @@ if limit_up_price: zylt = int(zylt / price * float(limit_up_price)) global_util.zyltgb_map[code] = int(zylt) # 保存今日实时量 temp_volumns.append((code, d[3])) zyltgb = 0 if code in global_util.zyltgb_map: zyltgb = global_util.zyltgb_map[code]