fetch-stock-daily
/install fetch-stock-daily
Fetch Stock Daily JSON
Use this skill for the publishable Node.js path stock input -> symbol resolution -> daily history fetch -> raw JSON archive.
Quick Start
Run the Node.js helper from the repo root:
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 贵州茅台
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 600519 --years 3
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 宁德时代 --start-date 20240101 --end-date 20260329 --adjust qfq
The script prints a JSON summary with the resolved symbol, row count, requested window, actual trade-date bounds, and saved file path.
Workflow
- Accept repo-compatible inputs only: 6-digit code,
600519.SHor300750.SZ, or a Chinese stock name. Do not usesh600519. - Prefer the bundled Node.js script instead of re-implementing the workflow in the task.
- Resolve stock names through the Eastmoney A-share list API and cache the code-name map locally.
- Fetch daily bars from the Eastmoney historical kline API with
dailyperiod andqfq/hfq/noneadjustment. - Save the archived rows under
data/raw/eastmoney/daily_history/YYYYMMDD/\x3Csymbol>_\x3CHHMMSS>.json. - Default to
years=5andadjust=qfqwhen the user does not provide a date window. - Stop after JSON archive generation unless the user explicitly asks for downstream parsing, analysis, or DB sync.
Return Format
Return the script's JSON summary and call out:
resolved_symbolrowstrade_date_mintrade_date_maxoutput_path
Failure Handling
- If name resolution fails, ask for a valid 6-digit A-share code or Chinese stock name.
- If the fetch returns zero rows, keep the archive file and report
rows: 0. - If you need the JS-side API details or the parity notes versus the Python workflow, read
references/lobsterclaw-workflow.md.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fetch-stock-daily - 安装完成后,直接呼叫该 Skill 的名称或使用
/fetch-stock-daily触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
fetch-stock-daily 是什么?
Resolve a China A-share stock name or code in pure Node.js, fetch daily historical bars from Eastmoney HTTP APIs, and archive them as local JSON files. Use w... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 fetch-stock-daily?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fetch-stock-daily」即可一键安装,无需额外配置。
fetch-stock-daily 是免费的吗?
是的,fetch-stock-daily 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
fetch-stock-daily 支持哪些平台?
fetch-stock-daily 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 fetch-stock-daily?
由 ChenchunjieKK(@chenchunjiekk)开发并维护,当前版本 v1.0.0。