Micro-sheep / Micro-sheep/efinance
bond.get_all_base_info() 可转债的基本信息列表会出现数据丢失的情况
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 755
- PR merge metrics
- No merged PRs in 30d
Description
不知道是官方今天出问题了还是怎么回事,今天这个接口一直缺少一个可转债, 123044 红相转债
[getter.py](https://github.com/Micro-sheep/efinance/blob/main/efinance/bond/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'),
建议的修改方式是按照代码排序,我深度怀疑,红相转债在数据库里的上市日期存成什么异常的数据了...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in efinance/bond/getter.py and locate get_all_base_info() and its request parameters. Compare the current PUBLIC_START_DATE ordering with SECURITY_CODE ordering using the linked Eastmoney request, then verify that bond 123044 appears in the returned list; done means the function no longer drops that bond.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100