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

108 lines
3.0 KiB
Markdown
Raw 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.

## 交易日历
----
接口trade_cal
描述:获取各大期货交易所交易日历数据
积分需2000积分才可以提取数据
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
exchange | str | N | 交易所 SHFE 上期所 DCE 大商所 CFFEX中金所 CZCE郑商所 INE上海国际能源交易所
start_date | str | N | 开始日期
end_date | str | N | 结束日期
is_open | int | N | 是否交易 0休市 1交易
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
exchange | str | Y | 交易所 同参数部分描述
cal_date | str | Y | 日历日期
is_open | int | Y | 是否交易 0休市 1交易
pretrade_date | str | N | 上一个交易日
**接口示例**
```python
pro = ts.pro_api('your token')
df = pro.trade_cal(exchange='DCE', start_date='20180101', end_date='20181231')
```
或者
```python
df = pro.query('trade_cal', exchange='DCE', start_date='20180101', end_date='20181231')
```
**数据样例**
exchange cal_date is_open
0 DCE 20180101 0
1 DCE 20180102 1
2 DCE 20180103 1
3 DCE 20180104 1
4 DCE 20180105 1
5 DCE 20180106 0
6 DCE 20180107 0
7 DCE 20180108 1
8 DCE 20180109 1
9 DCE 20180110 1
10 DCE 20180111 1
11 DCE 20180112 1
12 DCE 20180113 0
13 DCE 20180114 0
14 DCE 20180115 1
15 DCE 20180116 1
16 DCE 20180117 1
17 DCE 20180118 1
18 DCE 20180119 1
19 DCE 20180120 0
20 DCE 20180121 0
21 DCE 20180122 1
22 DCE 20180123 1
23 DCE 20180124 1
24 DCE 20180125 1
25 DCE 20180126 1
26 DCE 20180127 0
27 DCE 20180128 0
28 DCE 20180129 1
29 DCE 20180130 1
.. ... ... ...
335 DCE 20181202 0
336 DCE 20181203 1
337 DCE 20181204 1
338 DCE 20181205 1
339 DCE 20181206 1
340 DCE 20181207 1
341 DCE 20181208 0
342 DCE 20181209 0
343 DCE 20181210 1
344 DCE 20181211 1
345 DCE 20181212 1
346 DCE 20181213 1
347 DCE 20181214 1
348 DCE 20181215 0
349 DCE 20181216 0
350 DCE 20181217 1
351 DCE 20181218 1
352 DCE 20181219 1
353 DCE 20181220 1
354 DCE 20181221 1
355 DCE 20181222 0
356 DCE 20181223 0
357 DCE 20181224 1
358 DCE 20181225 1
359 DCE 20181226 1
360 DCE 20181227 1
361 DCE 20181228 1
362 DCE 20181229 0
363 DCE 20181230 0
364 DCE 20181231 1