Back to skills
SKILL.md
Stock List All Stocks
ASecurity| 项目 | 说明 | |---|---| | 接口名称 | 获取所有股票代码列表 | | 外部接口 | `/data/api/v1/market/data/stock-list` | | 请求方式 | GET | | 适用场景 | 获取所有 A 股股票的代码和名称列表,支持沪深京股票,自动返回最新交易日的数据 |
- 5 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add security-pride/MalSkills --skill stock-list-all-stocks --agent claude-codeAre you the author of Stock List All Stocks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/security-pride-stock-list-all-stocks)# 获取所有股票代码列表
## 接口说明
| 项目 | 说明 |
|---|---|
| 接口名称 | 获取所有股票代码列表 |
| 外部接口 | `/data/api/v1/market/data/stock-list` |
| 请求方式 | GET |
| 适用场景 | 获取所有 A 股股票的代码和名称列表,支持沪深京股票,自动返回最新交易日的数据 |
## 请求参数
无需任何参数。
## 执行方式
通过根目录的 `run.py` 调用(推荐):
```bash
python <RUN_PY> stock-list-all-stocks
```
> `<RUN_PY>` 为主 `SKILL.md` 同级的 `run.py` 绝对路径,参见主 SKILL.md 的「调用方式」说明。
## 响应结构
```json
{
"items": [
{
"stock_code": "000001.SZ",
"stock_name": "平安银行"
},
{
"stock_code": "000002.SZ",
"stock_name": "万科A"
}
]
}
```
### 字段说明
| 字段名 | 类型 | 是否可为空 | 说明 |
|---|---|---|---|
| `stock_code` | String | 否 | 股票交易代码,固定携带 `.SZ`/`.SH`/`.BJ` 市场后缀 |
| `stock_name` | String | 否 | 股票名称 |
## 注意事项
- 返回全量 A 股,数据量较大(通常 5000 条以上),按需筛选
- `stock_code` 固定含市场后缀,不要自行增减
- 当查询没有数据时,返回空数组 `[]`
Files in this skill
- SKILL.md
- scripts/handler.py
Attribution
Comments
Loading comments…