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

63 lines
1.1 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.

## 港股交易日历
----
接口hk_tradecal
描述:获取交易日历
限量单次最大2000
权限用户积累2000积分才可调取
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
start_date | str | N | 开始日期
end_date | str | N | 结束日期
is_open | str | N | 是否交易 &#39;0&#39;休市 &#39;1&#39;交易
<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.hk_tradecal(start_date='20200101', end_date='20200708')
```
<br>
<br>
**数据示例**
cal_date is_open pretrade_date
0 20200708 1 20200707
1 20200707 1 20200706
2 20200706 1 20200703
3 20200705 0 20200702
4 20200704 0 20200702
5 20200703 1 20200702
6 20200702 1 20200630
7 20200701 0 20200629