Skip to main content

ccxt

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

설치로 이동

소스 정보

저장소
HKUDS/Vibe-Trading
최근 소스 활동
2026년 4월 9일 05:43
감지된 SKILL.md 언어
영어
스타
34,287
포크
5,577

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
ccxt
category
data-source
description
CCXT unified crypto exchange library (100+ exchanges). Free public market data. Fallback when OKX is unavailable.
## 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 ```python 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).
GitHub에서 보기