skills/tushare-data-1.0.5/references/数据接口/美股数据/美股交易日历.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

62 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 美股交易日历
----
接口us_tradecal
描述:获取美股交易日历信息
限量单次最大6000可根据日期阶段获取
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述 | 示例
---- | ----- | ---- | ---- | ----
start_date | str | N | 开始日期 | 20200101
end_date | str | N | 结束日期 | 20200701
is_open | str | N | 是否交易 | 0休市 、1交易
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
cal_date | str | Y | 日历日期
is_open | int | Y | 是否交易 &#39;0&#39;休市 &#39;1&#39;交易
pretrade_date | str | Y | 上一个交易日
<br>
<br>
**接口示例**
```python
pro = ts.pro_api()
df = pro.us_tradecal(start_date='20200101', end_date='20200701')
```
<br>
<br>
**数据示例**
cal_date is_open pretrade_date
0 20200701 1 20200630
1 20200630 1 20200629
2 20200629 1 20200626
3 20200628 0 20200625
4 20200627 0 20200625
.. ... ... ...
178 20200105 0 20200102
179 20200104 0 20200102
180 20200103 1 20200102
181 20200102 1 20191231
182 20200101 0 20191230