Fetches cryptocurrency market data (OHLCV, tickers, order books) from 100+ exchanges via the CCXT library. Useful for crypto trading bots, backtesting, and price monitoring.
Ships in vibe-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.
None: SKILL.md is the whole skill.
CCXT is a unified cryptocurrency exchange trading library supporting 100+ exchanges including Binance, Bybit, OKX, Coinbase, Kraken, and more. Public market data (OHLCV, tickers, order books) requires no API key.
pip install ccxtimport ccxt
from src.data_gateway.reads import managed_reader
from src.data_gateway import get_gateway
@managed_reader
def fetch_crypto_snapshot():
exchange = ccxt.binance({
"enableRateLimit": True,
"timeout": int(get_gateway().config.source_timeout * 1000),
})
try:
return {
"bars": exchange.fetch_ohlcv("BTC/USDT", "1d", limit=100),
"ticker": exchange.fetch_ticker("ETH/USDT"),
}
finally:
close = getattr(exchange, "close", None)
if callable(close):
close()
snapshot = fetch_crypto_snapshot()
print(snapshot["ticker"]["last"])
| Method | Description | Returns |
|---|---|---|
fetch_ohlcv(symbol, timeframe, since, limit) | Historical candles | [[ts, o, h, l, c, v], ...] |
fetch_ticker(symbol) | Latest quote | {last, bid, ask, volume, ...} |
fetch_tickers(symbols) | Batch quotes | {symbol: ticker} |
fetch_order_book(symbol, limit) | Order book | {bids, asks, timestamp} |
fetch_trades(symbol, since, limit) | Recent trades | [{price, amount, side, timestamp}, ...] |
1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w, 1M
Note: not all exchanges support all timeframes. Use exchange.timeframes to check.
CCXT uses slash format: BTC/USDT, ETH/BTC, SOL/USDT
The project's DataLoader automatically converts BTC-USDT (hyphen) to BTC/USDT (slash).
Set via environment variable: CCXT_EXCHANGE=binance (default)
Popular exchanges: binance, bybit, okx, coinbase, kraken, bitget, gate
The project has a built-in CCXT DataLoader at backtest/loaders/ccxt_loader.py. It serves as a fallback when the OKX loader is unavailable.
For long history, CCXT paginates via the since parameter (millisecond timestamp). The built-in loader handles this automatically (up to 200 pages).
What SKILL.md sets; muted values are Claude Code's defaults
/hkuds-vibe-trading-skills:ccxtfrom vibe-trading-skills
Generated from the plugin's indexed repository (hkuds/vibe-trading) — no native marketplace selected
npx claudepluginhub p/hkuds-vibe-trading-skills89 skills in this plugin
/adr-hshareADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment./akshareAKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance./alpha-zooBrowse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.Other plugins' skills for the same job