From 9b4a2b22567551037c92fc5cbe7199749d7fd173 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 01 八月 2023 09:39:03 +0800 Subject: [PATCH] 获取环境接口 --- code_attribute/first_target_code_data_processor.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py index ec08354..1532cc6 100644 --- a/code_attribute/first_target_code_data_processor.py +++ b/code_attribute/first_target_code_data_processor.py @@ -109,10 +109,13 @@ code) is None: need_get_volumn = True if need_get_volumn: + limit_up_price = gpcode_manager.get_limit_up_price(code) + if limit_up_price is None: + inited_data.re_set_price_pres([code], True) volumes_data = inited_data.get_volumns_by_code(code, 150) volumes = inited_data.parse_max_volume(volumes_data[:90], code_nature_analyse.is_new_top( - gpcode_manager.get_limit_up_price(code), + limit_up_price, volumes_data[:90])) logger_first_code_record.info("{} 鑾峰彇鍒伴鏉�60澶╂渶澶ч噺锛歿}", code, volumes) code_volumn_manager.set_histry_volumn(code, volumes[0], volumes[1], volumes[2]) -- Gitblit v1.8.0