git clone https://github.com/ccxt/ccxt.git
cd ccxt
npm install ccxt
docker-compose run --rm ccxt       
A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go.
The CCXT library is used to connect and trade with cryptocurrency exchanges and payment processing services 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:
|logo |id |name |ver |type |certified |pro |discount |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|-----------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------:|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  | binance | Binance |  | !CEX – Centralized EXchange |  |  |  |
|  | binanceusdm | Binance USDⓈ-M |  | !CEX – Centralized EXchange |  |  |  |
|  | binancecoinm | Binance COIN-M |  | !CEX – Centralized EXchange |  |  |  |
|  | bybit | Bybit |  | !CEX – Centralized EXchange |  |  | |
|  | okx | OKX |  | !CEX – Centralized EXchange |  |  |  |
|  | gate | Gate |  | !CEX – Centralized EXchange |  |  |  |
|  | kucoin | KuCoin |  | !CEX – Centralized EXchange |  |  | |
|  | kucoinfutures | KuCoin Futures |  | !CEX – Centralized EXchange |  |  | |
|  | bitget | Bitget |  | !CEX – Centralized EXchange |  |  | |
|  | hyperliquid | Hyperliquid |  | !DEX - Distributed EXchange |  |  | |
|  | bitmex | BitMEX |  | !CEX – Centralized EXchange |  |  |  |
|  | bingx | BingX |  | !CEX – Centralized EXchange |  |  | |
|  | htx | HTX |  | !CEX – Centralized EXchange |  |  |  |
|  | mexc | MEXC Global |  | !CEX – Centralized EXchange |  |  | |
|  | bitmart | BitMart |  | !CEX – Centralized EXchange |  |  |  |
|  | cryptocom | Crypto.com |  | !CEX – Centralized EXchange |  |  |  |
|  | coinex | CoinEx |  | !CEX – Centralized EXchange |  |  | |
|  | hashkey | HashKey Global |  | !CEX – Centralized EXchange |  |  | |
|  | woo | WOO X |  | !CEX – Centralized EXchange |  |  |  |
|  | woofipro | WOOFI PRO |  | !DEX - Distributed EXchange |  |  |  |
<!--- init list -->The CCXT library currently supports the following 108 cryptocurrency exchange markets and trading APIs:
|logo |id |name |ver |type |certified |pro |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|---------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------:|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
|  | aftermath | AftermathFinance |  | !DEX - Distributed EXchange | |  |
|  | alpaca | Alpaca |  | !CEX – Centralized EXchange | |  |
|  | apex | Apex |  | !DEX - Distributed EXchange | |  |
|  | arkham | ARKHAM |  | !CEX – Centralized EXchange | |  |
|  | ascendex | AscendEX |  | !CEX – Centralized EXchange | |  |
|  | aster | Aster |  | !DEX - Distributed EXchange | |  |
|  | backpack | Backpack |  | !CEX – Centralized EXchange | |  |
|  | bequant | Bequant |  | !CEX – Centralized EXchange | |  |
|  | bigone | BigONE |  | !CEX – Centralized EXchange | | |
|  | binance | Binance |  | !CEX – Centralized EXchange |  |  |
|  | binancecoinm | Binance COIN-M |  | !CEX – Centralized EXchange |  |  |
|  | binanceus | Binance US |  | !CEX – Centralized EXchange | |  |
|  | binanceusdm | Binance USDⓈ-M |  | !CEX – Centralized EXchange |  |  |
|  | bingx | BingX |  | !CEX – Centralized EXchange |  |  |
|  | bit2c | Bit2C |  | !CEX – Centralized EXchange | | |
|  | bitbank | bitbank |  | !CEX – Centralized EXchange | | |
|  | bitbns | Bitbns |  | !CEX – Centralized EXchange | | |
|  | bitfinex | Bitfinex |  | !CEX – Centralized EXchange | |  |
|  | bitflyer | bitFlyer |  | !CEX – Centralized EXchange | | |
|  | bitget | Bitget |  | !CEX – Centralized EXchange |  |  |
|  | bithumb | Bithumb |  | !CEX – Centralized EXchange | |  |
|  | bitmart | BitMart |  | !CEX – Centralized EXchange |  |  |
|  | bitmex | BitMEX |  | !CEX – Centralized EXchange |  |  |
|  | bitopro | BitoPro |  | !CEX – Centralized EXchange | |  |
|  | bitrue | Bitrue |  | !CEX – Centralized EXchange | |  |
|  | bitso | Bitso |  | !CEX – Centralized EXchange | | |
|  | bitstamp | Bitstamp |  | !CEX – Centralized EXchange | |  |
|  | bitteam | BIT.TEAM |  | !CEX – Centralized EXchange | | |
|  | bittrade | BitTrade |  | !CEX – Centralized EXchange | |  |
|  | bitvavo | Bitvavo |  | !CEX – Centralized EXchange | |  |
|  | blockchaincom | Blockchain.com |  | !CEX – Centralized EXchange | |  |
|  | blofin | BloFin |  | !CEX – Centralized EXchange | |  |
|  | btcbox | BtcBox |  | !CEX – Centralized EXchange | | |
|  | btcmarkets | BTC Markets |  | !CEX – Centralized EXchange | | |
|  | btcturk | BTCTurk |  | !CEX – Centralized EXchange | | |
|  | bullish | Bullish |  | !CEX – Centralized EXchange | |  |
|  | bybit | Bybit |  | !CEX – Centralized EXchange |  |  |
|  | bydfi | BYDFi |  | !CEX – Centralized EXchange | |  |
|  | cex | CEX.IO |  | !CEX – Centralized EXchange | |  |
|  | coinbase | Coinbase Advanced |  | !CEX – Centralized EXchange | |  |
|  | coinbaseexchange | Coinbase Exchange |  | !CEX – Centralized EXchange | |  |
|  | coinbaseinternational | Coinbase International |  | !CEX – Centralized EXchange | |  |
|  | coincheck | coincheck |  | !CEX – Centralized EXchange | | |
|  | coinex | CoinEx |  | !CEX – Centralized EXchange |  |  |
|  | coinmate | CoinMate |  | !CEX – Centralized EXchange | | |
|  | coinmetro | Coinmetro |  | !CEX – Centralized EXchange | | |
|  | coinone | CoinOne |  | !CEX – Centralized EXchange | | |
|  | coinsph | Coins.ph |  | !CEX – Centralized EXchange | | |
|  | coinspot | CoinSpot |  | !CEX – Centralized EXchange | | |
|  | cryptocom | Crypto.com |  | !CEX – Centralized EXchange |  |  |
|  | cryptomus | Cryptomus |  | !CEX – Centralized EXchange | | |
|  | deepcoin | DeepCoin |  | !CEX – Centralized EXchange | |  |
|  | delta | Delta Exchange |  | !CEX – Centralized EXchange | | |
|  | deribit | Deribit |  | !CEX – Centralized EXchange | |  |
|  | derive | derive |  | !DEX - Distributed EXchange | |  |
|  | digifinex | DigiFinex |  | !CEX – Centralized EXchange | | |
|  | dydx | dYdX |  | !DEX - Distributed EXchange | |  |
|  | exmo | EXMO |  | !CEX – Centralized EXchange | | |
|  | fmfwio | FMFW.io |  | !CEX – Centralized EXchange | | |
|  | foxbit | Foxbit |  | !CEX – Centralized EXchange | | |
|  | gate | Gate |  | !CEX – Centralized EXchange |  |  |
|  | gemini | Gemini |  | !CEX – Centralized EXchange | |  |
|  | grvt | GRVT |  | !DEX - Distributed EXchange | |  |
|  | hashkey | HashKey Global |  | !CEX – Centralized EXchange |  |  |
|  | hibachi | Hibachi |  | !DEX - Distributed EXchange | | |
|  | hitbtc | HitBTC |  | !CEX – Centralized EXchange | | |
|  | hollaex | HollaEx |  | !CEX – Centralized EXchange | |  |
|  | htx | HTX |  | !CEX – Centralized EXchange |  |  |
|  | hyperliquid | Hyperliquid |  | !DEX - Distributed EXchange |  |  |
|  | independentreserve | Independent Reserve |  | !CEX – Centralized EXchange | |  |
|  | indodax | INDODAX |  | !CEX – Centralized EXchange | | |
|  | kraken | Kraken |  | !CEX – Centralized EXchange | |  |
|  | krakenfutures | Kraken Futures |  | !CEX – Centralized EXchange | |  |
|  | kucoin | KuCoin |  | !CEX – Centralized EXchange |  |  |
|  | kucoinfutures | KuCoin Futures |  | !CEX – Centralized EXchange |  |  |
|  | latoken | Latoken |  | !CEX – Centralized EXchange | | |
|  | lbank | LBank |  | !CEX – Centralized EXchange | |  |
|  | lighter | Lighter |  | !DEX - Distributed EXchange | |  |
|  | luno | luno |  | !CEX – Centralized EXchange | |  |
|  | mercado | Mercado Bitcoin |  | !CEX – Centralized EXchange | | |
|  | mexc | MEXC Global |  | !CEX – Centralized EXchange |  |  |
|  | modetrade | Mode Trade |  | !DEX - Distributed EXchange | |  |
|  | myokx | MyOKX (EEA) |  | !CEX – Centralized EXchange | |  |
|  | ndax | NDAX |  | !CEX – Centralized EXchange | |  |
|  | novadax | NovaDAX |  | !CEX – Centralized EXchange | | |
|  | okx | OKX |  | !CEX – Centralized EXchange |  |  |
|  | okxus | OKX (US) |  | !CEX – Centralized EXchange | |  |
|  | onetrading | One Trading |  | !CEX – Centralized EXchange | |  |
|  | oxfun | OXFUN |  | !CEX – Centralized EXchange | |  |
|  | p2b | p2b |  | !CEX – Centralized EXchange | |  |
|  | pacifica | Pacifica |  | !DEX - Distributed EXchange | |  |
|  | paradex | Paradex |  | !DEX - Distributed EXchange | |  |
|  | paymium | Paymium |  | !CEX – Centralized EXchange | | |
|  | phemex | Phemex |  | !CEX – Centralized EXchange | |  |
|  | poloniex | Poloniex |  | !CEX – Centralized EXchange | |  |
|  | tokocrypto | Tokocrypto |  | !CEX – Centralized EXchange | | |
|  | toobit | Toobit |  | !CEX – Centralized EXchange | |  |
|  | upbit | Upbit |  | !CEX – Centralized EXchange | |  |
|  | wavesexchange | Waves.Exchange |  | !DEX - Distributed EXchange | | |
|  | weex | Weex |  | !CEX – Centralized EXchange | |  |
|  | whitebit | WhiteBit |  | !CEX – Centralized EXchange | |  |
|  | woo | WOO X |  | !CEX – Centralized EXchange |  |  |
|  | woofipro | WOOFI PRO |  | !DEX - Distributed EXchange |  |  |
|  | xt | XT |  | !CEX – Centralized EXchange | |  |
|  | yobit | YoBit |  | !CEX – Centralized EXchange | | |
|  | zaif | Zaif |  | !CEX – Centralized EXchange | | |
|  | zebpay | Zebpay |  | !CEX – Centralized EXchange | | |
|  | zonda | Zonda |  | !CEX – Centralized EXchange | | |
<!--- end list -->
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.
<!--- init builder codes list --->
|logo |id |name |ver |type |certified |pro |
|---------------------------------------------------------------------------------------------------------------------------------------|-------------|---------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------:|-------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
|  | grvt | GRVT |  | !DEX - Distributed EXchange | |  |
|  | hyperliquid | Hyperliquid |  | !DEX - Distributed EXchange |  |  |
|  | lighter | Lighter |  | !DEX - Distributed EXchange | |  |
|  | pacifica | Pacifica |  | !DEX - Distributed EXchange | |  |
<!--- end list -->
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.
---
The easiest way to install the CCXT library is to use a package manager:
This library is shipped as an all-in-one module implementation with minimalistic dependencies and requirements:
You can also clone it into your project directory from ccxt GitHub repository:
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 version of CCXT works in both Node and web browsers. Requires ES6 and async/await syntax support (Node 7.6.0+). When compiling with Webpack and Babel, make sure it is not excluded in your babel-loader config.
npm install ccxt
... 文档较长,请查看完整版 →