Micro-sheep / Micro-sheep/efinance
`stock.get_latest_holder_number()` 接口返回的 "股东人数增减" 与 "较上期变化百分比" 数据列错位
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 755
- PR merge metrics
- No merged PRs in 30d
Description
**问题描述**
在使用 `efinance.stock.get_latest_holder_number()` 获取个股最新股东户数时,发现返回的 DataFrame 中,**股东人数增减** 列与 **较上期变化百分比** 列的数据内容互换了。
文档示例中也是反的:
**复现数据示例**
以股票 `002195` (岩山科技) 2025-09-30 数据为例:
| 列名 | 实际返回数值 | 数据特征分析 | 期望数值 |
| :--- | :--- | :--- | :--- |
| **股东人数增减** | `28.188266` | 小数 (百分比特征) | `155942` (绝对值) |
| **较上期变化百分比** | `155942.0` | 整数 (绝对值特征) | `28.188266` (百分比) |
**问题分析**
* `股东人数增减` 应该表示户数变化的绝对值(整数)。
* `较上期变化百分比` 应该表示变化的幅度(百分比/小数)。
* 目前的返回值显示这两列的数据被写反了。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the implementation of efinance.stock.get_latest_holder_number() and compare its returned DataFrame columns with the documentation example. Use the 002195 data from 2025-09-30 to verify that the absolute holder-count change and percentage change are assigned to the correct columns; done means both values and the documented example agree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data, fintech-quant
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100