ccxt-cli
Qué hace
Esta skill muestra cómo usar la herramienta de línea de comandos ccxt para llamar a funciones de exchanges desde una terminal, sin escribir código. Es para personas que quieren acceso rápido a datos o acciones de un exchange.
Cuándo usarla
- ✓Cuando quieres consultar un precio o un libro de órdenes de criptomonedas desde la terminal.
- ✓Cuando quieres ver tu saldo en el exchange o tus órdenes abiertas.
- ✓Cuando quieres ver en directo tickers o libros de órdenes en una terminal.
Link de la skill
https://github.com/ccxt/ccxt/blob/master/.claude/skills/ccxt-cli/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Muéstrame el ticker actual de Bitcoin en Kraken desde mi terminal.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Escribes un comando con el nombre del exchange y el método, como una consulta de ticker. La herramienta llama al exchange e imprime el resultado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
CCXT CLI
The CCXT CLI (ccxt-cli on npm) exposes the entire unified CCXT API as a terminal command. Anything you can call in code — fetchTicker, fetchOHLCV, createOrder, fetchBalance, withdraw, exchange-specific implicit methods — you can call as:
ccxt <exchangeId> <methodName> [args...] [options]
It supports 100+ exchanges, REST and WebSocket, public and private endpoints, live terminal dashboards, and interactive OHLCV charts.
Installation
npm install -g ccxt-cli # installs the `ccxt` command
ccxt --help
One-off use without installing (note -p ccxt-cli — the package name differs from the binary name):
npx -y -p ccxt-cli ccxt kraken fetchTicker BTC/USD
From a clone of the CCXT repository (contributor mode — uses the local source tree instead of the published package):
npm run cli.ts -- kraken fetchTicker BTC/USD # runs cli/ts/cli.ts against local ts/
Quick start
# Public data — no API keys needed
ccxt kraken fetchTicker BTC/USD
ccxt kraken fetchOrderBook ETH/BTC
ccxt bybit fetchOHLCV BTC/USDT 15m
ccxt okx fetchTrades BTC/USDT
# Private data — needs API keys (see Authentication)
ccxt kraken fetchBalance
ccxt binance fetchOpenOrders BTC/USDT
# Place an order (start with --sandbox and small amounts!)
ccxt binance createOrder BTC/USDT limit buy 0.001 60000 --sandbox
Every run prints the CCXT version, the resolved call (e.g. kraken.fetchTicker ("BTC/USD")), the result, and timing. Use --raw to suppress everything except the JSON result.
Discovering methods and arguments
ccxt --help # all options, commands, and the config path for your OS
ccxt methods kraken # every method the exchange supports (its `has` capabilities)
ccxt explain createOrder # required/optional arguments for any unified method
ccxt history # your previously executed commands
ccxt explain <method> output shows the argument order you must follow:
Method: createOrder
Usage:
binance createOrder <symbol> <type> <side> <amount> [price] [params]
Arguments:
- symbol (required) — Market symbol e.g., BTC/USDT
- type (required) — e.g., limit or market
- side (required) — order side e.g., buy or sell
- amount (required)
- price (optional) — Price per unit of asset e.g., 26000.50
- params (optional) — Extra parameters for the exchange
Argument rules (important)
Arguments are positional and must follow the method's signature order. The CLI auto-converts each argument:
| You type | The method receives |
|---|---|
BTC/USDT |
string 'BTC/USDT' |
0.001, 100 |
number |
undefined |
undefined (placeholder to skip an optional arg — the call echo displays it as null, which is expected) |
true / false / null |
boolean / null |
"2025-05-01T01:23:45Z" |
milliseconds timestamp (ISO8601 datetimes auto-convert; date-only strings like 2025-05-01 do NOT — include the time part) |
'{"recvWindow":5000}' |
object (JSON must be shell-quoted) |
'["BTC/USDT","ETH/USDT"]' |
array (shell-quoted) |
Rule 1 — pad skipped optionals with undefined. To pass limit without since:
ccxt binance fetchOHLCV BTC/USDT 1h undefined 10 # since=undefined, limit=10
Rule 2 — --param key=value appends to the trailing params object. Repeat it for multiple keys. Values are coerced the same way (true, false, null, numbers, strings):
ccxt binance createOrder BTC/USDT market buy 0.01 undefined --param test=true --param clientOrderId=myOrder
Rule 3 — when using --param, explicitly fill ALL earlier optional positionals with undefined. If you leave gaps, the CLI mis-assigns arguments (a known quirk — the params object can end up in the wrong position). Correct:
ccxt bybit fetchOHLCV BTC/USDT 15m undefined undefined --param until=1722161166530 # ✅
ccxt bybit fetchOHLCV BTC/USDT --param until=1722161166530 # ❌ args get scrambled
Authentication
Private methods (fetchBalance, createOrder, fetchMyTrades, ...) need credentials. Three sources:
1. Environment variables
Pattern: <EXCHANGEID>_<CREDENTIAL> upper-cased. The credential names come from each exchange's requiredCredentials (apiKey, secret, password, uid, walletAddress, privateKey, ...):
export BINANCE_APIKEY=your_api_key
export BINANCE_SECRET=your_s
Preguntas frecuentes
¿Cómo la instalo?
La skill dice que hay que instalar globalmente el paquete ccxt-cli desde npm, que proporciona el comando ccxt.
¿Necesito claves de API?
Los datos públicos no necesitan claves, pero los datos privados, como los saldos, sí necesitan claves de API.
¿Hay una forma segura de probar órdenes?
La skill recomienda la opción de sandbox y cantidades pequeñas al colocar órdenes.
Detalles
Descripción original del autor
CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code required. Covers installing the CLI, calling any unified CCXT method (fetchTicker, fetchOHLCV, createOrder, fetchBalance), passing arguments and exchange-specific params, authenticating with API keys, sandbox/testnet mode, streaming live tickers and orderbooks over WebSocket, plotting OHLCV charts, and scripting with raw JSON output. Use when the user wants to query an exchange, test API credentials, place or inspect orders, or debug exchange requests from the command
repo: ccxt/ccxt
Popularidad
- Estrellas en GitHub
- 45 mil
- Posición en el ranking
- #6379
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
binance-agentic-wallet
45 milPermite que tu agente gestione una billetera Web3 de Binance mediante la línea de comandos baw, incluidos el inicio de sesión, los saldos, las transferencias, los intercambios de tokens y las órdenes límite.
binance-sports-ai-analyzer
45 milAyuda a tu agente a consultar predicciones de partidos del Mundial, análisis con IA y perspectivas de noticias, y a recalcular las probabilidades de victoria cuando cambias las señales.
binance-tokenized-securities-info
45 milPermite que tu agente consulte las acciones estadounidenses tokenizadas de Ondo en Binance Web3, incluyendo listas de tokens, información de empresas, estado de negociación y precios en cadena.
binance
45 milPermite que tu agente use Binance Spot, USD-M Futures y Convert mediante la herramienta binance-cli. Requiere que primero configures la autenticación.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.