Comments (4)
这是由于上期所的官网在5月10日下午进行了改版,url等都进行了更换,因此会出现问题,我使用的另一个获取期货交易数据的接口get_futures_daily中关于上期所的部分也报错,观察源代码同时到上期所官网观察新的url,修改cons.py中的SHFE_DAILY_URL = "https://www.shfe.com.cn/data/tradedata/future/dailydata/kx%s.dat",即可解决。因此建议你可以搜寻一下是否是url变化的问题
from akshare.
SHFfutures_daily_df = ak.get_futures_daily(start_date=f_dt, end_date=e_dt, market="SHFE"),这个接口也报错,估计都得改
from akshare.
SHFfutures_daily_df = ak.get_futures_daily(start_date=f_dt, end_date=e_dt, market="SHFE"),这个接口也报错,估计都得改
是的,我就是使用这个函数发现报错,将cons中的SHFE_DAILY_URL进行修改即可解决。另外,cons中关于SHFE的参数只有4、5个,而且感觉url应该比较相似,各位可以参考去官网看看源代码找找新的url
from akshare.
1、akshare 版本 :1.13.71
2、接口报错示例: day = '20240510' df = ak.futures_contract_info_shfe(date=day)
1、akshare 版本 :1.13.71
2、接口报错示例: day = '20240510' df = ak.futures_contract_info_shfe(date=day)
已修复该问题,升级到 AKShare 1.13.72 使用
from akshare.
Related Issues (20)
- AKShare 接口问题报告:get_futures_daily 无法获取"DCE"市场数据 HOT 2
- macro_china_bond_public接口异常 HOT 1
- 调用案例程序出现以下问题 HOT 1
- AKShare 接口问题报告 ak.fund_scale_open_sina HOT 1
- AKShare 股票 - 深圳中小板与主板合并 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告,stock_zh_a_hist_min_em 只能获取最近的分时数据,如何可以获取历史分时数据呢,没有历史数据感觉没有多大的意义 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- 能否新增雪球历史行情数据 HOT 1
- 像是内存溢出 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告index_value_hist_funddb无法使用 HOT 1
- 获取B股时出现bug HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- ak.stock_research_report_em HOT 2
- AKShare 美股接口含义疑问 HOT 2
- AKShare 接口需求,新增北京交易所财务数据下载 HOT 1
- AKShare 接口问题报告 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akshare.