ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 4/5

fetch-stock-daily-json

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 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 贵州茅台.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chenchunjiekk/fetch-stock-daily
Or

What This Skill Does

The fetch-stock-daily-json skill is a professional-grade tool designed for OpenClaw agents to interface directly with China A-share market data. It orchestrates a sophisticated pipeline that accepts natural language queries or specific stock identifiers, resolves them into verified market codes using Eastmoney's comprehensive directory, and retrieves historical daily OHLCV (Open, High, Low, Close, Volume) data. The process culminates in the generation of structured, archival-ready JSON files, providing a high-fidelity data source for quantitative analysis, historical backtesting, or long-term market tracking.

Installation

To integrate this capability into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/chenchunjiekk/fetch-stock-daily Ensure your local environment is equipped with a compatible Node.js runtime, as the skill leverages dedicated JavaScript scripts to handle API communications and data transformation efficiently.

Use Cases

This skill is ideal for quantitative traders, financial analysts, and software developers building financial monitoring systems. Use it when you need to:

  • Archive historical daily market bars for specific A-share stocks for local offline processing.
  • Build a local data warehouse of OHLCV data without relying on paid data providers.
  • Normalize inconsistent user inputs (e.g., converting 'Moutai' or '600519' into a canonical technical format).
  • Automate daily or weekly data collection tasks via OpenClaw workflows.
  • Prepare high-quality raw datasets for downstream machine learning model training or strategy research.

Example Prompts

  • "OpenClaw, please fetch the last 3 years of daily historical data for 贵州茅台 and save it to the local repository."
  • "Download the raw daily OHLCV JSON for 300750.SZ using post-adjustment (qfq) starting from January 1st, 2024."
  • "Get historical daily bars for 000001.SZ and confirm the file path of the resulting JSON."

Tips & Limitations

  • Efficiency: The skill defaults to a 5-year lookback period and 'qfq' (forward adjustment) to ensure the data is immediately usable for most analysis tasks.
  • Input Handling: Always prefer standardized codes (6-digit) or exact Chinese names to ensure high-accuracy resolution. Avoid legacy formats like 'sh600519'.
  • Persistence: All files are saved in data/raw/eastmoney/daily_history/YYYYMMDD/ for consistent chronological organization.
  • Scope: This tool is strictly for China A-share markets. For global equities or futures, this skill should not be utilized.

Metadata

Stars3840
Views1
Updated2026-04-06
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chenchunjiekk-fetch-stock-daily": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#finance#stocks#json#node#data-archiving
Safety Score: 4/5

Flags: network-access, file-write, file-read, external-api, code-execution