From ff6d60a42364ba8e2d0d5cfb5504454bee8017ad Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 05 九月 2024 15:38:09 +0800 Subject: [PATCH] L2数据输出接口修改 --- third_data/history_k_data_util.py | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/third_data/history_k_data_util.py b/third_data/history_k_data_util.py index 948a1c9..10fe9ff 100644 --- a/third_data/history_k_data_util.py +++ b/third_data/history_k_data_util.py @@ -179,7 +179,8 @@ else: return JueJinHttpApi.get_exchanges_codes(exchanges=exchanges, sec_types=[1], skip_suspended=skip_suspended, skip_st=skip_st, - fields="symbol,sec_type,sec_id,sec_name,listed_date,sec_level,is_suspended,pre_close") + fields="symbol,sec_type,sec_id,sec_name,listed_date,sec_level," + "is_suspended,pre_close") @classmethod def get_history_instruments(cls, symbols, start_date, end_date, fields=None): @@ -194,9 +195,10 @@ @classmethod def get_previous_trading_date(cls, date): if constant.JUEJIN_LOCAL_API: - account_id, s_id, token = cls.getJueJinAccountInfo() - gmapi.set_token(token) - return gmapi.get_previous_trading_date("SHSE", date) + # account_id, s_id, token = cls.getJueJinAccountInfo() + # gmapi.set_token(token) + # return gmapi.get_previous_trading_date("SHSE", date) + pass else: return JueJinHttpApi.get_previous_trading_date("SHSE", date) -- Gitblit v1.8.0