Skip to content
get-nth-trade-date logo

获取第 N 个交易日

get-nth-trade-date

获取当前日期的前 N 个交易日(market.ft.tech)。用户问前 N 个交易日、近 N 天交易日、往前推 N 个交易日时使用。查「近几天」K 线时可先调本接口得到 nth_trade_date,再转为时间戳用于 K 线接口。

SKILL.md

Full skill instructions

获取第 N 个交易日

1. 接口描述

项目说明
接口名称获取第 N 个交易日
外部接口GET /​data/​api/​v1/​market/​data/​time/​get-nth-trade-date
请求方式GET
适用场景获取当前日期的前 N 个交易日,用于计算交易日相关逻辑;查「近 N 天」K 线时先调用本接口得到起止交易日,再转为毫秒时间戳请求 K 线接口

2. 请求参数

参数名类型是否必填描述取值示例备注
nint是前 N 个交易日5必须大于等于 1

3. 响应说明

字段名类型是否可为空说明
current_datestring否当前日期,YYYY-MM-DD
nth_trade_datestring否前 N 个交易日,YYYY-MM-DD
nint否请求的 N 值
{
  "current_date": "2025-01-15",
  "nth_trade_date": "2025-01-08",
  "n": 5
}

4. 用法

通过主目录 run.py 调用(必填 --n):

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 使用。

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View