ccxt
Interact with 100+ cryptocurrency exchanges — fetch markets, order books, tickers, place orders, check balances, and more using the CCXT CLI.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/pcriadoperez/ccxtCCXT — Cryptocurrency Exchange Trading
You have access to the ccxt CLI tool which lets you interact with 100+ cryptocurrency exchanges (Binance, Bybit, OKX, Kraken, Coinbase, and many more). You can fetch market data, place orders, check balances, and stream live data.
Core Syntax
ccxt <exchange_id> <methodName> [args...] [options]
Before Calling Any Method
If you're unsure about the required arguments for a method, run:
ccxt explain <methodName>
This will show you the required and optional arguments with descriptions.
Available Options
| Flag | Purpose |
|---|---|
--verbose | Show raw request/response data |
--sandbox | Use testnet/sandbox environment |
--raw | Output clean JSON without formatting |
--swap | Target swap/perpetuals account |
--future | Target futures account |
--spot | Target spot account |
--option | Target options account |
--param key=value | Pass extra exchange-specific params (repeatable) |
--no-keys | Skip API key loading |
Common Operations
Market Data (Public — No API Keys Required)
Fetch markets (list all trading pairs on an exchange):
ccxt <exchange> fetchMarkets --raw
Fetch a single ticker:
ccxt <exchange> fetchTicker "BTC/USDT" --raw
Fetch multiple tickers:
ccxt <exchange> fetchTickers --raw
Fetch order book:
ccxt <exchange> fetchOrderBook "BTC/USDT" --raw
Fetch OHLCV candles:
ccxt <exchange> fetchOHLCV "BTC/USDT" 1h undefined 10 --raw
Fetch recent trades:
ccxt <exchange> fetchTrades "BTC/USDT" --raw
Fetch exchange status:
ccxt <exchange> fetchStatus --raw
Fetch currencies:
ccxt <exchange> fetchCurrencies --raw
Trading (Private — Requires API Keys)
Create an order:
ccxt <exchange> createOrder "BTC/USDT" limit buy 0.001 50000 --raw
ccxt <exchange> createOrder "BTC/USDT" market buy 0.001 --raw
Create order with extra params:
ccxt <exchange> createOrder "BTC/USDT" limit buy 0.001 50000 --param stopPrice=49000 --raw
Cancel an order:
ccxt <exchange> cancelOrder "<order_id>" "BTC/USDT" --raw
Fetch open orders:
ccxt <exchange> fetchOpenOrders "BTC/USDT" --raw
Fetch closed orders:
ccxt <exchange> fetchClosedOrders "BTC/USDT" --raw
Fetch a specific order:
ccxt <exchange> fetchOrder "<order_id>" "BTC/USDT" --raw
Account (Private — Requires API Keys)
Fetch balance:
ccxt <exchange> fetchBalance --raw
Fetch balance for derivatives:
ccxt <exchange> fetchBalance --swap --raw
Fetch my trades:
ccxt <exchange> fetchMyTrades "BTC/USDT" --raw
Fetch positions (derivatives):
ccxt <exchange> fetchPositions --swap --raw
Fetch deposit address:
ccxt <exchange> fetchDepositAddress "BTC" --raw
Derivatives
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-pcriadoperez-ccxt": {
"enabled": true,
"auto_update": true
}
}
}