instrument()Instrument identity
Classifies equities, ETFs, indexes, and their markets.
↗●AGENT-NATIVE · EQUITIES · ETFs · INDEXES
SparkData Market Data Skill gives Claude Code, Codex, and OpenClaw one consistent interface for mainland equities, exchange-traded ETFs, indexes, latest quotes, and complete OHLCV bars—with source, cache, and aggregation semantics attached.
›$sparkdata-market-data get the latest Kweichow Moutai quote
Every response retains source, cache_status, generated_at, and aggregation_source. The agent can judge freshness and tell upstream bars from sampled aggregation instead of turning uncertainty into a claim.
01 / CAPABILITY BOUNDARY
The surface is intentionally focused. No orders, accounts, or tick trades—and no pretending a latest quote is a trade tape.
instrument()Classifies equities, ETFs, indexes, and their markets.
↗quote()The complete snapshot, not an isolated last price.
↗bars()1m, 5m, 15m, 30m, 1h, 1d, 1w, 1mo, 1q, and 1y.
↗stream()Best-effort SSE updates, explicitly marked as non-replayable.
↗02 / INSTALL
The installer detects macOS Intel / Apple Silicon or Linux x86_64, verifies the CLI, and installs one shared Skill for all three agents.
curl -fsSL https://test.spark-data.cn/install.sh | shSetup reads your API key invisibly in the terminal and stores it at ~/.config/sparkdata/config.json with mode 0600. Agents only invoke the local CLI.
~/.claude/skills/sparkdata-market-dataStart a new session, then invoke /sparkdata-market-data.
~/.agents/skills/sparkdata-market-dataRestart or open a new task, then invoke $sparkdata-market-data.
~/.openclaw/skills/sparkdata-market-dataOpen a new session; use /sparkdata-market-data in channels.
03 / USAGE
$sparkdata-market-data get the latest XSHG:600519 quote and report meta.source and event_time
$sparkdata-market-data get 30 days of 1d bars for XSHG:600519 and explain aggregation_source
$sparkdata-market-data compare the complete latest snapshots for XSHG:600519 and XSHE:000001
$sparkdata-market-data compare XSHG:510300 ETF with XSHG:000300 index over the last 30 days
SPARKDATA / MARKET DATA SKILL