Skip to content
cccskills
FreePublished on GitHub

ccxt

Use CCXT, a library with a common interface for over 100 cryptocurrency exchanges, to retrieve historical prices and volumes, current quotes, order books, and recent trades. Public market data requires no API key.

OriginalShow the original description

CCXT unified crypto exchange library (100+ exchanges). Free public market data. Fallback when OKX is unavailable.

Works withBinance
See how to install

Good for

  • Collecting historical prices and volumes for analysis
  • Fetching current quotes for multiple trading pairs
  • Inspecting order books and recent trades
  • Switching data sources when the OKX loader is unavailable

Files included (1)

  • SKILL.md2.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

MethodDescriptionReturns
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).

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

adr-hshare

FreeSummary

Compare a Chinese company's US depositary receipts, Hong Kong shares, and mainland shares after adjusting for exchange rates and share ratios. Analyze pricing gaps, valuation differences, and delisting risks to support research into its different listings.

  • Compare A-share and H-share pricing gaps
  • Measure ADR premiums against Hong Kong shares
  • Review US delisting risks and Hong Kong listing alternatives
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

akshare

FreeSummary

Retrieve stock prices, futures quotes, exchange rates, and economic indicators with the free Python library AKShare. The skill explains market-specific functions, symbol formats, and data preparation for analysis and testing strategies against historical data.

  • Retrieve historical prices for Chinese, US, and Hong Kong stocks
  • Collect Chinese GDP and consumer price data
  • Check futures quotes and foreign exchange rates
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

alpha-zoo

FreeSummary

Explore bundled libraries of investment factors, signals used to compare securities, and inspect individual formulas and metadata. Evaluate a factor or an entire library across a chosen universe and period, producing aggregate performance statistics and an HTML report.

  • Find bundled momentum or reversal factors
  • Inspect a named factor's formula and metadata
  • Compare a factor library across a chosen universe and period
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

Assess whether a Chinese A-share company may receive ST or *ST risk warnings next financial year. Review financial forecasts, dividends, audit opinions, and regulatory penalties, then report risk severity separately from confidence in the prediction.

  • Reviewing a Chinese A-share company's future ST risk
  • Assessing escalation risk for an existing ST or *ST stock
  • Checking revenue, equity, and dividend warning signs
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

asset-allocation

FreeSummary

Plan portfolio allocations across assets using risk, correlations, return forecasts, and trading costs. Compare five optimization methods, produce settings for config.json, and define rebalancing rules that adjust holdings back toward their target weights.

  • Comparing allocations across stocks, bonds, and gold
  • Choosing an optimizer based on return forecasts and correlations
  • Preparing portfolio settings for config.json
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

Diagnose failed or abnormal backtests, which test trading strategies on historical data. Inspect result files, strategy code, and configuration to identify bugs, make targeted repairs, rerun tests, and verify the updated metrics.

  • Investigating backtest execution errors
  • Finding why a strategy produces no trades
  • Checking delayed trades or low capital usage
HKUDS/Vibe-Trading35.9KUpdated Oct 18, 2026

See all skills by HKUDS

Report a problem with this skill