constant.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
l2/huaxin/huaxin_target_codes_manager.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
l2/l2_data_manager_new.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
trade/huaxin/trade_server.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
constant.py
@@ -135,3 +135,6 @@ JUEJIN_LOCAL_API = False TRADE_WAY = TRADE_WAY_HUAXIN TRADE_ENABLE = True # 最大的代码价格 MAX_CODE_PRICE = 40 l2/huaxin/huaxin_target_codes_manager.py
@@ -75,7 +75,7 @@ if code in yesterday_codes: continue # 剔除股价大于40块的票 if d[1] > 40: if d[1] > constant.MAX_CODE_PRICE: continue # 获取自由流通市值 if code not in global_util.zyltgb_map: l2/l2_data_manager_new.py
@@ -883,8 +883,8 @@ limit_up_price = gpcode_manager.get_limit_up_price(code) if float(limit_up_price) >= 40: return False, True, "股价大于40块" if float(limit_up_price) >= constant.MAX_CODE_PRICE: return False, True, f"股价大于{constant.MAX_CODE_PRICE}块" if constant.L2_SOURCE_TYPE == constant.L2_SOURCE_TYPE_HUAXIN: trade_price = current_price_process_manager.get_trade_price(code) @@ -995,8 +995,8 @@ return True return False if float(limit_up_price) >= 40: return False, True, "股价大于40块" if float(limit_up_price) >= constant.MAX_CODE_PRICE: return False, True, f"股价大于{constant.MAX_CODE_PRICE}块" # 9:35之前买大市值(>=80亿)票 if int(tool.get_now_date_str("%Y%m%d")) < int("093500"): trade/huaxin/trade_server.py
@@ -309,7 +309,7 @@ continue if d["sec_level"] != 1: continue if d["pre_close"] * 1.1 > 40: if d["pre_close"] * 1.1 > constant.MAX_CODE_PRICE: continue if (d["listed_date"] + datetime.timedelta( days=100)).timestamp() > datetime.datetime.now().timestamp():