From ae8d76a456b64c1c6c4ebf11b6ec33b7df217b1a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 18 八月 2025 13:43:46 +0800
Subject: [PATCH] bug修复

---
 third_data/history_k_data_util.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/third_data/history_k_data_util.py b/third_data/history_k_data_util.py
index 0da3c8b..197e0e0 100644
--- a/third_data/history_k_data_util.py
+++ b/third_data/history_k_data_util.py
@@ -185,7 +185,6 @@
                                                      fields=fields)
 
     @classmethod
-    @classmethod
     def get_history_instruments(cls, symbols, start_date, end_date, fields=None):
         if constant.JUEJIN_LOCAL_API:
             account_id, s_id, token = cls.getJueJinAccountInfo()
@@ -234,9 +233,9 @@
         return JueJinApi.get_gp_latest_info(codes, fields)
 
     @classmethod
-    def get_history_tick_n(cls, code, count, fields=None):
+    def get_history_tick_n(cls, code, count, fields=None, juejin=False):
         # return JueJinApi.get_history_tick_n(code, count, fields)
-        if constant.is_windows():
+        if constant.is_windows() or juejin:
             return JueJinApi.get_history_tick_n(code, count, fields)
         else:
             try:

--
Gitblit v1.8.0