Skip to content
Skillpedia
Analysis & spreadsheets37k · #7503

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.md

Copy 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

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/ccxt/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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.

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills