获取当前日期的前 N 个交易日(market.ft.tech)。用户问前 N 个交易日、近 N 天交易日、往前推 N 个交易日时使用。查「近几天」K 线时可先调本接口得到 nth_trade_date,再转为时间戳用于 K 线接口。
Scanned 9/2/2026
Install to Claude Code
npx -y skills add FTShare-Lab/FTShare-skill --skill get-nth-trade-date --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Get Nth Trade Date?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ftshare-lab-get-nth-trade-date)More formats (shields.io, HTML) on the badges page.
---
name: get-nth-trade-date
description: 获取当前日期的前 N 个交易日(market.ft.tech)。用户问前 N 个交易日、近 N 天交易日、往前推 N 个交易日时使用。查「近几天」K 线时可先调本接口得到 nth_trade_date,再转为时间戳用于 K 线接口。
---
# 获取第 N 个交易日
## 1. 接口描述
| 项目 | 说明 |
|------|------|
| 接口名称 | 获取第 N 个交易日 |
| 外部接口 | `GET /api/v1/market/data/time/get-nth-trade-date` |
| 请求方式 | GET |
| 适用场景 | 获取当前日期的前 N 个交易日,用于计算交易日相关逻辑;查「近 N 天」K 线时先调用本接口得到起止交易日,再转为毫秒时间戳请求 K 线接口 |
## 2. 请求参数
| 参数名 | 类型 | 是否必填 | 描述 | 取值示例 | 备注 |
|--------|------|----------|------|----------|------|
| n | int | 是 | 前 N 个交易日 | 5 | 必须大于等于 1 |
## 3. 响应说明
| 字段名 | 类型 | 是否可为空 | 说明 |
|--------|------|------------|------|
| current_date | string | 否 | 当前日期,YYYY-MM-DD |
| nth_trade_date | string | 否 | 前 N 个交易日,YYYY-MM-DD |
| n | int | 否 | 请求的 N 值 |
```json
{
"current_date": "2025-01-15",
"nth_trade_date": "2025-01-08",
"n": 5
}
```
## 4. 用法
通过主目录 `run.py` 调用(必填 `--n`):
```bash
python <RUN_PY> get-nth-trade-date --n 5
```
`<RUN_PY>` 为主 SKILL.md 同级的 `run.py` 绝对路径。
## 5. 注意事项
- 查询「近 N 天」或「最近 N 个交易日」K 线时:先调用本接口取 `nth_trade_date`,再将该日期(及当前日)按北京时间转为毫秒时间戳,作为 K 线接口的 `since_ts_millis` / `until_ts_millis` 使用。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.