Install
openclaw skills install fetch-stock-dailyResolve 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 when the request is about 日线, 历史K线, daily history, candles, OHLCV, raw market data export, or stock-name-or-code to API to JSON persistence for inputs such as 600519, 300750.SZ, or 贵州茅台.
openclaw skills install fetch-stock-dailyUse this skill for the publishable Node.js path stock input -> symbol resolution -> daily history fetch -> raw JSON archive.
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.
600519.SH or 300750.SZ, or a Chinese stock name. Do not use sh600519.daily period and qfq/hfq/none adjustment.data/raw/eastmoney/daily_history/YYYYMMDD/<symbol>_<HHMMSS>.json.years=5 and adjust=qfq when the user does not provide a date window.Return the script's JSON summary and call out:
resolved_symbolrowstrade_date_mintrade_date_maxoutput_pathrows: 0.references/lobsterclaw-workflow.md.