Price change

From FTShare-Lab/FTShare-skill · View interactive version

Price change is an AI agent skill from the GitHub repository FTShare-Lab/FTShare-skill. 单票 N 日涨跌幅接口。可用参数:--stock_code、--base_date、--n、--direction。接口:GET /api/v2/market/data/price/get-price-change。

How to use this skill

Skill file

价格变动

接口:GET /api/v2/market/data/price/get-price-change。参数和响应以 《价格变动》 为准。

请求必须从环境变量 FTSHARE_API_KEY 读取凭据,并通过请求头发送 FTSHARE_API_KEY 和 Content-Type: application/json;缺少凭据时不会发起请求。

参数

| 参数 | 必填 | 说明 |

|---|---|---|

| --stock_code | 是 | 目标股票 6 位纯数字代码,兼容沪市/深市/创业板/科创板 |

| --base_date | 是 | 涨跌幅计算基准日,格式 YYYYMMDD |

| --n | 是 | 需计算的有效交易日数量,建议不超过 365 |

| --direction | 是 | 计算方向:forward(基准日为结束日)/ backward(基准日为开始日) |

返回

调用示例

python <RUN_PY> price-change --stock_code 600519 --base_date 20260828 --n 5 --direction forward
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.