Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKShare 获取持仓排名 #4891

Closed
nekoman233 opened this issue May 20, 2024 · 2 comments
Closed

AKShare 获取持仓排名 #4891

nekoman233 opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nekoman233
Copy link

python 3.11
akshare-1.13.80
问题描述:
获取持仓排名的时候,无论是大商所还是上期所都会出现以下报错:
image
经查验,是cot.py文件中获取排名方法中获取end_list方法不对,之前是“总计”,现在数据为“合计”,改为“合计”后,end_list分出的三个索引还是缺少最后一个索引,于是添加上最后一个索引,结果还是报错

@nekoman233 nekoman233 added the bug Something isn't working label May 20, 2024
@imagemoon0406
Copy link

同样的问题,get_rank_sum_daily报错

@albertandking
Copy link
Collaborator

python 3.11 akshare-1.13.80 问题描述: 获取持仓排名的时候,无论是大商所还是上期所都会出现以下报错: image 经查验,是cot.py文件中获取排名方法中获取end_list方法不对,之前是“总计”,现在数据为“合计”,改为“合计”后,end_list分出的三个索引还是缺少最后一个索引,于是添加上最后一个索引,结果还是报错

已修复,升级到 AKShare 1.13.82 使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants