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 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 4
- AKShare 接口问题报告 HOT 1
- AKShare 接口问题报告 HOT 1
- CentOS 7.9安装失败 HOT 2
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- 同花顺 - 概念板块系列接口不再提供? HOT 1
- etf的历史溢价数据 HOT 1
- AKShare 接口问题报告 HOT 1
- 能否新增个股资讯接口 HOT 1
- AKShare 接口问题报告 HOT 1
- 同花顺-数据中心-资金流向-个股资金流即时接口偶尔会返回13个字段产生错误,建议适配 HOT 1
- stock_a_indicator_lg出现ValueError: could not convert string to float: 'null' HOT 2
- AKShare 接口问题报告 ak.stock_info_a_code_name() HOT 3
- AKShare 接口问题报告 HOT 1
- AKShare 安装问题 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告:get_futures_daily 无法获取"DCE"市场数据 HOT 2
- macro_china_bond_public接口异常 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.