Comments (4)
补充:经测,开始日期设置为2024年之前就报错,设置为2024年正常
from akshare.
5. get_receipt
接口测试正常;升级到最新版使用,注意参数的设置
from akshare.
是由于get_gfex_receipt()获取不到数据造成的,另外还有一个issue,有些时段获取不到'LC'代码也会报错,在函数里加上两个判断语句就正常了
if not result_df.empty:
result_df.loc[:, 'date'] = date.isoformat().replace("-", "")
result_df.loc[:, 'var'] = [item.upper() for item in temp_df['varietyOrder'].tolist()]
result_df.reset_index(drop=True, inplace=True)
result_df.rename(columns={
"wbillQty": "receipt",
"diff": "receipt_chg",
}, inplace=True)
result_df = result_df[[
'var', 'receipt', 'receipt_chg', 'date'
]]
result_df.set_index(['var'], inplace=True)
if 'LC' not in result_df.index:
vars_list.remove('LC')
result_df = result_df.loc[vars_list, :]
result_df.reset_index(inplace=True)
return result_df
return None
from akshare.
是由于get_gfex_receipt()获取不到数据造成的,另外还有一个issue,有些时段获取不到'LC'代码也会报错,在函数里加上两个判断语句就正常了
if not result_df.empty: result_df.loc[:, 'date'] = date.isoformat().replace("-", "") result_df.loc[:, 'var'] = [item.upper() for item in temp_df['varietyOrder'].tolist()] result_df.reset_index(drop=True, inplace=True) result_df.rename(columns={ "wbillQty": "receipt", "diff": "receipt_chg", }, inplace=True) result_df = result_df[[ 'var', 'receipt', 'receipt_chg', 'date' ]] result_df.set_index(['var'], inplace=True) if 'LC' not in result_df.index: vars_list.remove('LC') result_df = result_df.loc[vars_list, :] result_df.reset_index(inplace=True) return result_df return None
感谢提供解决方案,已修复该问题,升级到 AKShare 1.12.47 使用
from akshare.
Related Issues (20)
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- ak.stock_zh_index_daily(symbol="sh000005") 获取数据异常,只能获取到5月24日 HOT 2
- AKShare 接口问题报告:stock_zt_pool_em_df 报错Length mismatch HOT 1
- 期望支持A股关键指标获取 HOT 1
- 申万一级行业网页实时行情缺失 HOT 1
- macro_china_bond_public 接口异常 HOT 1
- AKShare 接口问题报告 HOT 1
- macro_china_nbs_nation_df的问题 HOT 1
- stock_fhps_detail_em调用报错 HOT 1
- 巨潮资讯接口问题报告 HOT 1
- AKShare 接口问题报告 HOT 1
- bond_china_close_return()接口不能指定获取某页数据 HOT 2
- 下载财务数据时,去除进度条的建议 HOT 1
- 外盘-品种代码表 输出参数新增字段建议 HOT 1
- python3.8.17 交易所会员持仓排名爬取接口报错 HOT 2
- AKShare 接口问题报告ak.stock_board_concept_name_ths HOT 1
- AKShare 接口问题报告 - stock_board_cons_ths访问403 HOT 8
- 建议增加数据接口:融资融券-两融账户信息 HOT 1
- AKShare 接口问题报告 HOT 3
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.