admin
2025-01-16 9d2b0ab3967761b2d4b4e1c92034c3c0ea6705f5
utils/history_k_data_util.py
@@ -23,6 +23,7 @@
                    '+') > -1:
                return datetime.datetime.fromisoformat(val)
            return val
        fdata = None
        if True:
            url = f'{cls.__BASE_URL}{path_str}'
@@ -98,9 +99,9 @@
    def get_juejin_code_list_with_prefix(cls, codes):
        list = []
        for d in codes:
            if d[0:2] == '00':
            if tool.is_sz_code(d):
                list.append("SZSE.{}".format(d))
            elif d[0:2] == '60':
            elif tool.is_sh_code(d):
                list.append("SHSE.{}".format(d))
        return list
@@ -231,4 +232,4 @@
if __name__ == "__main__":
    constant.JUEJIN_LOCAL_API = False
    print(HistoryKDatasUtils.get_lowest_price_rate("000725", 30))
    print(HistoryKDatasUtils.get_gp_latest_info(["000333"], "sec_id,pre_close,adj_factor"))