Skip to content
Back to skills

Ashare Code Change

ASecurity

查询 A 股代码变更历史。Use when user asks about 股票代码变更、改名换码、代码迁移或北交所升板代码历史。

  • 65 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add FTShare-Lab/FTShare-skill --skill ashare-code-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ashare Code Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ashare Code Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ftshare-lab-ashare-code-change/badge)](https://www.skillsdirectory.com/skills/ftshare-lab-ashare-code-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ashare-code-change
description: 查询 A 股代码变更历史。Use when user asks about 股票代码变更、改名换码、代码迁移或北交所升板代码历史。
---

# A 股代码变更

接口:`GET /api/v1/market/data/stk-code-change`。`trade_code` 必填,支持逗号分隔多个带市场后缀的代码;不分页,返回全部变更记录。

```bash
python <RUN_PY> ashare-code-change --trade-code 001872.SZ
python <RUN_PY> ashare-code-change --trade-code 001872.SZ,920000.BJ --start-date 20180101 --end-date 20241231
```

- `--trade-code`:必填,如 `600848.SH`,可逗号分隔多个。
- `--start-date`、`--end-date`:可选,格式 `YYYYMMDD`;同时提供时起始日不得晚于截止日。

成功响应为 `code/message/data`,`data` 为记录数组或对象中的记录数据,记录包括最新 `trade_code`、实际使用的 `code`、`name`、`start_date` 和可为空的 `end_date`。

Files in this skill

  • SKILL.md941 B
  • scripts/handler.py2.2 KB
  • scripts/test_handler.py1022 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…