ccxt-cli
하는 일
코드를 쓰지 않고 터미널에서 ccxt 명령줄 도구로 거래소 함수를 호출하는 방법을 보여 줍니다. 거래소 데이터나 작업에 빠르게 접근하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓터미널에서 암호화폐 가격이나 호가창을 확인하고 싶을 때.
- ✓거래소 잔액이나 미체결 주문을 보고 싶을 때.
- ✓터미널에서 실시간 티커나 호가창을 스트리밍하고 싶은 경우.
스킬 링크
https://github.com/ccxt/ccxt/blob/master/.claude/skills/ccxt-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 터미널에서 Kraken의 현재 비트코인 티커를 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
사용자는 거래소 이름과 메서드를 포함한 명령을 입력합니다. 도구가 거래소를 호출하고 결과를 출력합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
어떻게 설치하나요?
스킬은 npm에서 ccxt-cli 패키지를 전역으로 설치하라고 안내하며, 그러면 ccxt 명령을 쓸 수 있습니다.
API 키가 필요한가요?
공개 데이터에는 필요 없지만, 잔액 같은 비공개 데이터에는 API 키가 필요합니다.
주문을 안전하게 테스트할 방법이 있나요?
스킬은 주문할 때 샌드박스 옵션과 소액 사용을 권장합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 45k
- 순위
- #6379
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
binance-agentic-wallet
45kbaw 명령줄 도구로 Binance Web3 지갑을 관리하도록 돕습니다. 로그인, 잔액 확인, 전송, 토큰 스왑, 지정가 주문을 포함합니다.
binance-sports-ai-analyzer
45k월드컵 경기 예측, AI 분석, 뉴스 인사이트를 찾고, 신호를 조정하면 승리 확률을 다시 계산하도록 돕습니다.
binance-tokenized-securities-info
45kOndo 토큰화 미국 주식에 대해 토큰 목록, 회사 정보, 거래 상태, 온체인 가격을 조회하도록 돕습니다.
binance
45kbinance-cli 도구로 Binance Spot, USD-M 선물, Convert를 사용하도록 돕습니다. 먼저 인증을 설정해야 합니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.