| | |
| | | '+') > -1: |
| | | return datetime.datetime.fromisoformat(val) |
| | | return val |
| | | |
| | | fdata = None |
| | | if True: |
| | | url = f'{cls.__BASE_URL}{path_str}' |
| | |
| | | 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 |
| | | |
| | |
| | | |
| | | 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")) |