Giter VIP home page Giter VIP logo

Comments (4)

cedric-cao avatar cedric-cao commented on June 25, 2024 1

这是由于上期所的官网在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.

jasonudu avatar jasonudu commented on June 25, 2024

SHFfutures_daily_df = ak.get_futures_daily(start_date=f_dt, end_date=e_dt, market="SHFE"),这个接口也报错,估计都得改

from akshare.

cedric-cao avatar cedric-cao commented on June 25, 2024

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.

albertandking avatar albertandking commented on June 25, 2024

1、akshare 版本 :1.13.71

2、接口报错示例: day = '20240510' df = ak.futures_contract_info_shfe(date=day)

3、. 接口报错的截图或描述 image image

1、akshare 版本 :1.13.71

2、接口报错示例: day = '20240510' df = ak.futures_contract_info_shfe(date=day)

3、. 接口报错的截图或描述 image image

已修复该问题,升级到 AKShare 1.13.72 使用

from akshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.