Fetches OHLCV price history and quotes for stocks, ETFs, indices, forex, futures, and crypto via Yahoo Finance (free, no API key), local CSV files, or broker feeds. Handles daily to intraday intervals.
Ships in trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
trading-data)The data layer for the whole pack. Every other skill fetches through the same provider and cache.
Run from this skill's directory: python3 scripts/data.py <command>.
python3 scripts/data.py bars AAPL --interval 1d --period 1y # last 10 rows + summary
python3 scripts/data.py bars BTC-USD --interval 1h --period 1mo --out btc_1h.csv
python3 scripts/data.py bars 7203.T --start 2019-01-01 --json --all # full JSON
python3 scripts/data.py quote AAPL ^GSPC EURUSD=X GC=F # latest prices
python3 scripts/data.py many --universe watchlist.txt --period 2y --out-dir data/
python3 scripts/data.py clear-cache
Intervals: 1m 2m 5m 15m 30m 60m 1h 1d 1wk 1mo. Periods: 1d 5d 1mo 3mo 6mo 1y 2y 5y 10y max
(or --start/--end YYYY-MM-DD). Yahoo limits intraday history (1m: 7 days, 5-30m: 60 days, 1h: ~2 years).
AAPL, SHEL.L, RY.TO, INFY.NS, RELIANCE.BO, 7203.T, 0700.HK, BHP.AX, SAP.DE^GSPC, ^NDX, ^FTSE, ^N225, ^NSEI, ^GDAXI, ^HSIEURUSD=X, USDJPY=X - Futures: ES=F, GC=F, CL=F - Crypto: BTC-USD, ETH-USDEXCHANGE:SYMBOL, e.g. NSE:INFYIf a symbol fails, suggest the likely Yahoo spelling (exchange suffix) and retry once.
| provider | key needed | notes |
|---|---|---|
yahoo (default) | no | unofficial endpoint; daily bars split/dividend adjusted; may be delayed or rate-limited |
csv | no | data.csv_dir/SYMBOL.csv with date,open,high,low,close,volume (column names flexible) |
kite | Kite Connect data plan | unadjusted candles; EXCHANGE:SYMBOL symbols |
Switch with trading-setup: setup.py set data.provider csv. Override per call with --provider.
Cache: ~/.trading-skills/cache/, TTL data.cache_ttl_minutes (60). Use --no-cache for fresh prices.
many (4 workers) rather than looping hundreds of single calls.scripts/_vendor/tradekit/__init__.py (opens in a new tab)scripts/_vendor/tradekit/alerts.py (opens in a new tab)scripts/_vendor/tradekit/analysis.py (opens in a new tab)scripts/_vendor/tradekit/backtest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/__init__.py (opens in a new tab)scripts/_vendor/tradekit/brokers/_rest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/base.py (opens in a new tab)scripts/_vendor/tradekit/brokers/dhan.py (opens in a new tab)scripts/_vendor/tradekit/brokers/fyers.py (opens in a new tab)scripts/_vendor/tradekit/brokers/groww.py (opens in a new tab)scripts/_vendor/tradekit/brokers/kite.py (opens in a new tab)scripts/_vendor/tradekit/brokers/paper.py (opens in a new tab)scripts/_vendor/tradekit/brokers/upstox.py (opens in a new tab)scripts/_vendor/tradekit/cli.py (opens in a new tab)scripts/_vendor/tradekit/config.py (opens in a new tab)scripts/_vendor/tradekit/data.py (opens in a new tab)scripts/_vendor/tradekit/disclosures.py (opens in a new tab)scripts/_vendor/tradekit/expr.py (opens in a new tab)scripts/_vendor/tradekit/feeds.py (opens in a new tab)scripts/_vendor/tradekit/frame.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/trading-skills:trading-datafrom trading-skills
npx claudepluginhub reddygopalkrishna/trading-skills --plugin trading-skills21 skills in this plugin
/trading-alertsPrice alerts for any market - above or below a price, a trade's stop and target (long or short), a percent move from the previous close, a time on the exchange clock, the opening bell and minutes before the close, plus stop and target alerts for every open trade in the journal in one go. Works out each exchange's session from the data (NYSE, Nasdaq, NSE, BSE, LSE, TSE...) so holidays need no tables; each alert rings once; optional desktop notifications. Use when the user says "alert me when", "tell me if RELIANCE crosses 1400", "watch my stop", "remind me to close by 3:20", "is the market open", "when does NSE open", or right after a trade is planned or opened./trading-backtestBacktest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.