Administrator
2023-12-18 90c01d8326c3c4a7952de694def6ed1c15aa13cc
third_data/history_k_data_util.py
@@ -194,6 +194,7 @@
class HistoryKDatasUtils(object):
    __previous_trading_date_cache={}
    @classmethod
    def get_gp_latest_info(cls, codes, fields=None):
@@ -212,6 +213,15 @@
    def get_previous_trading_date(cls, date):
        return JueJinApi.get_previous_trading_date(date)
    @classmethod
    def get_previous_trading_date_cache(cls, date):
        if date in cls.__previous_trading_date_cache:
            return cls.__previous_trading_date_cache.get(date)
        fdata = cls.get_previous_trading_date(date)
        if fdata:
            cls.__previous_trading_date_cache[date] = fdata
        return fdata
    # 返回指定日期的下个交易日
    @classmethod
    def get_next_trading_date(cls, date):