ccxt
What it does
This skill teaches an agent to use the CCXT library to get crypto market data from many exchanges. It is for traders and developers who want public prices and candles without an exchange account.
When to use it
- ✓When you need crypto price history from an exchange such as Binance or Bybit.
- ✓When you want a fallback source for crypto data when another exchange is unavailable.
- ✓When you need an order book or recent trades for a crypto pair.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/ccxt/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Get the last 100 daily candles for BTC against USDT from Binance and show me the closing trend.”
5 new skills a week. 1 minute to read.
How it works
The agent uses the CCXT library to connect to the chosen exchange and fetches public data, such as candles, tickers or order books. Public data needs no API key, while trading actions would need separate authorization.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Overview
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.
- GitHub: https://github.com/ccxt/ccxt (35k+ stars)
- Install:
pip install ccxt
Quick Start
import ccxt
exchange = ccxt.binance({"enableRateLimit": True})
# Fetch daily OHLCV
ohlcv = exchange.fetch_ohlcv("BTC/USDT", "1d", limit=100)
# Returns: [[timestamp, open, high, low, close, volume], ...]
# Fetch ticker
ticker = exchange.fetch_ticker("ETH/USDT")
print(f"ETH price: {ticker['last']}")
Key Methods
| 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}, ...] |
Timeframes
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.
Symbol Format
CCXT uses slash format: BTC/USDT, ETH/BTC, SOL/USDT
The project's DataLoader automatically converts BTC-USDT (hyphen) to BTC/USDT (slash).
Exchange Selection
Set via environment variable: CCXT_EXCHANGE=binance (default)
Popular exchanges: binance, bybit, okx, coinbase, kraken, bitget, gate
Built-in Loader
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.
Pagination
For long history, CCXT paginates via the since parameter (millisecond timestamp). The built-in loader handles this automatically (up to 200 pages).
FAQ
Does it need an exchange account?
No, for public market data. Account-based actions need separate keys.
How many exchanges does it support?
More than 100, according to the library.
Do all exchanges offer every timeframe?
No. The agent checks which timeframes each exchange supports before requesting data.
Details
Original description by the author
CCXT unified crypto exchange library (100+ exchanges). Free public market data. Fallback when OKX is unavailable.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7503
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.