Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. Developer Tools
  3. CCXT
  4. README

CCXT README

The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the CCXT listing page.

Back to CCXT View source on GitHub

CCXT – CryptoCurrency eXchange Trading Library

NPM Downloads npm PyPI NuGet version GoDoc Mvn Packagist Crates.io Supported Exchanges CCXT Chat in Telegram CCXT Discord Server Follow CCXT at x.com

A crypto trading API with more than 100 exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust.

Install · Usage · Manual · FAQ · Examples · Contributing · Disclaimer · Social

The CCXT library is used to connect and trade with cryptocurrency exchanges worldwide. It provides quick access to market data for storage, analysis, visualization, indicator development, algorithmic trading, strategy backtesting, bot programming, and related software engineering.

It is intended to be used by coders, developers, technically-skilled traders, data-scientists and financial analysts for building trading algorithms.

Current feature list:

  • supports 100+ cryptocurrency exchanges and prediction markets:
    • Polymarket
    • Kalshi
    • Hyperliquid
    • Limitless
    • Myriad
    • more coming soon!
  • implements public and private APIs, both REST and WebSocket
  • optionally normalizes data for cross-exchange analytics and arbitrage
  • has an out of the box unified API that is extremely easy to integrate
  • ideal for AI agents, LLMs and vibe coding
  • works in Node 18+, Python 3, PHP 8.1+, netstandard2.0/2.1, Go 1.20+, Java 21+ and web browsers

Sponsored Promotion

Enjoy VIP+2 tier on Bitget when migrating from BitMEX

Unlock VIP3 on BTSE and earn up to $2,500 in the BTSE × CCXT Trading Competition

See Also

  • Freqtrade Freqtrade – leading opensource cryptocurrency algorithmic trading software!
  • OctoBot OctoBot – cryptocurrency trading bot with an advanced web interface.
  • TokenBot TokenBot – discover and copy the best algorithmic traders in the world.

Certified Cryptocurrency Exchanges

logoidnamevertypecertifiedprodiscount
binancebinanceBinanceAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with Binance using CCXT's referral link for a 10% discount!
binanceusdmbinanceusdmBinance USDⓈ-MAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with Binance USDⓈ-M using CCXT's referral link for a 10% discount!
binancecoinmbinancecoinmBinance COIN-MAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with Binance COIN-M using CCXT's referral link for a 10% discount!
bybitbybitBybitAPI Version 5CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
okxokxOKXAPI Version 5CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with OKX using CCXT's referral link for a 20% discount!
gategateGateAPI Version 4CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with Gate using CCXT's referral link for a 20% discount!
kucoinkucoinKuCoinAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
kucoinfutureskucoinfuturesKuCoin FuturesAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bitgetbitgetBitgetAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
hyperliquidhyperliquidHyperliquidAPI Version 1DEX - Distributed EXchangeCCXT CertifiedCCXT Pro
bitmexbitmexBitMEXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with BitMEX using CCXT's referral link for a 10% discount!
bingxbingxBingXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
htxhtxHTXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with HTX using CCXT's referral link for a 15% discount!
mexcmexcMEXC GlobalAPI Version 3CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
cryptocomcryptocomCrypto.comAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with Crypto.com using CCXT's referral link for a 75% discount!
coinexcoinexCoinExAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
hashkeyhashkeyHashKey GlobalAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
woowooWOO XAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT ProSign up with WOO X using CCXT's referral link for a 35% discount!
woofiprowoofiproWOOFI PROAPI Version 1DEX - Distributed EXchangeCCXT CertifiedCCXT ProSign up with WOOFI PRO using CCXT's referral link for a 5% discount!

Supported Cryptocurrency Exchanges

The CCXT library currently supports the following 104 cryptocurrency exchange markets and trading APIs:
logoidnamevertypecertifiedpro
alpacaalpacaAlpacaAPI Version *CEX – Centralized EXchangeCCXT Pro
apexapexApexAPI Version 3DEX - Distributed EXchangeCCXT Pro
asterasterAsterAPI Version 1DEX - Distributed EXchangeCCXT Pro
backpackbackpackBackpackAPI Version 1CEX – Centralized EXchangeCCXT Pro
bequantbequantBequantAPI Version 3CEX – Centralized EXchangeCCXT Pro
bigonebigoneBigONEAPI Version 3CEX – Centralized EXchange
binancebinanceBinanceAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
binancecoinmbinancecoinmBinance COIN-MAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
binanceusbinanceusBinance USAPI Version *CEX – Centralized EXchangeCCXT Pro
binanceusdmbinanceusdmBinance USDⓈ-MAPI Version *CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bingxbingxBingXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bit2cbit2cBit2CAPI Version *CEX – Centralized EXchange
bitbankbitbankbitbankAPI Version 1CEX – Centralized EXchange
bitbnsbitbnsBitbnsAPI Version 2CEX – Centralized EXchange
bitfinexbitfinexBitfinexAPI Version 2CEX – Centralized EXchangeCCXT Pro
bitflyerbitflyerbitFlyerAPI Version 1CEX – Centralized EXchange
bitgetbitgetBitgetAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bithumbbithumbBithumbAPI Version *CEX – Centralized EXchangeCCXT Pro
bitmexbitmexBitMEXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bitoprobitoproBitoProAPI Version 3CEX – Centralized EXchangeCCXT Pro
bitruebitrueBitrueAPI Version 1CEX – Centralized EXchangeCCXT Pro
bitsobitsoBitsoAPI Version 3CEX – Centralized EXchange
bitstampbitstampBitstampAPI Version 2CEX – Centralized EXchangeCCXT Pro
bitteambitteamBIT.TEAMAPI Version 2.0.6CEX – Centralized EXchange
bittradebittradeBitTradeAPI Version 1CEX – Centralized EXchangeCCXT Pro
bitvavobitvavoBitvavoAPI Version 2CEX – Centralized EXchangeCCXT Pro
blockchaincomblockchaincomBlockchain.comAPI Version 3CEX – Centralized EXchangeCCXT Pro
blofinblofinBloFinAPI Version 1CEX – Centralized EXchangeCCXT Pro
btcboxbtcboxBtcBoxAPI Version 1CEX – Centralized EXchange
btcmarketsbtcmarketsBTC MarketsAPI Version 3CEX – Centralized EXchange
btcturkbtcturkBTCTurkAPI Version *CEX – Centralized EXchange
btsebtseBTSEAPI Version 3CEX – Centralized EXchange
bullishbullishBullishAPI Version 3CEX – Centralized EXchangeCCXT Pro
bybitbybitBybitAPI Version 5CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
bybiteubybiteuBybit EUAPI Version 5CEX – Centralized EXchangeCCXT Pro
bydfibydfiBYDFiAPI Version 1CEX – Centralized EXchangeCCXT Pro
cexcexCEX.IOAPI Version *CEX – Centralized EXchangeCCXT Pro
coinbasecoinbaseCoinbase AdvancedAPI Version 2CEX – Centralized EXchangeCCXT Pro
coinbaseexchangecoinbaseexchangeCoinbase ExchangeAPI Version *CEX – Centralized EXchangeCCXT Pro
coinbaseinternationalcoinbaseinternationalCoinbase InternationalAPI Version 1CEX – Centralized EXchangeCCXT Pro
coincheckcoincheckCoincheckAPI Version *CEX – Centralized EXchange
coinexcoinexCoinExAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
coinmatecoinmateCoinMateAPI Version *CEX – Centralized EXchange
coinonecoinoneCoinOneAPI Version 2CEX – Centralized EXchange
coinsphcoinsphCoins.phAPI Version 1CEX – Centralized EXchange
coinspotcoinspotCoinSpotAPI Version *CEX – Centralized EXchange
cryptocomcryptocomCrypto.comAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
cryptomuscryptomusCryptomusAPI Version 2CEX – Centralized EXchange
deepcoindeepcoinDeepCoinAPI Version 1CEX – Centralized EXchangeCCXT Pro
deltadeltaDelta ExchangeAPI Version 2CEX – Centralized EXchange
deribitderibitDeribitAPI Version 2CEX – Centralized EXchangeCCXT Pro
derivederiveDeriveAPI Version 1DEX - Distributed EXchangeCCXT Pro
digifinexdigifinexDigiFinexAPI Version 3CEX – Centralized EXchange
dydxdydxdYdXAPI Version 4DEX - Distributed EXchangeCCXT Pro
extendedextendedExtendedAPI Version 2DEX - Distributed EXchangeCCXT Pro
fmfwiofmfwioFMFW.ioAPI Version 3CEX – Centralized EXchange
foxbitfoxbitFoxbitAPI Version 1CEX – Centralized EXchange
gategateGateAPI Version 4CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
gateeugateeuGate EUAPI Version 4CEX – Centralized EXchangeCCXT Pro
geminigeminiGeminiAPI Version 1CEX – Centralized EXchangeCCXT Pro
grvtgrvtGRVTAPI Version 1DEX - Distributed EXchangeCCXT Pro
hashkeyhashkeyHashKey GlobalAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
hibachihibachiHibachiAPI Version *DEX - Distributed EXchange
hitbtchitbtcHitBTCAPI Version 3CEX – Centralized EXchange
hollaexhollaexHollaExAPI Version 2CEX – Centralized EXchangeCCXT Pro
htxhtxHTXAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
hyperliquidhyperliquidHyperliquidAPI Version 1DEX - Distributed EXchangeCCXT CertifiedCCXT Pro
independentreserveindependentreserveIndependent ReserveAPI Version *CEX – Centralized EXchangeCCXT Pro
indodaxindodaxINDODAXAPI Version 2.0CEX – Centralized EXchange
krakenkrakenKrakenAPI Version 0CEX – Centralized EXchangeCCXT Pro
krakenfutureskrakenfuturesKraken FuturesAPI Version 3CEX – Centralized EXchangeCCXT Pro
kucoinkucoinKuCoinAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
kucoinfutureskucoinfuturesKuCoin FuturesAPI Version 2CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
latokenlatokenLatokenAPI Version 2CEX – Centralized EXchange
lbanklbankLBankAPI Version 2CEX – Centralized EXchangeCCXT Pro
lighterlighterLighterAPI Version 1DEX - Distributed EXchangeCCXT Pro
lunolunoLunoAPI Version 1CEX – Centralized EXchangeCCXT Pro
mercadomercadoMercado BitcoinAPI Version 3CEX – Centralized EXchange
mexcmexcMEXC GlobalAPI Version 3CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
modetrademodetradeMode TradeAPI Version 1DEX - Distributed EXchangeCCXT Pro
mudrexmudrexMudrexAPI Version 1CEX – Centralized EXchangeCCXT Pro
myokxmyokxMyOKX (EEA)API Version 5CEX – Centralized EXchangeCCXT Pro
nadonadoNadoAPI Version 1DEX - Distributed EXchangeCCXT Pro
ndaxndaxNDAXAPI Version *CEX – Centralized EXchangeCCXT Pro
okxokxOKXAPI Version 5CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
okxusokxusOKX (US)API Version 5CEX – Centralized EXchangeCCXT Pro
onetradingonetradingOne TradingAPI Version 1CEX – Centralized EXchangeCCXT Pro
p2bp2bp2bAPI Version 2CEX – Centralized EXchangeCCXT Pro
pacificapacificaPacificaAPI Version 1DEX - Distributed EXchangeCCXT Pro
paradexparadexParadexAPI Version 1DEX - Distributed EXchangeCCXT Pro
paymiumpaymiumPaymiumAPI Version 1CEX – Centralized EXchange
phemexphemexPhemexAPI Version 1CEX – Centralized EXchangeCCXT Pro
poloniexpoloniexPoloniexAPI Version *CEX – Centralized EXchangeCCXT Pro
revolutxrevolutxRevolut XAPI Version *CEX – Centralized EXchange
tokocryptotokocryptoTokocryptoAPI Version 1CEX – Centralized EXchange
toobittoobitToobitAPI Version 1CEX – Centralized EXchangeCCXT Pro
upbitupbitUpbitAPI Version 1CEX – Centralized EXchangeCCXT Pro
weexweexWeexAPI Version 3CEX – Centralized EXchangeCCXT Pro
whitebitwhitebitWhiteBitAPI Version 4CEX – Centralized EXchangeCCXT Pro
woowooWOO XAPI Version 1CEX – Centralized EXchangeCCXT CertifiedCCXT Pro
woofiprowoofiproWOOFI PROAPI Version 1DEX - Distributed EXchangeCCXT CertifiedCCXT Pro
xtxtXTAPI Version 4CEX – Centralized EXchangeCCXT Pro
zaifzaifZaifAPI Version 1CEX – Centralized EXchange
zebpayzebpayZebpayAPI Version 1CEX – Centralized EXchange

The list above is updated frequently, new crypto markets, exchanges, bug fixes, and API endpoints are introduced on a regular basis. See the Manual for more details. If you can't find a cryptocurrency exchange in the list above and want it to be added, post a link to it by opening an issue here on GitHub or send us an email.

The library is under MIT license, that means it's absolutely free for any developer to build commercial and opensource software on top of it, but use it at your own risk with no warranties, as is.

Prediction Market Exchanges

The CCXT library currently supports the following 7 prediction market exchanges and trading APIs:
logoidnamever
binancebinanceBinanceAPI Version 1
hyperliquidhyperliquidHyperliquidAPI Version 1
kalshikalshiKalshiAPI Version *
limitlesslimitlessLimitlessAPI Version 1
myriadmyriadMyriadAPI Version *
opinionopinionOpinionAPI Version 1
polymarketpolymarketPolymarketAPI Version 1

Builder Code Exchanges

logoidnamevertypecertifiedpro
asterasterAsterAPI Version 1DEX - Distributed EXchangeCCXT Pro
extendedextendedExtendedAPI Version 2DEX - Distributed EXchangeCCXT Pro
grvtgrvtGRVTAPI Version 1DEX - Distributed EXchangeCCXT Pro
hyperliquidhyperliquidHyperliquidAPI Version 1DEX - Distributed EXchangeCCXT CertifiedCCXT Pro
lighterlighterLighterAPI Version 1DEX - Distributed EXchangeCCXT Pro
nadonadoNadoAPI Version 1DEX - Distributed EXchangeCCXT Pro
pacificapacificaPacificaAPI Version 1DEX - Distributed EXchangeCCXT Pro

CCXT participates in builder programs with the exchanges listed above, which means that in order to support the CCXT project users pay a small fee (1 bps) on top of the exchanges' fees when using the exchanges' API through CCXT. This is optional and can be disabled by setting exchange.options['builderFee'] = False. For all other exchanges no additional fee is charged and in some cases you receive discounts or special conditions by using CCXT.


Install

The easiest way to install the CCXT library is to use a package manager:

  • ccxt in NPM (JavaScript / Node v7.6+)
  • ccxt in PyPI (Python 3.7.0+)
  • ccxt in Packagist/Composer (PHP 8.1+)
  • ccxt in Nuget (netstandard 2.0)
  • ccxt in GO
  • ccxt in Java (Java 21+, Gradle)
  • ccxt in Crates.io (Rust, Cargo)

This library is shipped as an all-in-one module implementation with minimalistic dependencies and requirements:

  • js/ in JavaScript
  • python/ in Python (generated from TS)
  • php/ in PHP (generated from TS)
  • cs/ in C# (generated from TS)
  • go/ in Go (generated from TS)
  • java/ in Java (generated from TS)
  • rust/ in Rust (generated from TS)

You can also clone it into your project directory from ccxt GitHub repository:

shell
git clone https://github.com/ccxt/ccxt.git  # including 1GB of commit history

# or

git clone https://github.com/ccxt/ccxt.git --depth 1  # avoid downloading 1GB of commit history

JavaScript (NPM)

JavaScript version of CCXT works in both Node and web browsers. Requires ES6 and async/await syntax support (Node 7.6.0+). When compiling with Rspack (or Webpack) and Babel, make sure it is not excluded in your babel-loader config.

ccxt in NPM

Terminal
npm install ccxt
JavaScript
//cjs
var ccxt = require ('ccxt')
console.log (ccxt.exchanges) // print all available exchanges
server.ts
//esm
import {version, exchanges} from 'ccxt';
console.log(version, Object.keys(exchanges));

JavaScript (for use with the <script> tag):

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

  • jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.5.78/dist/ccxt.browser.min.js
  • unpkg: https://unpkg.com/ccxt@4.5.78/dist/ccxt.browser.min.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.5.78/dist/ccxt.browser.min.js"></script>

Creates a global ccxt object:

JavaScript
console.log (ccxt.exchanges) // print all available exchanges

Python

ccxt in PyPI

Terminal
pip install ccxt
server.ts
import ccxt
print(ccxt.exchanges) # print a list of all available exchange classes

The library supports concurrent asynchronous mode with asyncio and async/await in Python 3.7.0+

server.ts
import ccxt.async_support as ccxt # link against the asynchronous version of ccxt

orjson support

CCXT also supports orjson for parsing JSON since it is much faster than the builtin library. This is especially important when using websockets because some exchanges return big messages that need to be parsed and dispatched as quickly as possible.

However, orjson is not enabled by default because it is not supported by every python interpreter. If you want to opt-in, you just need to install it (pip install orjson) on your local environment. CCXT will detect the installion and pick it up automatically.

ECDSA Support

Some exchanges, such as Hyperliquid, Binance, and Paradex use ECDSA for request signing. By default, CCXT includes a pure Python ECDSA implementation that ensures compatibility across all environments. However, this implementation may not meet the performance requirements of latency-sensitive applications.

To address this, CCXT also supports the Coincurve library, which dramatically reduces signing time from approximately 45 ms to under 0.05 ms.

For optimal performance, we recommend installing Coincurve via:

Terminal
pip install coincurve

Once installed, CCXT will automatically detect and use it.

PHP

ccxt in PHP with Packagist/Composer (PHP 8.1+)

It requires common PHP modules:

  • cURL
  • mbstring (using UTF-8 is highly recommended)
  • PCRE
  • iconv
  • gmp
PHP
include "ccxt.php";
var_dump (\ccxt\Exchange::$exchanges); // print a list of all available exchange classes

The library supports concurrent asynchronous mode using tools from ReactPHP in PHP 8.1+. Read the Manual for more details.

.net/C#

ccxt in C# with Nuget (netstandard 2.0 and netstandard 2.1)

c
using ccxt;
Console.WriteLine(ccxt.Exchanges) // check this later

Go

ccxt in GO with PKG

shell
go install github.com/ccxt/ccxt/go/v4@latest
server.ts
import "ccxt"
fmt.Println(ccxt.Exchanges)

Java

Java version of CCXT requires Java 21+ and uses Gradle as its build system.

Add the CCXT library as a local dependency in your build.gradle.kts:

kotlin
dependencies {
    implementation("io.github.ccxt:ccxt:4.5.52")
}

Or clone and build from source:

shell
git clone https://github.com/ccxt/ccxt.git --depth 1
cd ccxt/java
./gradlew :lib:build
server.ts
import io.github.ccxt.exchanges.Binance;
import io.github.ccxt.types.Ticker;

Binance exchange = new Binance();
exchange.loadMarkets(false);

Ticker ticker = exchange.fetchTicker("BTC/USDT");
System.out.println(ticker.symbol + " " + ticker.last);

Each exchange has its own typed subclass with strongly-typed return values. Every typed method ships both a blocking sync and a non-blocking CompletableFuture-returning async overload — pick the idiom that fits your call site:

Java
// Sync — blocks until the response arrives
Ticker ticker = exchange.fetchTicker("BTC/USDT");

// Async — returns immediately, completes when the response arrives
CompletableFuture<Ticker> future = exchange.fetchTickerAsync("BTC/USDT", null);
future.thenAccept(t -> System.out.println(t.last));

WebSocket support is available via the pro exchange classes, with the same sync/async symmetry — watchTicker blocks for one update; watchTickerAsync returns a CompletableFuture<Ticker> you can compose:

server.ts
import io.github.ccxt.exchanges.pro.Binance;

var exchange = new Binance();
exchange.loadMarkets(false);

// Sync — blocks for one update
Ticker tick = exchange.watchTicker("BTC/USDT");

// Async — returns a typed CompletableFuture (composable with allOf, anyOf, etc.)
CompletableFuture<Ticker> future = exchange.watchTickerAsync("BTC/USDT", null);

See java/examples/ for more usage examples.

Rust

ccxt in Rust with crates.io (docs.rs)

shell
cargo add ccxt tokio --features tokio/full
cargo add ccxt-pro
toml
[dependencies]
ccxt = "4.5.75"
ccxt-pro = "4.5.75"
tokio = { version = "1", features = ["full"] }

ccxt carries the REST exchanges; ccxt-pro adds the WebSocket (watch*) ones and is only needed if you stream. Both are async and expect a Tokio runtime.

rust
use ccxt::{Binance, Params};

let mut exchange = Binance::new(None);
exchange.load_markets(false).await;

let ticker = exchange.fetch_ticker("BTC/USDT", Params::none()).await?;
println!("{} {:?}", ticker.symbol, ticker.last);

Docker

You can get CCXT installed in a container along with all the supported languages and dependencies. This may be useful if you want to contribute to CCXT (e.g. run the build scripts and tests — please see the Contributing document for the details on that).

Using docker-compose (in the cloned CCXT repository):

shell
docker-compose run --rm ccxt

You don't need the Docker image if you're not going to develop CCXT. If you just want to use CCXT – just install it as a regular package into your project.


AI Assistant Support

CCXT provides language-specific skills for AI coding assistants (Claude Code, Cursor, Copilot, Windsurf, Codex, and 30+ others):

Terminal
npx skills add ccxt/ccxt

See AI Skills documentation and llms.txt for more details.


Usage

Intro

The CCXT library consists of a public part and a private part. Anyone can use the public part immediately after installation. Public APIs provide unrestricted access to public information for all exchange markets without the need to register a user account or have an API key.

Public APIs include the following:

  • market data
  • instruments/trading pairs
  • price feeds (exchange rates)
  • order books
  • trade history
  • tickers
  • OHLC(V) for charting
  • other public endpoints

In order to trade with private APIs you need to obtain API keys from an exchange's website. It usually means signing up to the exchange and creating API keys for your account. Some exchanges require personal info or identification. Sometimes verification may be necessary as well. In this case you will need to register yourself, this library will not create accounts or API keys for you. Some exchanges expose API endpoints for registering an account, but most exchanges don't. You will have to sign up and create API keys on their websites.

Private APIs allow the following:

  • manage personal account info
  • query account balances
  • trade by making market and limit orders
  • deposit and withdraw fiat and crypto funds
  • query personal orders
  • get ledger history
  • transfer funds between accounts
  • use merchant services

This library implements full public and private REST and WebSocket APIs for all exchanges in TypeScript, JavaScript, PHP and Python.

The CCXT library supports both camelcase notation (preferred in TypeScript and JavaScript) and underscore notation (preferred in Python and PHP), therefore all methods can be called in either notation or coding style in any language.

JavaScript
// both of these notations work in JavaScript/Python/PHP
exchange.methodName ()  // camelcase pseudocode
exchange.method_name () // underscore pseudocode

Read the Manual and see examples for more details.

JavaScript

CCXT now supports ESM and CJS modules

CJS

server.ts
// cjs example
'use strict';
const ccxt = require ('ccxt');

(async function () {
    let kraken    = new ccxt.kraken ()
    let bitfinex  = new ccxt.bitfinex ({ verbose: true })
    let huobipro  = new ccxt.huobipro ()
    let okcoinusd = new ccxt.okcoin ({
        apiKey: 'YOUR_PUBLIC_API_KEY',
        secret: 'YOUR_SECRET_PRIVATE_KEY',
    })

    const exchangeId = 'binance'
        , exchangeClass = ccxt[exchangeId]
        , exchange = new exchangeClass ({
            'apiKey': 'YOUR_API_KEY',
            'secret': 'YOUR_SECRET',
        })

    console.log (kraken.id,    await kraken.loadMarkets ())
    console.log (bitfinex.id,  await bitfinex.loadMarkets  ())
    console.log (huobipro.id,  await huobipro.loadMarkets ())

    console.log (kraken.id,    await kraken.fetchOrderBook (kraken.symbols[0]))
    console.log (bitfinex.id,  await bitfinex.fetchTicker ('BTC/USD'))
    console.log (huobipro.id,  await huobipro.fetchTrades ('ETH/USDT'))

    console.log (okcoinusd.id, await okcoinusd.fetchBalance ())

    // sell 1 BTC/USD for market price, sell a bitcoin for dollars immediately
    console.log (okcoinusd.id, await okcoinusd.createMarketSellOrder ('BTC/USD', 1))

    // buy 1 BTC/USD for $2500, you pay $2500 and receive ฿1 when the order is closed
    console.log (okcoinusd.id, await okcoinusd.createLimitBuyOrder ('BTC/USD', 1, 2500.00))

    // pass/redefine custom exchange-specific order params: type, amount, price or whatever
    // use a custom order type
    bitfinex.createLimitSellOrder ('BTC/USD', 1, 10, { 'type': 'trailing-stop' })

}) ();

ESM

server.ts
//esm example
import {version, binance} from 'ccxt';

console.log(version);
const exchange = new binance();
const ticker = await exchange.fetchTicker('BTC/USDT');
console.log(ticker);

Python

server.ts
# coding=utf-8

import ccxt

hitbtc   = ccxt.hitbtc({'verbose': True})
bitmex   = ccxt.bitmex()
huobipro = ccxt.huobipro()
exmo     = ccxt.exmo({
    'apiKey': 'YOUR_PUBLIC_API_KEY',
    'secret': 'YOUR_SECRET_PRIVATE_KEY',
})
kraken = ccxt.kraken({
    'apiKey': 'YOUR_PUBLIC_API_KEY',
    'secret': 'YOUR_SECRET_PRIVATE_KEY',
})

exchange_id = 'binance'
exchange_class = getattr(ccxt, exchange_id)
exchange = exchange_class({
    'apiKey': 'YOUR_API_KEY',
    'secret': 'YOUR_SECRET',
})

hitbtc_markets = hitbtc.load_markets()

print(hitbtc.id, hitbtc_markets)
print(bitmex.id, bitmex.load_markets())
print(huobipro.id, huobipro.load_markets())

print(hitbtc.fetch_order_book(hitbtc.symbols[0]))
print(bitmex.fetch_ticker('BTC/USD'))
print(huobipro.fetch_trades('LTC/USDT'))

print(exmo.fetch_balance())

# sell one ฿ for market price and receive $ right now
print(exmo.id, exmo.create_market_sell_order('BTC/USD', 1))

# limit buy BTC/EUR, you pay €2500 and receive ฿1  when the order is closed
print(exmo.id, exmo.create_limit_buy_order('BTC/EUR', 1, 2500.00))

# pass/redefine custom exchange-specific order params: type, amount, price, flags, etc...
kraken.create_market_buy_order('BTC/USD', 1, {'trading_agreement': 'agree'})

PHP

PHP
include 'ccxt.php';

$poloniex = new \ccxt\poloniex ();
$bittrex  = new \ccxt\bittrex  (array ('verbose' => true));
$quoinex  = new \ccxt\quoinex   ();
$zaif     = new \ccxt\zaif     (array (
    'apiKey' => 'YOUR_PUBLIC_API_KEY',
    'secret' => 'YOUR_SECRET_PRIVATE_KEY',
));
$hitbtc   = new \ccxt\hitbtc   (array (
    'apiKey' => 'YOUR_PUBLIC_API_KEY',
    'secret' => 'YOUR_SECRET_PRIVATE_KEY',
));

$exchange_id = 'binance';
$exchange_class = "\\ccxt\\$exchange_id";
$exchange = new $exchange_class (array (
    'apiKey' => 'YOUR_API_KEY',
    'secret' => 'YOUR_SECRET',
));

$poloniex_markets = $poloniex->load_markets ();

var_dump ($poloniex_markets);
var_dump ($bittrex->load_markets ());
var_dump ($quoinex->load_markets ());

var_dump ($poloniex->fetch_order_book ($poloniex->symbols[0]));
var_dump ($bittrex->fetch_trades ('BTC/USD'));
var_dump ($quoinex->fetch_ticker ('ETH/EUR'));
var_dump ($zaif->fetch_ticker ('BTC/JPY'));

var_dump ($zaif->fetch_balance ());

// sell 1 BTC/JPY for market price, you pay ¥ and receive ฿ immediately
var_dump ($zaif->id, $zaif->create_market_sell_order ('BTC/JPY', 1));

// buy BTC/JPY, you receive ฿1 for ¥285000 when the order closes
var_dump ($zaif->id, $zaif->create_limit_buy_order ('BTC/JPY', 1, 285000));

// set a custom user-defined id to your order
$hitbtc->create_order ('BTC/USD', 'limit', 'buy', 1, 3000, array ('clientOrderId' => '123'));

.net/C#

server.ts
using ccxt; // importing ccxt
namespace Project;
class Project {
    public async static Task CreateOrder() {
        var exchange = new Binance();
        exchange.apiKey = "my api key";
        exchange.secret = "my secret";
        // always use the capitalized method (CreateOrder instead of createOrder)
        var order = await exchange.CreateOrder("BTC/USDT", "limit", "buy", 1, 50);
        Console.WriteLine("Placed Order, order id: " + order.id);
    }
}

Go

server.ts
package main
import (
	"github.com/ccxt/ccxt/go/v4/go"
	"fmt"
)

func main() {
	exchange := ccxt.NewBinance(map[string]interface{}{
		"apiKey": "MY KEY",
		"secret": "MY SECRET",
	})
	orderParams := map[string]interface{}{
		"clientOrderId": "myOrderId68768678",
	}

    exchange.LoadMarkets()

	order, err := exchange.CreateOrder("BTC/USDT", "limit", "buy", 0.001, ccxt.WithCreateOrderPrice(6000), ccxt.WithCreateOrderParams(orderParams))
	if err != nil {
		if ccxtError, ok := err.(*ccxt.Error); ok {
			if ccxtError.Type == "InvalidOrder" {
				fmt.Println("Invalid order")
			} else {
				fmt.Println("Some other error")
			}
		}
	} else {
		fmt.Println(*order.Id)
	}


    // fetching OHLCV
	ohlcv, err := exchange.FetchOHLCV("BTC/USDT", ccxt.WithFetchOHLCVTimeframe("5m"), ccxt.WithFetchOHLCVLimit(100))

	if err != nil {
		fmt.Println("Error: ", err)
	} else {
		fmt.Println("Got OHLCV!")
	}
}

Optional parameters

Unlike Javascript/Python/PHP/C# Go does not support "traditional" optional parameters like function a(optional = false). However, the CCXT language and structure have some methods with optional params, and since the Go language is transpiled from the Typescript source, we had to find a way of representing them.

We have decided to "go" (pun intended) with Option structs and the WithX methods.

For example, this function FetchMyTrades supports 4 different "optional" parameters, symbol, since, limit, and params.

Golang
func (this *Binance) FetchMyTrades(options ...FetchMyTradesOptions) ([]Trade, error)

And we can provide them by doing

Golang
trades, error := exchange.FetchMyTrades(ccxt.withFetchMyTradesSymbol("BTC/USDT"), ccxt.WithFetchOHLCVLimit(5), ccxt.WithFetchMyTradesParams(orderParams))

Lastly, just because the signature dictates that some argument like symbol is optional, it will depend from exchange to exchange and you might need to provide it to avoid getting a SymbolRequired error.

You can check different examples in the examples/go folder.

Java

server.ts
import io.github.ccxt.exchanges.Kraken;
import io.github.ccxt.exchanges.Bitfinex;
import io.github.ccxt.exchanges.Binance;
import io.github.ccxt.types.*;

import java.util.HashMap;
import java.util.Map;

public class Example {
    public static void main(String[] args) {
        // Create exchange instances
        Kraken kraken = new Kraken();
        Bitfinex bitfinex = new Bitfinex();

        Map<String, Object> config = new HashMap<>();
        config.put("apiKey", "YOUR_API_KEY");
        config.put("secret", "YOUR_SECRET");
        Binance binance = new Binance(config);

        // Load markets
        kraken.loadMarkets(false);
        binance.loadMarkets(false);

        // Public API
        OrderBook orderBook = kraken.fetchOrderBook("BTC/USDT");
        Ticker ticker = bitfinex.fetchTicker("BTC/USD");
        System.out.println(ticker.symbol + " last=" + ticker.last);

        // Fetch OHLCV
        var candles = binance.fetchOHLCV("BTC/USDT", "1h", null, 10L, null);
        System.out.println("Got " + candles.size() + " candles");

        // Private API (requires API keys)
        Balances balance = binance.fetchBalance();
        System.out.println("BTC free: " + balance.free.get("BTC"));

        // Place a limit buy order
        Order order = binance.createLimitBuyOrder("BTC/USDT", 0.001, 50000.0);
        System.out.println("Order id: " + order.id + " status: " + order.status);

        // Cancel it
        binance.cancelOrder(order.id, "BTC/USDT", null);
    }
}

Async

All methods are also available as async variants returning CompletableFuture:

server.ts
import java.util.concurrent.CompletableFuture;

// Fire multiple requests concurrently
CompletableFuture<Ticker> btc = binance.fetchTickerAsync("BTC/USDT", null);
CompletableFuture<Ticker> eth = binance.fetchTickerAsync("ETH/USDT", null);
CompletableFuture.allOf(btc, eth).join();
System.out.println("BTC: " + btc.get().last + " ETH: " + eth.get().last);

Error handling

Typed sync methods throw the underlying ccxt error directly — no CompletionException unwrap needed. Catch exceptions in standard JDK order (most-specific first), like you would with any other Java library:

server.ts
import io.github.ccxt.errors.*;
import io.github.ccxt.exchanges.Binance;
import io.github.ccxt.types.Order;

Binance binance = new Binance(Map.of("apiKey", "...", "secret", "..."));
try {
    Order order = binance.createOrder("BTC/USDT", "limit", "buy", 0.001, 50000.0);
} catch (InsufficientFunds e) {
    // user error — show balance, don't retry
} catch (InvalidOrder e) {                        // covers OrderNotFound, DuplicateOrderId, …
    // user error — fix params
} catch (AuthenticationError e) {                 // covers PermissionDenied, AccountSuspended
    // refresh credentials
} catch (RateLimitExceeded | DDoSProtection e) {  // multi-catch (Java 7+)
    Thread.sleep(30_000);
} catch (NetworkError e) {                        // RequestTimeout, ExchangeNotAvailable, …
    Thread.sleep(2_000);                          // transient — retry
} catch (ExchangeError e) {                       // any other exchange-side error
    // exchange refused
} catch (BaseError e) {                           // ccxt catch-all
    // unknown ccxt error
}

For async methods, CompletableFuture wraps thrown errors in CompletionException (JDK behaviour). Use Helpers.unwrap() inside .exceptionally(...) to peel the wrap and pattern-match the real cause:

server.ts
import io.github.ccxt.Helpers;

binance.createOrderAsync("BTC/USDT", "limit", "buy", 0.001, 50000.0)
    .thenAccept(order -> log.info("placed " + order.id))
    .exceptionally(throwable -> {
        Throwable cause = Helpers.unwrap(throwable);
        return switch (cause) {
            case InsufficientFunds    e -> { notifyUser(e); yield null; }
            case AuthenticationError  e -> { refreshCreds(); yield null; }
            case RateLimitExceeded    e -> { scheduleRetry(); yield null; }
            case NetworkError         e -> { scheduleRetry(); yield null; }
            case BaseError            e -> { log.error("ccxt", e); yield null; }
            default -> throw new java.util.concurrent.CompletionException(cause);
        };
    });

The full hierarchy lives under io.github.ccxt.errors — see the Error Handling section of the Manual for the complete tree (NetworkError vs ExchangeError, retry-safe vs user-error categories, etc.).

WebSocket

WebSocket support is available via the pro exchange classes:

server.ts
import io.github.ccxt.Exchange;
import io.github.ccxt.exchanges.pro.Binance;

import java.util.concurrent.TimeUnit;

Exchange exchange = new Binance();
exchange.loadMarkets().join();

// stream live ticker updates
for (int i = 0; i < 10; i++) {
    Object ticker = exchange.watchTicker("BTC/USDT").get(30, TimeUnit.SECONDS);
    System.out.println(ticker);
}

You can check different examples in the java/examples folder.

Rust

Every exchange has a typed wrapper returning native Rust types — Ticker, Order, Market, OrderBook — instead of a dynamic value. Methods are async and return Result<T, ExchangeError>.

server.ts
use ccxt::{Binance, Config, Params};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut exchange = Binance::with_config(
        Config::new()
            .api_key("MY KEY")
            .secret("MY SECRET"),
    );
    exchange.load_markets(false).await;

    let order = exchange
        .create_order("BTC/USDT", "limit", "buy", 0.001, Some(50000.0), Params::none())
        .await?;
    println!("{:?}", order.id);
    Ok(())
}

Configuration and parameters

Neither construction nor the trailing params argument requires touching a dynamic value — both are builders over Rust primitives. Config nests options exactly as the other bindings do.

rust
use ccxt::{Binance, Config, Params};

let mut exchange = Binance::with_config(
    Config::new()
        .api_key("MY KEY")
        .secret("MY SECRET")
        .sandbox(true)
        .enable_rate_limit(true)
        .option_str("defaultType", "swap")
        .option("fetchMarkets", Params::new().with_strs("types", &["spot", "linear"])),
);

let order = exchange
    .create_order(
        "BTC/USDT",
        "limit",
        "buy",
        0.001,
        Some(50000.0),
        Params::new()
            .with_str("clientOrderId", "myOrderId68768678")
            .with_bool("postOnly", true)
            .with_str("timeInForce", "GTC"),
    )
    .await?;

Settings can also be changed after construction; the setters chain.

rust
exchange.set_verbose(true);
exchange.set_sandbox_mode(true);

Markets

Market metadata is typed too, so trading rules can be checked before sending an order without any extra request.

rust
let market = exchange.market("BTC/USDT")?;
println!("{} {}", market.symbol, market.market_type);
println!("{:?} {:?}", market.limits.amount.min, market.limits.cost.min);
println!("{:?}", market.precision.amount);

let swaps: Vec<_> = exchange.markets().into_iter().filter(|m| m.swap && m.active).collect();
println!("{}", swaps.len());

Error handling

Errors arrive as ExchangeError carrying a kind plus an is() test that walks the unified hierarchy, so one handler covers a whole family — is("InvalidOrder") also matches OrderNotFound and DuplicateOrderId, is("NetworkError") also matches RequestTimeout and RateLimitExceeded.

rust
match exchange.create_order("BTC/USDT", "limit", "buy", 0.001, Some(50000.0), Params::none()).await {
    Ok(order) => println!("{:?}", order.id),
    Err(e) if e.is("InsufficientFunds") => println!("not enough balance"),
    Err(e) if e.is("InvalidOrder") => println!("bad parameters: {}", e.message),
    Err(e) if e.is("AuthenticationError") => println!("check credentials"),
    Err(e) if e.is("RateLimitExceeded") => tokio::time::sleep(Duration::from_secs(30)).await,
    Err(e) if e.is("NetworkError") => tokio::time::sleep(Duration::from_secs(2)).await,
    Err(e) => println!("{} {}", e.kind, e.message),
}

Choosing an exchange at runtime

from_id_with_config builds any supported venue from its id, and the typed API is still available through the trait object.

rust
use ccxt::{from_id_with_config, Config, Params, TypedExchangeExt};

for id in ["binance", "bybit", "okx"] {
    let Some(mut exchange) = from_id_with_config(id, Config::new()) else { continue };
    exchange.load_markets(false).await;

    let market = exchange.market("BTC/USDT")?;
    let ticker = exchange.fetch_ticker("BTC/USDT", Params::none()).await?;
    println!("{id} {:?} {:?}", ticker.last, market.limits.cost.min);
}

WebSocket

WebSocket support lives in the ccxt-pro crate, with the same typed returns.

rust
use ccxt::Params;
use ccxt_pro::Binance;

let mut exchange = Binance::new(None);
exchange.load_markets(false).await;

loop {
    let orderbook = exchange.watch_order_book("BTC/USDT", Some(10), Params::none()).await?;
    println!("{:?} {:?}", orderbook.bids.first(), orderbook.asks.first());
}
rust
let symbols = vec!["BTC/USDT".to_string(), "ETH/USDT".to_string()];
let trades = exchange.watch_trades_for_symbols(symbols, None, None, Params::none()).await?;

You can check different examples in the examples/rust folder.

Rate limiting

Crypto exchanges enforce rate limits to protect their infrastructure, ensure fair usage across all clients, and prevent abuse that could degrade performance or availability for other users. That means you can't make an unlimited amount of requests to the exchange, there is a rate that needs to be respected.

By default, CCXT uses a leaky bucket rate limiter to control the pace of outgoing requests. A leaky bucket rate limiter works by queueing requests and releasing them at a steady, fixed rate. Bursts of requests are smoothed out over time rather than executed immediately.

However, if the user provides a rateLimiterAlgorithm': 'rollingWindow' option, ccxt switches from the leaky bucket model to a window-based rate limiter. A window-based limiter enforces a maximum number of requests within a fixed time window (for example, N requests per X milliseconds). Once the limit is reached, further requests are delayed until the current window expires. By default CCXT assumes a 60s window but the window size can be customized by providing rollingWindowSize: X0000 ms.

Example:

Python
exchange = ccxt.binance({
    'rateLimiterAlgorithm': 'rollingWindow', # switching to rolling window algorithm
    'rollingWindowSize': 5000 # if binance allows X requests per 5 seconds, those requests can be fired in a burst at any time during this window
})

CCXT CLI

Read the documentation for more information and details: docs

CCXT also provides a command-line interface (CLI) that enables direct interaction with any supported exchange from the terminal. You can quickly check balances, place orders, or fetch trade data - all of that without the need to write or execute custom code and without the overhead of building an entire application from scratch. This is especially useful for simple or time-sensitive tasks (shell scripting, testing and debugging among other things).

Installation

The CLI is available as a npm package and can be installed by doing

Terminal
npm i ccxt-cli -g

Usage

You can use the --help option to view a general overview of how the CLI works. The tool allows you to invoke any CCXT method by specifying the exchange id, the methodName, and any required arguments.

Examples:

Code
ccxt binance createOrder BTC/USDT market buy 0.1 // places an order

If you are not sure which arguments should be provided you can always use the explain command.

Code
ccxt explain createOrder

result:

Code
Method: createOrder
Usage:
  binance createOrder <symbol> <type> <side> <amount> [price] [params]

Arguments:
  - symbol       (required) — Market symbol e.g., BTC/USDT
  - type         (required) — (no description available)
  - side         (required) — order side e.g., buy or sell
  - amount       (required) — (no description available)
  - price        (optional) — Price per unit of asset e.g., 26000.50
  - params       (optional) — Extra parameters for the exchange e.g., { "recvWindow": 5000 }

You can easily provide API keys by setting them as environment varibales eg: BINANCE_APIKEY="XXXX" or adding them to the config file located at $CACHE/config.json

CCXT MCP Server

Read the documentation for more information and details: docs

CCXT ships an official MCP (Model Context Protocol) server, so AI agents — Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and any other MCP host — can access market data, balances, and (opt-in) trading on 100+ exchanges and prediction markets. It runs locally over stdio: your API keys stay on your machine and are never visible to the AI model, which references accounts by name only. Trading, withdrawals and raw endpoints are separate opt-in capability tiers, off by default, with confirmation flows, notional caps and an audit journal.

Terminal
claude mcp add ccxt -- npx -y ccxt-mcp

Or in any host's MCP config:

config.json
{ "mcpServers": { "ccxt": { "command": "npx", "args": ["-y", "ccxt-mcp"] } } }

Contributing

Please read the CONTRIBUTING document before making changes that you would like adopted in the code. Also, read the Manual for more details.

Support Developer Team

We are investing a significant amount of time into the development of this library. If CCXT made your life easier and you want to help us improve it further, or if you want to speed up development of new features and exchanges, please support us with a tip. We appreciate all contributions!

Sponsors

Support this project by becoming a sponsor.

[Become a sponsor]

Supporters

Support this project by becoming a supporter. Your avatar will show up here with a link to your website.

[Become a supporter]

Backers

Thank you to all our backers! [Become a backer]

Thank you!

Social

  • Twitter Follow us on Twitter
  • Medium Read our blog on Medium
  • Discord Join our Discord
  • Telegram Announcements CCXT Channel on Telegram (important announcements)
  • Telegram Chat CCXT Chat on Telegram (technical support)

Disclaimer

CCXT is not a service nor a server. CCXT is a software. CCXT is a free open source non-custodian API broker software under MIT license.

  • Non-custodian means CCXT is not an intermediary in trading, it does not hold traders' money at any point in time, traders install CCXT and use CCXT to talk to exchanges directly.
  • MIT license means CCXT can be used for any purpose, but use at your own risk without any warranties.
  • API broker means CCXT is funded with rebates from exchanges' API broker programs and it is an official API broker with many exchanges, all rebates and related fees are handled by the exchanges solely in accordance with exchanges' respective terms and conditions established by each partner exchange.
  • Free software means CCXT is free to use and has no hidden fees, with CCXT traders pay the same trading fees they would pay to the exchanges directly.
  • Open source means anyone is allowed to use it, to look inside the code and to change everything, including other brokers.

CCXT has joined Hyperliquid’s Builder Codes program (see announcement) and may also utilize its referral code, which offers users a 4% fee discount on their first 25 million in trading volume.

Contact Us

For business inquiries: info@ccxt.trade