Back to skills
SKILL.md
Nth Trade Date
ASecurity查询第 N 个交易日。Use when user asks for 前 N 个交易日、某日期对应的第 N 个交易日或交易日倒推。
- 65 stars
- 0 votes
- 0 copies
- 2 views
- Added September 20, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add FTShare-Lab/FTShare-skill --skill nth-trade-date --agent claude-codeAre you the author of Nth Trade Date?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ftshare-lab-nth-trade-date)---
name: nth-trade-date
description: 查询第 N 个交易日。Use when user asks for 前 N 个交易日、某日期对应的第 N 个交易日或交易日倒推。
---
# 第 N 个交易日
接口:`GET /api/v1/market/data/time/get-nth-trade-date`。按服务端当前日期向前计算第 N 个交易日。在线文档:[《第N个交易日》](https://market.ft.tech/gateway/doc/pages/ocqw0qc8.md)
```bash
python <RUN_PY> nth-trade-date --n 5
```
- `--n`:必填整数,必须大于等于 1。
响应为 `code/message/data` 信封,`data` 包括 `current_date`、`nth_trade_date`(均为 `YYYY-MM-DD`)和请求的 `n`。
## 参数
| 参数 | 必填 | 说明 |
|---|---|---|
| `--n` | 是 | 需要获取的前 N 个交易日,N >= 1 |
## 返回
- 记录字段:`current_date`、`nth_trade_date`、`n`
Files in this skill
- SKILL.md
- scripts/handler.py
- scripts/test_handler.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.