akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
9.09k stars 1.86k forks source link

AKShare 接口问题报告 #4997

Closed YPersion closed 3 months ago

YPersion commented 3 months ago

版本号:1.14.4 接口:futures_gfex_position_rank 代码:dic_net_opr = ak.futures_gfex_position_rank(time_YmdStr) 此接口及其不稳定,有时候断点返回完整字典,有时候断点字典为空

YPersion commented 3 months ago

同一个time_YmdStr 直接爬取都是为空,断点求值有时候为空有时候有值

albertandking commented 3 months ago

版本号:1.14.4 接口:futures_gfex_position_rank 代码:dic_net_opr = ak.futures_gfex_position_rank(time_YmdStr) 此接口及其不稳定,有时候断点返回完整字典,有时候断点字典为空

目标网站不稳定,可以在本地增加 try...except 重试机制