oclaw/runtime/skills/tushare-finance/reference/接口文档/美股交易日历.md
oliver d1bcc4debe feat: multimodal image clients, workspaces, Tushare skill, test fixes
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:41:42 +08:00

1.6 KiB
Raw Blame History

美股交易日历

文档ID: 253 原始链接: https://tushare.pro/document/2?doc_id=253


美股交易日历

接口:us_tradecal描述:获取美股交易日历信息限量:单次最大6000,可根据日期阶段获取

输入参数

名称 类型 必选 描述 示例
start_date str N 开始日期 20200101
end_date str N 结束日期 20200701
is_open str N 是否交易 0:休市 、1:交易
输出参数
名称 类型 默认显示 描述
cal_date str Y 日历日期
is_open int Y 是否交易 '0'休市 '1'交易
pretrade_date str Y 上一个交易日
接口示例

pro = ts.pro_api()

df = pro.us_tradecal(start_date='20200101', end_date='20200701')


数据示例

     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