From bf0c90f3be2a35992ed00d4b395b5cc2280d06ac Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 31 五月 2024 13:07:06 +0800 Subject: [PATCH] L2早上订阅的下限降低/F撤修改/09:31:00之前不下单 --- huaxin_client/l1_client.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/huaxin_client/l1_client.py b/huaxin_client/l1_client.py index 0eccd33..d74ee22 100644 --- a/huaxin_client/l1_client.py +++ b/huaxin_client/l1_client.py @@ -251,10 +251,14 @@ list_ = [level1_data_dict[k] for k in level1_data_dict] flist = [] plist = [] + threshold_rate = constant.L1_MIN_RATE_PRE if int(tool.get_now_time_str().replace(":", "")) < int( + "094000") else constant.L1_MIN_RATE for d in list_: - if d[2] >= constant.L1_MIN_RATE: + + if d[2] >= threshold_rate: # 娑ㄥ箙灏忎簬5%鐨勯渶瑕佸垹闄� flist.append(d) + if d[0] in __position_codes: plist.append(d) flist.sort(key=lambda x: x[2], reverse=True) -- Gitblit v1.8.0