eastmoney-us-stock-daily-ohlc

Solid

查询东财美股历史日 K 线。当用户需要查询东财美股历史日 K 线;有日期范围时按 3 天窗口分批请求,无日期范围时全量拉取,或了解东财美股历史 OHLC、东财美股历史日 K 线时使用。

AI & Automation 63 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 查询东财美股历史 OHLC ## 接口说明 | 项目 | 说明 | |---|---| | 接口名称 | 查询东财美股历史日 K 线 | | 外部接口 | `/api/v1/market/data/eastmoney-us-stock-daily-ohlc` | | 请求方式 | GET | | 适用场景 | 查询东财美股历史日 K 线;有日期范围时按 3 天窗口分批请求,无日期范围时全量拉取 | ## 请求参数 | 参数名 | 类型 | 是否必填 | 描述 | 取值示例 | 备注 | |--------|------|----------|------|----------|------| | `--stock_code` | string | 是 | 股票代码 | `AAL` | 东财美股代码 | | `--start_date` | string | 否 | 起始日期(含) | `2026-06-01` | 格式 `YYYY-MM-DD` 或 `YYYYMMDD` | | `--end_date` | string | 否 | 截止日期(含) | `2026-06-10` | 格式 `YYYY-MM-DD` 或 `YYYYMMDD` | | `--page` | int | 否 | 页码 | `1` | 从 1 开始,默认 1 | | `--page_size` | int | 否 | 每页条数 | `50` | 默认 50 | | `--all` | flag | 否 | 全量返回 | — | 返回全量数据(不分页) | > **执行策略**:有日期范围时,将区间拆分为最多 3 天的窗口分批请求,合并去重排序;无日期范围时全量拉取(不传日期参数)。 ### 查询模式 | 模式 | 参数 | 说明 | |------|------|------| | 全部历史 | `--stock_code` | 全量拉取全部历史 K 线(分页) | | 日期区间 | `--stock_code --start_date --end_date` | 按 3 天窗口分批请求,合并后分页 | | 日期区间全量 | `--stock_code --start_date --end_date --all` | 按 3 天窗口分批请求,合并后返回全量(不分页) | ## 执行方式 通过根目录的 `run.py` 调用: ```bash python <RUN_PY> eastmoney-us-stock-daily-ohlc --stock_code AAL --page 1 --page_size 10 python <RUN_PY> eastmoney-us-stock-daily-ohlc --stock_code AAL --start_date 2026-05-01 --end_date 2026-06-10 --page 1 --page_size 50 python <RUN_PY> eastmoney-us-stock-daily-ohlc --stock_code AAL --start_date 2026-05-01 --end_date 2026-06-10 --all ``` > `<RUN_PY>` 为主 `SKILL.md` 同级的 `run.py` 绝对路径,参见主 SKILL.md 的「调用方式」说明。 ## 响应结构 顶层为分页包装对象: | 字段名 | 类型 | 描述 | |--------|---...

Details

Author
FTShare-Lab
Repository
FTShare-Lab/FTShare-skill
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category