Skip to content
Back to skills

Price Change

ASecurity

单票 N 日涨跌幅接口。可用参数:--stock_code、--base_date、--n、--direction。接口:GET /api/v2/market/data/price/get-price-change。

  • 65 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 20, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

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

Scanned November 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Price Change?

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

Security grade badge for Price Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ftshare-lab-price-change/badge)](https://www.skillsdirectory.com/skills/ftshare-lab-price-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: price-change
description: "单票 N 日涨跌幅接口。可用参数:--stock_code、--base_date、--n、--direction。接口:GET /api/v2/market/data/price/get-price-change。"
---

# 价格变动

接口:GET `/api/v2/market/data/price/get-price-change`。参数和响应以 [《价格变动》](https://market.ft.tech/gateway/doc/pages/d953tpbb.md) 为准。

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

## 参数

| 参数 | 必填 | 说明 |
|---|---|---|
| `--stock_code` | 是 | 目标股票 6 位纯数字代码,兼容沪市/深市/创业板/科创板 |
| `--base_date` | 是 | 涨跌幅计算基准日,格式 YYYYMMDD |
| `--n` | 是 | 需计算的有效交易日数量,建议不超过 365 |
| `--direction` | 是 | 计算方向:forward(基准日为结束日)/ backward(基准日为开始日) |

## 返回

- 记录字段:`stock_code`、`stock_name`、`base_date`、`n`、`direction`、`start_date`、`end_date`、`actual_trading_days`、`start_price`、`end_price`、`price_change`、`change_pct`

## 调用示例

```bash
python <RUN_PY> price-change --stock_code 600519 --base_date 20260828 --n 5 --direction forward
```

Files in this skill

  • SKILL.md768 B
  • scripts/handler.py3.7 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.