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

bond.get_all_base_info() 可转债的基本信息列表会出现数据丢失的情况 #141

Open
NicholasQu opened this issue Jul 20, 2023 · 0 comments · Fixed by rootphantomer/efinance#3 · May be fixed by #142
Open

bond.get_all_base_info() 可转债的基本信息列表会出现数据丢失的情况 #141

NicholasQu opened this issue Jul 20, 2023 · 0 comments · Fixed by rootphantomer/efinance#3 · May be fixed by #142

Comments

@NicholasQu
Copy link

NicholasQu commented Jul 20, 2023

不知道是官方今天出问题了还是怎么回事,今天这个接口一直缺少一个可转债, 123044 红相转债

getter.py

我测试了一下,目前的代码里面的入参是
params = (
('sortColumns', 'PUBLIC_START_DATE'),
('sortTypes', '-1'),
('pageSize', '500'),
('pageNumber', f'{page}'),
('reportName', 'RPT_BOND_CB_LIST'),
('columns', 'ALL'),
('source', 'WEB'),
('client', 'WEB'),
按照上市日期排序,就一直缺少红相转债,但是如果我用security_code排序,就会查出来,差点搞死我...

https://datacenter-web.eastmoney.com/api/data/v1/get?sortColumns=SECURITY_CODE&sortTypes=-1&pageSize=500&pageNumber=1&reportName=RPT_BOND_CB_LIST&columns=ALL&source=WEB&client=WEB

修改
params = (
('sortColumns', 'SECURITY_CODE'),

建议的修改方式是按照代码排序,我深度怀疑,红相转债在数据库里的上市日期存成什么异常的数据了...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant