ccxt-python
Skill by ccxt
CCXT for Python is a guide to the CCXT cryptocurrency exchange library. It shows how to connect to exchanges, fetch market data, place orders and stream live prices in Python.
Install ccxt-python
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ccxt/ccxt /tmp/ccxt && mkdir -p ~/.claude/skills && cp -r /tmp/ccxt/.claude/skills/ccxt-python ~/.claude/skills/ccxt-pythonRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ccxt/ccxt /tmp/ccxt && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ccxt/.claude/skills/ccxt-python ~/.gemini/antigravity-cli/skills/ccxt-pythonAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
CCXT for Python is a skill guide for using the CCXT cryptocurrency exchange library in Python projects. It covers installing the package, creating exchange instances, fetching tickers and order books, placing and canceling orders, and checking balances. It also covers the WebSocket API, which uses watch_* methods through ccxt.pro for live tickers, order books, trades, orders and balances.
The source says the REST and WebSocket APIs ship in the same pip package. It shows both synchronous and asynchronous (asyncio) usage, and recommends enableRateLimit, sandbox testing and closing async instances. It is aimed at Python developers building trading bots, doing data analysis or managing portfolios.
Written from the project's SKILL.md and checked against it.
What it can do
- InstallationInstalls CCXT with pip and lists optional orjson and coincurve performance packages.
- REST market dataFetches tickers, order books, trades and OHLCV candles using fetch_* methods.
- Order managementCreates limit and market orders, fetches orders and cancels them.
- Balance and account dataFetches account balances and your own trades on authenticated exchanges.
- WebSocket streamingStreams live tickers, order books, trades, orders and balances with watch_* methods.
- Sync and async usageShows both synchronous REST calls and asyncio-based REST and WebSocket code.
- Precision and limitsReads market precision and minimum limits and converts amounts and prices to precision.
- PaginationUses the paginate option to page through historical OHLCV, trades and orders.
- Capability checksChecks exchange.has and exchange.features before calling a method.
What you need
- Python
- pip to install the ccxt package
- Exchange API key and secret for private endpoints
- Exchange testnet or demo account, where offered
Try asking
- Show me how to fetch the BTC/USDT ticker with CCXT in Python
- Write an asyncio script that streams live BTC/USDT order book updates
- Help me place a limit buy order for 0.01 BTC using CCXT
Good to know
- REST endpoints have strict rate limits, described as 1-2 requests per second.
- WebSocket watch methods require async code and are not available in sync mode.
- set_sandbox_mode raises NotSupported when an exchange has no testnet.
- Method support varies by exchange and must be checked with exchange.has.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/ccxt-python/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md51 KB
Alternatives to ccxt-python
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
ccxt-python: common questions
Do I need a separate package for CCXT WebSocket streaming?
No. The source says both REST and WebSocket APIs are included in the same pip install ccxt package, and WebSocket code uses ccxt.pro.
Can I test orders before using real funds?
The source recommends trying orders on a testnet or with the minimum size first. It notes that some exchanges also offer demo trading inside the live API.
Why do I need to close the exchange instance?
The source says to call exchange.close() when done with async instances, and for ccxt.pro it says close() shuts every subscription and socket.
How do I install ccxt-python?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ccxt-python free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ccxt-python safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ccxt-python?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
