Automated summary
Exposes the unified CCXT API as a terminal command so you can query 100+ cryptocurrency exchanges, test API keys, and place orders without writing code.
Strengths
- A single syntax (`ccxt <exchange> <method> [args]`) reaches REST and WebSocket methods across 100+ exchanges, both public and private.
- Built-in discovery commands (`ccxt methods`, `ccxt explain`, `ccxt history`) remove the guesswork around argument order and exchange capabilities.
- Arguments are auto-converted (numbers, booleans, JSON, arrays, ISO8601 timestamps) and `--raw` yields pure JSON, which makes shell scripting straightforward.
- Explicit `--sandbox`/testnet guidance for order placement, encouraging safe experimentation before touching real funds.
Limitations
- The provided content cuts off mid-sentence in the argument-rules section, so advanced topics (exchange-specific params, WebSocket streaming, OHLCV plotting) are only named, not documented.
- No guidance on error handling, rate limits, or retries, which matter a great deal for anything trading-related.
- Private calls handle real API keys and can submit real orders; key hygiene and safeguards are left entirely to the user.
- Requires a Node/npm environment, and the npm package name (`ccxt-cli`) differs from the binary name (`ccxt`), which can be confusing.
Use it when you need to quickly inspect market data, validate API credentials, or rehearse an order on an exchange from the terminal or a shell script.
Avoid it as the foundation of production trading infrastructure (backtesting, risk management, order orchestration) or when no Node runtime is available.
Security analysis
CautionThe content is genuine documentation for the public ccxt-cli tool. It has no destructive, obfuscated, or exfiltrating instructions, but it does give an agent the ability to run network calls against real exchanges, hold API credentials in plaintext files, and place live trades with real money — powerful capabilities used for legitimate purposes, so 'caution' rather than 'risky'. The skill itself is unusually candid about pitfalls (ignored --no-send/--no-load-markets, mandatory sandbox testing, never committing keys), which mitigates the risk.
- •Skill documents placing live cryptocurrency orders (createOrder) with real funds on 100+ exchanges — high-impact financial actions driven by an AI agent
- •Instructions direct the agent to install/run third-party code from npm (`npm install -g ccxt-cli`, `npx -y -p ccxt-cli ccxt`), which executes remote package code
- •Credential handling guidance: exchange API keys/secrets are placed in a plaintext JSON config at $CACHE/ccxt-cli/config.json or in keys.json/keys.local.json in the working directory, which could be exposed or committed
- •The CLI logs executed commands (including inline arguments) to a history file; the skill does warn against passing secrets as CLI arguments
- •Skill correctly warns that `--no-send` is silently ignored (request is actually sent), which prevents a false sense of a dry run — good, but underlines that live side effects occur by default
- •No obfuscated payloads, no curl|sh piping, no exfiltration of secrets to third parties, no safety-disabling instructions detected; the data contains no prompt-injection attempts
- •Skill guides an agent to run live-trading commands (createOrder, cancelOrder, withdraw is mentioned in passing) against real exchanges with real funds; irreversible financial actions are one flag away and there is no built-in confirmation gate.
- •Credential handling relies on plaintext storage (`$CACHE/ccxt-cli/config.json`, `keys.json`/`keys.local.json` in CWD, and a persisted command history at `$CACHE/ccxt-cli/history/commands.json`); the skill does warn about history/committing keys, but the default paths store API secrets unencrypted.
- •`--verbose` is recommended as the primary debugging step; it dumps full HTTP request/response, which for private endpoints includes signed headers/API key material that can end up in agent transcripts or logs.
- •The skill explicitly documents that `--no-send` is silently ignored and the request IS sent — a user/agent trusting it as a dry run could inadvertently place a live order; the mitigation (use --sandbox/--param test=true) is stated but easy to miss.
- •Installs a third-party npm package globally (`npm install -g ccxt-cli`) and via `npx -y`, i.e. unpinned remote code execution on the host — normal for CLI docs but worth noting.
Examples
Use the ccxt CLI to fetch the current BTC/USD ticker from Kraken and show me just the raw JSON.Install ccxt-cli and check my Binance balance using the API keys in my environment, in sandbox mode.Show me the correct argument order for createOrder on Bybit, then place a tiny limit buy on the sandbox testnet.name: ccxt-cli description: 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 line or in shell scripts.
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_secret
ccxt binance fetchBalance
# okx also needs a passphrase:
export OKX_APIKEY=... OKX_SECRET=... OKX_PASSWORD=...
Pass --no-keys to ignore detected credentials and force unauthenticated calls.
2. Config file (persistent)
The CLI keeps a config at $CACHE/ccxt-cli/config.json, keyed by exchange id. ccxt --help prints the exact path for your OS:
- macOS:
~/Library/Caches/ccxt-cli/config.json - Linux:
~/.cache/ccxt-cli/config.json(or$XDG_CACHE_HOME/ccxt-cli/) - Windows:
%LOCALAPPDATA%\ccxt-cli\cache\config.json
{
"binance": {
"apiKey": "your apiKey here",
"secret": "your secret here",
"options": { "defaultType": "swap" }
},
"okx": { "apiKey": "...", "secret": "...", "password": "..." }
}
Any key in the exchange object is set as a property on the exchange instance — so options lets you set persistent per-exchange behavior. To store the config somewhere else: ccxt config ./some/path/config.json.
3. keys.json / keys.local.json in the current directory
If the working directory contains keys.json and/or keys.local.json (same shape as the config file), they are loaded too and override the config file. This is how the CLI picks up credentials inside the CCXT repo.
Precedence: config.json < keys.json < keys.local.json; environment variables fill only credentials still missing.
Market type, sandbox, and demo flags
ccxt binance fetchBalance --swap # options.defaultType = 'swap' (perps)
ccxt binance fetchBalance --spot # ... 'spot'
ccxt binance fetchBalance --future # ... 'future'
ccxt binance fetchBalance --option # ... 'option'
ccxt okx fetchTrades BTC/USDT --sandbox # testnet URLs (same as --testnet)
ccxt bybit fetchBalance --demo # demo-trading mode (live host, simulated funds)
--sandbox requires the exchange to declare test URLs; otherwise it fails (with TypeError: Invalid URL or NotSupported). Exchanges with demo-trading portals (binance, bybit, okx, gate, ...) use --demo with API keys generated in the demo portal.
Output control and scripting
ccxt kraken fetchTicker BTC/USD --raw # pristine JSON only — pipe to jq
ccxt kraken fetchTrades BTC/USD --no-table # plain object dump instead of a table
ccxt kraken fetchTrades BTC/USD --iso8601 # timestamps as ISO8601 in tables
ccxt kraken fetchTicker BTC/USD --clipboard # copy JSON result to clipboard
Array results render as a table by default; --no-table disables that.
Scripting example:
last=$(ccxt kraken fetchTicker BTC/USD --raw | jq -r '.last')
Scripting facts:
- The CLI exits with code
1on errors — check$?. - Errors print to stdout, not stderr, even with
--raw— on failure your pipe receives colored non-JSON text. Guard withjq -eor check the exit code before parsing. - WebSocket/
--pollmodes stream continuously — for scripts stick to one-shotfetch*calls. - Each
npxinvocation pays startup overhead; for repeated calls install globally (npm i -g ccxt-cli) or use--iinteractive mode.
Real-time data (WebSocket)
Any watch* method streams continuously until Ctrl+C:
ccxt binance watchTicker BTC/USDT
ccxt binance watchOrderBook BTC/USDT
ccxt binance watchTrades BTC/USDT
ccxt binance watchOrders BTC/USDT # private
Built-in live terminal dashboards (WebSocket, one or more exchanges, comma-separated, no spaces):
ccxt ticker binance,bybit,okx BTC/USDT # side-by-side live tickers
ccxt orderbook binance,bybit BTC/USDT # live depth rendering
Poll a REST method in a rate-limited loop:
ccxt kraken fetchTicker BTC/USD --poll
OHLCV charts
ccxt ohlcv binance BTC/USDT 1h
Fetches candles via REST, generates a self-contained interactive HTML chart (candlesticks + volume), and opens it in the browser. Charts are saved under $CACHE/ccxt-cli/charts/.
Interactive mode
ccxt kraken fetchTicker BTC/USD --i
Keeps the session open and prompts for the next command ([command]:), reusing the process — faster for exploring an exchange (markets stay loaded).
Market cache
loadMarkets() results are cached for 24h under $CACHE/ccxt-cli/markets/, which makes repeat invocations much faster.
ccxt binance fetchTicker BTC/USDT --refresh-markets # force re-download markets
If a symbol is reported as not found but exists on the exchange, refresh the market cache first.
Note:
--no-load-markets(skip market loading) is currently non-functional in released ccxt-cli versions — it is accepted but ignored, and markets load anyway.
Debugging
ccxt kraken fetchTicker BTC/USD --verbose # full HTTP request/response dump
--verbose is the first thing to reach for on signing, parsing, or rate-limit issues.
⚠️ Do NOT rely on
--no-sendas a dry run. In current ccxt-cli releases the flag is accepted but silently ignored — the request IS sent to the exchange. Use--sandboxor an exchange-side test param (below) to validate orders safely. There is also no keyless dry-run: private calls fail at signing (AuthenticationError: requires "apiKey") before any request is built.
For CCXT contributors running from the repo: --request / --response print static-test fixture templates for ts/src/test/static/, and --static prints both (add --name "description" to auto-save).
Trading safely
# 1. Test on sandbox/testnet first
ccxt binance createOrder BTC/USDT limit buy 0.001 60000 --sandbox
# 2. Or use the exchange's order-test param where supported
ccxt binance createOrder BTC/USDT market buy 0.01 undefined --param test=true
# 3. Then go live with a small amount, and know how to exit:
ccxt binance createOrder BTC/USDT limit buy 0.001 60000
ccxt binance fetchOpenOrders BTC/USDT
ccxt binance cancelOrder 123456789 BTC/USDT # order id first, then symbol
- Always test with small amounts, on sandbox first.
createOrderargument order issymbol type side amount [price] [params]— for market orders passundefinedfor price if you need to add--paramvalues after it.- Never share or commit API keys; prefer environment variables or the config file with restricted permissions.
Common errors
| Symptom | Cause / fix |
|---|---|
| AuthenticationError | Missing/wrong credentials — check env var names (ccxt --help shows config path), or exchange needs an extra credential (e.g. okx password) |
| ExchangeNotAvailable ... 451 | Exchange geo-blocks your IP (common with binance). Use another exchange or a proxy |
| RateLimitExceeded ... 403 Forbidden with a CloudFront country message | Also a geo-block (common with bybit), not real rate-limiting — same fix as above |
| no such property after method name | Method doesn't exist on that exchange — check ccxt methods <exchange> |
| BadSymbol | Wrong market symbol format — unified symbols are like BTC/USDT (spot) or BTC/USDT:USDT (perpetual swap) |
| InvalidOrder | Amount/price below exchange minimums, or wrong type/side |
| Args land in wrong positions | You skipped optional positionals — pad with undefined (see Argument rules) |
| TypeError: Invalid URL (or NotSupported) with --sandbox | Exchange has no testnet URLs — try --demo or a different exchange |
| Stale/missing symbols | Market cache out of date — --refresh-markets |
Errors print in red with the CCXT exception class name (ExchangeError subclasses) — the same hierarchy as the CCXT library, so RateLimitExceeded, InsufficientFunds, OrderNotFound, etc. mean exactly what they do in code.
Quirks and pitfalls
- Positional
undefinedpadding is mandatory when skipping optionals and especially before--param(see Argument rules Rule 3). - Perpetual swaps use the
BASE/QUOTE:SETTLEsymbol format (BTC/USDT:USDT) or--swapwith the plain symbol, depending on the exchange. - Date-only strings don't auto-convert —
"2025-05-01"stays a string; use"2025-05-01T00:00:00Z". - JSON arguments need shell quotes:
'{"recvWindow":5000}'. watch*and--pollnever exit on their own — Ctrl+C stops them.- First call per exchange is slow (downloads markets); subsequent calls hit the 24h cache.
- A failed
loadMarkets()aborts the call — even public methods die if market loading fails (e.g. geo-block), and the CLI still echoes the resolved call after printing the loadMarkets error, which can be misleading. - Broken flags in current releases:
--no-sendand--no-load-marketsare accepted but silently ignored — don't rely on either (see Debugging). - Command history is saved (including any inline arguments) to
$CACHE/ccxt-cli/history/commands.json— keep secrets in env vars or config, never as CLI arguments.
Reference: options summary
| Option | Effect |
|---|---|
| --verbose | print raw HTTP request/response |
| --sandbox / --testnet | use exchange testnet |
| --demo | enable demo-trading mode |
| --no-keys | ignore any detected credentials |
| --param k=v | add key to the params object (repeatable) |
| --raw | JSON-only output for piping |
| --no-table | disable table rendering (tables are the default for arrays) |
| --iso8601 | human-readable timestamps in tables |
| --clipboard | copy result JSON to clipboard |
| --spot / --swap / --future / --option | set defaultType |
| --poll | repeat the call continuously |
| --i | interactive session |
| --refresh-markets | force market cache refresh |
| --cache-markets | force market caching |
| --signIn | call signIn() first (exchanges that need it) |
Learn more
- CCXT documentation: https://docs.ccxt.com
- CLI source and README: https://github.com/ccxt/ccxt/tree/master/cli
- Unified symbols/markets: https://docs.ccxt.com/#/?id=markets
- For writing programs instead of shell commands, see the language skills:
/ccxt-typescript,/ccxt-python,/ccxt-php,/ccxt-csharp,/ccxt-go,/ccxt-java
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ccxt-cli-crypto-exchange-trading-mte1lggf/download' --output '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md.part' && mv '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md.part' '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: 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/
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && test -s '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ccxt-cli' && cp -R '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf' '.claude/skills/ccxt-cli'Cursor
test -f '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && test -s '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/ccxt-cli' && cp -R '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf' '.cursor/skills/ccxt-cli'Codex
test -f '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && test -s '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/ccxt-cli' && cp -R '.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf' '.agents/skills/ccxt-cli'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf'openskills read 'ccxt-cli-crypto-exchange-trading-mte1lggf'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/ccxt-cli-crypto-exchange-trading-mte1lggf/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.