Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ccxt-compiled

ccxt257MIT1.0.9TypeScript support: included

A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges

algorithmic, algotrading, altcoin, altcoins, api, arbitrage, backtest, backtesting, bitcoin, bot, btc, cny, coin, coins, crypto, cryptocurrency, crypto currency, crypto market, currency, currencies, darkcoin, dash, digital currency, doge, dogecoin, e-commerce, etc, eth, ether, ethereum, exchange, exchanges, eur, framework, invest, investing, investor, library, light, litecoin, ltc, market, market data, markets, merchandise, merchant, minimal, order, orderbook, order book, price, price data, pricefeed, private, public, ripple, strategy, toolkit, trade, trader, trading, usd, volume, xbt, xrp, zec, zerocoin, 1Broker, 1BTCXE, ACX, acx.io, ANX, ANXPro, Binance, binance.com, bit2c.co.il, Bit2C, BitBay, BitBays, bitcoincoid, Bitcoin.co.id, Bitfinex, bitFLyer, bitflyer.jp, bithumb, bithumb.com, bitlish, BitMarket, BitMEX, Bitso, Bitstamp, Bittrex, BL3P, Bleutrade, bleutrade.com, BlinkTrade, BtcBox, btcbox.co.jp, BTCC, BTCChina, BTC-e, BTCe, BTCExchange, btcexchange.ph, BTC Markets, btcmarkets, btcmarkets.net, BTCTrader, btctrader.com, btc-trade.com.ua, BTC Trade UA, BTCTurk, btcturk.com, BTCX, btc-x, bter, Bter.com, BX.in.th, ccex, C-CEX, cex, CEX.IO, CHBTC, ChileBit, chilebit.net, coincheck, coingi, coingi.com, CoinMarketCap, CoinMate, Coinsecure, CoinSpot, coinspot.com.au, Crypto Capital, cryptocapital.co, Cryptopia, cryptopia.co.nz, DSX, dsx.uk, EXMO, flowBTC, flowbtc.com, FoxBit, foxbit.exchange, FYB-SE, FYB-SG, Gatecoin, GDAX, Gemini, HitBTC, Huobi, HuobiPRO, huobi.pro, Independent Reserve, independentreserve.com, itBit, jubi.com, Kraken, LakeBTC, lakebtc.com, LiveCoin, Liqui, liqui.io, luno, mercado, MercadoBitcoin, mercadobitcoin.br, mixcoins, mixcoins.com, nova, novaexchange, novaexchange.com, OKCoin, OKCoin.com, OKCoin.cn, OKEX, okex.com, Paymium, Poloniex, QuadrigaCX, Qryptos, QUOINE, Southxchange, SurBitcoin, surbitcoin.com, Tidex, tidex.com, TheRockTrading, UrduBit, urdubit.com, Vaultoro, VBTC, vbtc.exchange, vbtc.vn, VirWoX, WEX, wex.nz, xBTCe, xbtce.com, YoBit, yobit.net, YUNBI, Zaif

readme

CCXT – CryptoCurrency eXchange Trading Library

Build Status npm PyPI NPM Downloads Try ccxt on RunKit Gitter Supported Exchanges

A JavaScript / Python / PHP library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.

The CCXT library is used to connect and trade with cryptocurrency / altcoin 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, webshop integration 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 on top of it.

Current feature list:

  • support for many exchange markets, even more upcoming soon
  • fully implemented public and private APIs for all exchanges
  • all currencies, altcoins and symbols, prices, order books, trades, tickers, etc...
  • optional normalized data for cross-exchange or cross-currency analytics and arbitrage
  • an out-of-the box unified all-in-one API extremely easy to integrate
  • works in Node 7.6+, Python 2 and 3, PHP 5.3+, web browsers

ccxt on GitHub | Install | Usage | Manual | Examples | Changelog | Contributing

Supported Cryptocurrency Exchange Markets

The ccxt library currently supports the following 94 cryptocurrency exchange markets and trading APIs:

| | id | name | ver | doc | countries | |---------------------------------------------------------------------------------------------------------------------------|--------------------|-----------------------------------------------------------|:---:|:--------------------------------------------------------------------------------------------:|-----------------------------------------| |_1broker | 1broker | 1Broker | 2 | API | US | |![1btcxe](https://user-images.githubusercontent.com/1294454/27766049-2b294408-5ecc-11e7-85cc-adaff013dc1a.jpg) | 1btcxe | 1BTCXE | * | API | Panama | |acx | acx | ACX | 2 | [API](https://acx.io/documents/apiv2) | Australia | |allcoin | allcoin | Allcoin | 1 | API | Canada | |anxpro | anxpro | ANXPro | 2 | API | Japan, Singapore, Hong Kong, New Zealand| |binance | binance | Binance | * | API | China | |bit2c | bit2c | Bit2C | * | API | Israel | |bitbay | bitbay | BitBay | * | API | Poland, EU | |bitcoincoid | bitcoincoid | Bitcoin.co.id | 1.7 | API | Indonesia | |bitfinex | bitfinex | Bitfinex | 1 | API | British Virgin Islands | |bitfinex2 | bitfinex2 | Bitfinex v2 | 2 | API | British Virgin Islands | |bitflyer | bitflyer | bitFlyer | 1 | API | Japan | |bithumb | bithumb | Bithumb | * | API | South Korea | |bitlish | bitlish | Bitlish | 1 | API | UK, EU, Russia | |bitmarket | bitmarket | BitMarket | * | API | Poland, EU | |bitmex | bitmex | BitMEX | 1 | API | Seychelles | |bitso | bitso | Bitso | 3 | API | Mexico | |bitstamp | bitstamp | Bitstamp | 2 | API | UK | |bitstamp1 | bitstamp1 | Bitstamp v1 | 1 | API | UK | |bittrex | bittrex | Bittrex | 1.1 | API | US | |bl3p | bl3p | BL3P | 1 | API | Netherlands, EU | |bleutrade | bleutrade | Bleutrade | 2 | API | Brazil | |btcbox | btcbox | BtcBox | 1 | API | Japan | |btcchina | btcchina | BTCChina | 1 | API | China | |btcexchange | btcexchange | BTCExchange | * | API | Philippines | |btcmarkets | btcmarkets | BTC Markets | * | API | Australia | |btctradeua | btctradeua | BTC Trade UA | * | API | Ukraine | |btcturk | btcturk | BTCTurk | * | API | Turkey | |btcx | btcx | BTCX | 1 | API | Iceland, US, EU | |bter | bter | Bter | 2 | API | British Virgin Islands, China | |bxinth | bxinth | BX.in.th | * | API | Thailand | |ccex | ccex | C-CEX | * | API | Germany, EU | |cex | cex | CEX.IO | * | API | UK, EU, Cyprus, Russia | |chbtc | chbtc | CHBTC | 1 | API | China | |chilebit | chilebit | ChileBit | 1 | API | Chile | |coincheck | coincheck | coincheck | * | API | Japan, Indonesia | |coinfloor | coinfloor | coinfloor | * | API | UK | |coingi | coingi | Coingi | * | API | Panama, Bulgaria, China, US | |coinmarketcap | coinmarketcap | CoinMarketCap | 1 | API | US | |coinmate | coinmate | CoinMate | * | API | UK, Czech Republic | |coinsecure | coinsecure | Coinsecure | 1 | API | India | |coinspot | coinspot | CoinSpot | * | API | Australia | |cryptopia | cryptopia | Cryptopia | * | API | New Zealand | |dsx | dsx | DSX | 3 | API | UK | |exmo | exmo | EXMO | 1 | API | Spain, Russia | |flowbtc | flowbtc | flowBTC | 1 | API | Brazil | |foxbit | foxbit | FoxBit | 1 | API | Brazil | |fybse | fybse | FYB-SE | * | API | Sweden | |fybsg | fybsg | FYB-SG | * | API | Singapore | |gatecoin | gatecoin | Gatecoin | * | API | Hong Kong | |gateio | gateio | Gate.io | 2 | API | China | |gdax | gdax | GDAX | * | API | US | |gemini | gemini | Gemini | 1 | API | US | |getbtc | getbtc | GetBTC | * | API | St. Vincent & Grenadines, Russia | |hitbtc | hitbtc | HitBTC | 1 | API | Hong Kong | |hitbtc2 | hitbtc2 | HitBTC v2 | 2 | API | Hong Kong | |huobi | huobi | Huobi | 3 | API | China | |huobicny | huobicny | Huobi CNY | 1 | API | China | |huobipro | huobipro | Huobi Pro | 1 | API | China | |independentreserve | independentreserve | Independent Reserve | * | API | Australia, New Zealand | |itbit | itbit | itBit | 1 | API | US | |jubi | jubi | jubi.com | 1 | API | China | |kraken | kraken | Kraken | 0 | API | US | |kucoin | kucoin | Kucoin | 1 | API | Hong Kong | |kuna | kuna | Kuna | 2 | API | Ukraine | |lakebtc | lakebtc | LakeBTC | 2 | API | US | |liqui | liqui | Liqui | 3 | API | Ukraine | |livecoin | livecoin | LiveCoin | * | API | US, UK, Russia | |luno | luno | luno | 1 | API | UK, Singapore, South Africa | |mercado | mercado | Mercado Bitcoin | 3 | API | Brazil | |mixcoins | mixcoins | MixCoins | 1 | API | UK, Hong Kong | |nova | nova | Novaexchange | 2 | API | Tanzania | |okcoincny | okcoincny | OKCoin CNY | 1 | API | China | |okcoinusd | okcoinusd | OKCoin USD | 1 | API | China, US | |okex | okex | OKEX | 1 | API | China, US | |paymium | paymium | Paymium | 1 | API | France, EU | |poloniex | poloniex | Poloniex | * | API | US | |qryptos | qryptos | QRYPTOS | 2 | API | China, Taiwan | |quadrigacx | quadrigacx | QuadrigaCX | 2 | API | Canada | |quoine | quoine | QUOINE | 2 | API | Japan, Singapore, Vietnam | |southxchange | southxchange | SouthXchange | * | API | Argentina | |surbitcoin | surbitcoin | SurBitcoin | 1 | API | Venezuela | |therock | therock | TheRockTrading | 1 | API | Malta | |tidex | tidex | Tidex | 3 | API | UK | |urdubit | urdubit | UrduBit | 1 | API | Pakistan | |vaultoro | vaultoro | Vaultoro | 1 | API | Switzerland | |vbtc | vbtc | VBTC | 1 | API | Vietnam | |virwox | virwox | VirWoX | * | API | Austria, EU | |wex | wex | WEX | 3 | API | New Zealand | |xbtce | xbtce | xBTCe | 1 | API | Russia | |yobit | yobit | YoBit | 3 | API | Russia | |yunbi | yunbi | YUNBI | 2 | API | China | |zaif | zaif | Zaif | 1 | API | Japan | |zb | zb | ZB | 1 | API | China |

The list above is updated frequently, new crypto markets, altcoin exchanges, bug fixes, API endpoints are introduced and added on a regular basis. See the Manual for details. If you don't find a cryptocurrency exchange market in the list above and/or want another exchange to be added, post or send us a link to it by opening an issue here on GitHub or via 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.

Install

The easiest way to install the ccxt library is to use builtin package managers:

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

  • js/ in JavaScript
  • python/ in Python (generated from JS)
  • php/ in PHP (generated from JS)

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

git clone https://github.com/ccxt/ccxt.git

An alternative way of installing this library into your code is to copy a single file manually into your working directory with language extension appropriate for your environment.

JavaScript (NPM)

JavaScript version of CCXT works both in 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.

ccxt in NPM

npm install ccxt
var ccxt = require ('ccxt')

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

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

All-in-one browser bundle (dependencies included), served from unpkg CDN, which is a fast, global content delivery network for everything on NPM.

<script type="text/javascript" src="https://unpkg.com/ccxt"></script>

Creates a global ccxt object:

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

Python

ccxt in PyPI

pip install ccxt
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.5+

import ccxt.async as ccxt # link against the asynchronous version of ccxt

PHP

The ccxt library in PHP: ccxt.php

It requires common PHP modules:

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

Documentation

Read the Manual for more details.

Usage

Intro

The ccxt library consists of a public part and a private part. Anyone can use the public part out-of-the-box immediately after installation. Public APIs open access to public information from all exchange markets without registering user accounts and without having API keys.

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

For trading with private APIs you need to obtain API keys from/to exchange markets. It often means registering with exchanges and creating API keys with your account. Most exchanges require personal info or identification. Some kind of verification may be necessary as well. If you want to trade you need to register yourself, this library will not create accounts or API keys for you. Some exchange APIs expose interface methods for registering an account from within the code itself, but most of exchanges don't. You have to sign up and create API keys with 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 APIs for all exchanges. WebSocket and FIX implementations in JavaScript, PHP, Python and other languages coming soon.

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

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

Read the Manual for more details.

JavaScript

'use strict';
const ccxt = require ('ccxt');

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

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

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

    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' })
}) ();

Python

# coding=utf-8

import ccxt

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

hitbtc_markets = hitbtc.load_markets()

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

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

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

include 'ccxt.php';

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

$poloniex_markets = $poloniex->load_markets ();

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

var_dump ($poloniex->fetch_order_book ($poloniex->symbols[0]));
var_dump ($bittrex->fetch_trades ('BTC/USD'));
var_dump ($quoine->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'));

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 like it and want to help us improve it further or if you want to speed up new features and exchanges, please, support us with a tip. We appreciate all contributions!

Sponsors

Become our sponsor and get your logo on our Github page with a link to your site.

Supporters

Become our supporter with a monthly payment and get your nick/link on our GitHub page.

Backers

Become a backer with a small monthly donation and help us continue our activities.

Crypto

ETH 0xa7c2b18b7c8b86984560cad3b1bc3224b388ded0
BTC 33RmVRfhK2WZVQR1R83h2e9yXoqRNDvJva
BCH 1GN9p233TvNcNQFthCgfiHUnj5JRKEc2Ze
LTC LbT8mkAqQBphc4yxLXEDgYDfEax74et3bP

Thank you!

changelog

Сhangelog

Version 1.10.1 2017-11-06

  • Fixed YoBit create_order(), #465
  • Fixed Poloniex in Python async, #461
  • Fixed HitBTC createOrder in Python async, #460
  • Fixed BCH withdrawals with Bitfinex, #457
  • Fixed USD/USDT withdrawals with Bitfinex, #456
  • Added throttle() to Python asyncio, #297, #373
  • Split the sources into multiple files, #233
  • Fixed BCH vs BCC on HitBTC, #447
  • Fixed the build sequence for Windows, #445
  • Fixed Huobi fetchBalance() and createOrder(), #444
  • Fixed UTF-8 decoding error in Bitfinex, #441
  • Fixed Gemini createrder(), #436
  • Fixed OKCoinUSD fetchTrades() ids integers → strings, #434
  • Added handling for InvalidOrder to GDAX, #427
  • Fixed GDAX fills' parsing, #417
  • Added Bter/Gate.io withdraw(), #413
  • Fixed GDAX fills' sides, #410
  • Fixed GDAX precision strings → floats, #405
  • Binance now supporting both BCC (BitConnect) and BCH (Bitcoin Cash), #402
  • Added BCH/BRL market to Mercado Bitcoin, #400
  • Fixed handling of Bitfinex errors, #399
  • Fixed bitflyer fetch_balance in Python, #394
  • Fixed Liqui rounding triggering InsufficientFunds, #393
  • Fixed multiple symbol inconsistencies with Cryptopia, #390
  • Fixed reversed ticker bidasks form WEX, #389
  • Fixed GDAX order status, #388
  • Fixed fetchTrades timestamps from Bitstamp, #384
  • Added fetchOHLCV to Bitfinex v1, #379
  • Fixed Bitfinex v2 OCHLV → OHLCV, #374
  • Fixed symbol in Kraken fetchMyTrades, #367
  • Added QTUM/KRW market to bithumb, #366
  • Unified all fetchOrderBook() method signatures, #365
  • Added fees, precision, limits, fixed nonce for CEX.io, #364
  • Added fetchOpenOrders to BTCTrade UA, #363
  • Added multiple significant improvements and fixes to HitBTC v2, #362
  • Added aiohttp proxy support to Python async version, #358
  • Resolved FCN → Facilecoin conflict on Cryptopia, #357
  • Added support for a new exchange: Gate.io (China), #353
  • Fixed fetchBalance() error handling for BTCTrade UA, #352
  • Fixed amount in fetchMyTrades for BTCTrade UA, #351
  • Resolved ICN, AIR, ANR, ATM, DCT, DGD, LUN conflicts for YoBit, #350
  • Added fetchOHLCV() to Poloniex, #349
  • Mapped BTM → Bitmark on Poloniex to resolve a conflict with BTM for Bytom, #348
  • Added deposit() method to Cryptopia, #347
  • Added fetchOrder() to bitstamp, #346
  • Fixed SouthXchange withdraw(), #344
  • Fixed Bleutrade fetchBalance return, #341
  • Fixed OKCoin and OKEX cancelOrder, #336
  • Fixed Bithumb fetchBalance return, #333
  • Added support for a new exchange: Kuna (Ukraine), #330, #331, #332, #339
  • Fixed YoBit fetchBalance return, #329
  • Fixed Huobi PRO fetchBalance return, #328
  • Fixed GMT → UTC with some exchanges in JavaScript #325
  • Yunbi, BTCChina, OKCoin CNY shutdown btcchina shutdown
  • Liqui and DSX unified (same BTC-e API)
  • Fixed BCC → BCH on DSX, #83, BCH
  • Yobit and Liqui unified (same BTC-e API)
  • Added support for a new exchange: Allcoin (Canada), #317
  • Fixed HitBTC v1 market buy/sell, #314
  • Fixed PHP 7 method declaraions, #313
  • Added fetchOrders, fetchOpenOrders, fetchClosedOrders to OKCoin/OKEX, #71, #312
  • Fixed OKCoin/OKEX fetchOrder and fetchTrades, #308, #312
  • Added symbol to all tickers
  • Added GDAX fetchOrder, fetchOrders, fetchOpenOrders and fetchClosedOrders, #71
  • Changed the createMarketBuyOrder signature and implementation for OKcoin/OKEX, #307
  • Added fetchOrder, fetchOpenOrders, fetchClosedOrders to HitBTC, #305
  • Added fetchOrder, fetchOrders, fetchOpenOrders, fetchClosedOrders to Cryptopia, Liqui and Poloniex
  • Fixed IoTcoin on ccex, #302
  • Fixed ANICoin, Bitshares2 on YoBit, #302
  • Fixed Binance market orders, #298
  • Added cex.io fetchOpenOrders, #293
  • Fixed reversed baseVolume and quoteVolume with Poloniex fetchTicker, #292
  • Added main/trading account support to HitBTC fetchBalance, #288
  • Added deposit() implementations for Bitfinex (experimental), #288
  • Fixed YoBit pair symbols: EPAY, OMGame, Republicoin, NavajoCoin, LiZi, #287
  • Fixed Cryptopia symbol: CC → CCX, #287
  • Fixed Bitfinex withdraw(), #286
  • Fixed ticker base/quote volumes, #279, #280, #281, #282, #283, #284
  • Fixed cancelOrder() for CEX.io, #277
  • Fixed Bitfinex fetch_balance() in Python 3, #276
  • Added CEX.io fetchOrder() (not unified yet), #275
  • Fixed bitcoin.co.id cancelOrder(), #273
  • Fixed ACX for milliseconds nonce, #273
  • Fixed error details output in Python 3, #271
  • Renamed missed CCXTError → BaseError in Python 3, #270
  • Added support for a new exchange: BtcBox (Japan, experimental)
  • Fixed HitBTC v1 create_order() in PHP, #267
  • Fixed GDAX withdraw(), #266
  • Fixed Bittrex fetchOrder() symbol param, #264
  • Fixed parseOrders() in PHP, #258
  • Fixed HitBTC v2 fetchBalance() function param signature in PHP, #257
  • Removed a duplicate redefinition of request() from PHP, #256
  • Fixed throttle() in PHP, #254
  • Renamed CCXTError base exception class to BaseError
  • Added experimental limits and precision digits to Kraken, Liqui, Binance, Poloniex
  • Added missing markets to Binance
  • Added min/max trade limits to Bittrex and Cryptopia (experimental)

Version 1.9.x 2017-10-01

  • Added precision thresholds to Binance, Bittrex, Cryptopia, Kraken markets
  • Added order cache and emulated fetchClosedOrders workaround to Cryptopia
  • Added a symbol param to cancelOrder () / cancel_order ()
  • Added new ZEC/KRW market to Bithumb
  • Fixed CEX.io endpoint URLs for extra params, #250, #251
  • Fixed Poloniex fetchTrades, #246
  • Fixed all PEP8-conformance issues entirely, #244
  • Added support for a new exchange: QRYPTOS (China, Taiwan, a property of QUOINE)
  • Added fetchOpenOrders and fetchClosedOrders to Bitfinex v1 (experimental)
  • Added fetchOrder and fetchOrders to OKCoin CNY, OKCoin USD and OKEX (experimental)
  • Added withdraw method to Exmo (experimental)
  • Added more robust private API error handling for CEX.io
  • Added withdraw method to Mercado Bitcoin (experimental)
  • Fixed Liqui cancelOrder missing await in Python asyncio-version, #241
  • Fixed Cryptopia fetchTicker misplaced volumes, #239
  • Added HitBTC v1 fetchOrder (experimental)
  • Added more exceptions to coincheck for non-BTC/JPY-markets, #236
  • Fixed Liqui balance totals, #235
  • Fixed fetchTicker transpilation bug, #234
  • Added fetchMyTrades to Kraken
  • Added fetchFreeBalance, fetchUsedBalance, fetchTotalBalance
  • Added hasFetchTicker, hasFetchOrderBook, hasFetchTrades properties
  • Fixed BTCTradeUA fetchTicker for empty bidasks
  • Fixed Kraken fetchTicker baseVolume
  • Fixed BCH support / updated markets for Bit2C
  • Renamed fetchBestPrices to fetchMarketPrice for Virwox
  • Fixed Virwox fetchTicker for empty bidasks
  • Added fetchOrder, fetchOrders, fetchOpenOrders, fetchMyTrades to Binance

Version 1.8.x 2017-09-24

  • Added support for a new exchange: Tidex (United Kingdom)
  • Added missing new markets to Bitcoin.co.id, #228, , #229
  • Restored Bistamp v2 fetchOrderStatus, #226
  • Added hasCORS property to base exchange class, #225
  • Minor fix to GDAX OHLCV, #221
  • Fixed the since param in GDAX fetchOHLCV, #221
  • Added support for a new exchange: WEX (New Zealand)
  • Dropped the legacy ECMAScript 5 support for the greater maintainability and performance gains
  • Added missing spot pairs BCC/BTC LTC/BTC ETH/BTC ETC/BTC to OKEX, improved futures support, #216
  • Added support for a new exchange: Bithumb (South Korea, private API in progress)
  • Removed excessive body.encode() from Python 3.5+ asyncio version, #214
  • Fixed Bter orderbook in Python3 for empty bidasks in their response, #213
  • Added initial test_async.py for testing against Python 3.5+ asyncio
  • Cleaned up for the upcoming refactoring, multiple bugfixes (mostly to Python3.5+ asyncio version)
  • Fixed bitFlyer futures, #212
  • Fixed HitBTC v2 cancelOrder, #211
  • Added experimental support for a new exchange: Independent Reserve (Australia, New Zealand)
  • Added experimental support for a new exchange: Nova Exchange (Tanzania)
  • Fixed itBit createOrder/cancelOrder for walletId
  • Fixed Jubi cancelOrder
  • Switched HitBTC v2 fetchBalance to trading account by default, #210
  • Added an internal rate-limiting REST poller to JS (experimental)
  • Fixed Cryptopia fetchTicker volume, #206
  • Fixed Bittrex await cancelOrder, #205
  • Fixed empty CEX DASH/USD fetchTicker
  • Added Bittrex v2 fetchOHLCV (alpha-stage of their new API)

Version 1.7.x 2017-09-15

  • Added missing endpoints to Bitstamp v2, #198
  • Added support for older Bitstamp v1 API, #198
  • Removed BTC/USD market from Huobi, #195
  • Added Huobi PRO API: BCH/BTC, ETC/BTC, ETH/BTC, LTC/BTC, #195
  • Added Huobi CNY API: BCH/CNY, ETH/CNY, ETC/CNY, #195
  • Fixed Bitfinex parseOrder timestamp, #200
  • Fixed Bitfinex cancelOrder error, #199
  • Removed EOS market from CHBTC, #197
  • Added missing BCH/HSR/QTUM markets to CHBTC, #197
  • Added missing BCH/ETH/ETC markets to OKCoin CNY, #196
  • Fixed BCH/ETH markets with BTCChina, #194
  • Added fetchOpenOrders/fetchClosedOrders implementation to Kraken, #71
  • Added support for a new exchange: Bleutrade (Brazil)
  • Fixed Cryptopia fetchOpenOrders issue, #192
  • Added .hasPublicAPI / .hasPrivateAPI properties to all derived exchanges
  • Added support for a new exchange: ACX (Australia)
  • Fixed Bitflyer's private GET APIs, #187
  • BitBays exchange was renamed to MixCoins, now operating in UK and Hong Kong
  • Removed support for BTCe exchange (was shut down earlier)
  • Fixed float formatting issue, #185
  • Fixed side issue with Bitflyer parseTrade, #184
  • Fixed fetchOpenOrders amount/symbol with Bittrex and Poloniex #183
  • Fixed Bitfinex DASH balance issue, #178
  • Added missing ETH and BCH markets to BTCChina, #175
  • BitBays ceased operation in China

BitBays ceased operation

  • Added support for HitBTC v2 API, #172
  • Unified most of fetchOHLCV implementations where available, related commits, #169
  • Added initial support for Bitfinex v2 API, #154
  • Added git release tags on Travis CI, #151

Version 1.6.x 2017-09-03

  • Added experimental fetchOHLCV implementations, #169
  • Unified most of fetchTrades returns, related commits
  • Added experimental unified withdraw () method to Bitfinex, #167
  • Added examples/js/basic-chart.js and examples/py/basic-chart.py
  • Changed fetchBalance to floats, #166
  • Added handling of InsufficientFunds for HitBTC #164
  • Prepared for an API update on Bitfinex #154
  • Changed order type handling for margin orders on Bitfinex, #130, #157
  • Added experimental fetchClosedOrders, fetchOpenOrders to Zaif, #71
  • Fixed BlinkTrade createOrder response
  • Fixed Zaif BCH balance issue, #156
  • Added handling for vwap == null in coinfloor tickers
  • Moved the docs from GitHub wiki into the master branch inside the repository, #134, #137
  • Added extra params to all fetchTrades() implementations, #135
  • Fixed HitBTC issue with overrided nonce vs clientOrderId, #155
  • Added experimental fetchOrder to Kraken, #71, #102
  • Added order_status endpoint to Bitstamp, #148

Version 1.5.x 2017-08-24

  • Added support for a new exchange: OKEX (China, US)
  • Fixed Kraken KeyError: 'txid' exception, #143
  • Added hasFetchTickers property to indicate method availability #145
  • Added support for a new exchange: Binance (China) #142
  • Fixed asyncio Unclosed client session warning in Python 3.5+ 139
  • Fixed asyncio TypeError: must be str, not bytes issue in Python 3.5+ with GDAX, Bitfinex and Kraken 139
  • Python package now includes a bdist wheel (binary distribution for a faster install), #136
  • Fixed market orders for OKCoin, #138
  • Added fetchMyOpenOrders to Poloniex and Bittrex, #102
  • Fixed exchange.version property in Python, #126
  • Added initial async/await support to Python 3.5+, #7
  • Fixed HitBTC cancel_order issue with clientOrderId vs orderId, #125
  • Fixed HitBTC price formatting issue, #122
  • Added support for a new exchange: Cryptopia (New Zealand), #119, #123
  • Fixed Yobit low price in exponential format, #122
  • Fixed Bitflyer private API, #121
  • Added new Bitstamp markets: ETH/USD, ETH/EUR and ETH/BTC, #120
  • Added parameterization to unified fetchTrades, #118
  • Added parseOHLCVs, parseOLHCV base methods
  • Added experimental unified fetchOHLCV to GDAX
  • Added experimental unified fetchOHLCV method to OKCoin

Version 1.4.x 2017-08-17

  • Added unified fetchOrder to Bittrex and Liqui, #116
  • Fixed Bter createOrder, #115
  • Added Browser Bundle for use with the <script> tag, served from the unpkg CDN
  • Refactored imports / exports handling, making it compatible with JavaScript module bundlers
  • Added initial support for a new exchange:, coinfloor UK (still under development)
  • Isolated code genome into ccxt.js, ccxt.php and ccxt.py, added build folder for generated files
  • Fixed Bter BCC vs BCH in fetchTickers, #83
  • Fixed Python byte-encoding with Gemini, #30, #113
  • Added experimental fetchOrders () workaround and other private methods for Poloniex (WIP), #102
  • Python pip is now cached in Travis CI, #108
  • Tox is now enforcing Python PEP8 with flake8 upon each build in Travis CI, #107
  • Added ETH markets to OKCoin USD, #103
  • Python codebase is now PEP8-conformant, #104, #106
  • Unified createOrder () return, #94
  • Started work on orders/trades unification, #71, #102
  • Added support for a new exchange: BTC Markets (Australia)
  • Updated CONTRIBUTING guidelines
  • Added a new ad-hoc test-frontend to run individual tests of all exchanges in all languages in parallel, see How To Build & Run Tests On Your Local Machine
  • Started adding fetchTickers () (all at once) where applicable, #7
  • Fixed Bittrex used/pending balance, #91

Version 1.3.x 2017-08-08

- Version 1.3.x is backward incompatible with previous versions due to a major renaming in the code
  • Renamed basic elements for consistency, this change is backward-incompatible, #89
    • renamed (M|m)arket[s] → (E|e)xchange[s] everywhere in code, tests, examples and docs
    • renamed (P|p)roduct[s] → (M|m)arket[s] everywhere as well
  • Added optional substituteCommonCurrencyCodes exchange parameter (true by default)
  • Fixed HitBTC string/float/decimal conversions, #88
  • Initial Bitcoin Cash support (preferred BCH to BCC), #83
  • Fixed Kraken BTC balance, #82
  • Added additional extra params to fetchOrderBook to control the level of order book aggregation detail, #84
  • Reworked exception hierarchy and error handling for unification
  • Fixed CHBTC missing bid/ask handling in order books for certain symbols

Version 1.2.x 2017-08-01

  • Fixed Gatecoin private API body in GET-requests, #80
  • Added optional userAgent property, #67
  • Balance APIs unified, #36
  • Added auto product loading, users forget to preload them manually, #57, #68, #69
  • Added missing last field to Poloniex tickers, #75
  • Fixed CHBTC fetchOrder, #74
  • Removed obsolete crypto dependency (switched to crypto-js completely), #23, #52
  • New tests system that launches individual market tests in parallel (now running 3 minutes instead of 20)
  • BTC-e shutdown

BTCe shutdown

  • Fixed a typo in Python examples, #65
  • Fixed Yunbi and CHBTC orders, #62, #63
  • Fixed missing Kraken balance currencies, #60
  • Fixed Kraken EOrder:Trading agreement required, fixed support for custom order params, #58
  • Coingi exchange support added
  • Added basic error handling and exceptions for connectivity / auth errors
  • Switched major version to 1.x.x
  • Fixed Yunbi private API, #55
  • Gatecoin exchange added, #54
  • Yunbi exchange added, #50
  • CHBTC exchange added, #50
  • Added JavaScript, Python and PHP examples
  • Added missing LTC/USD, LTC/EUR, LTC/BTC pairs to Bitstamp, #48
  • Fixed reversed pairs for Poloniex, #46
  • BL3P exchange support added, #44
  • Fixed Bittrex load_products method, #43
  • Fixed a typo in bitfinex ocoorder parameter, #38
  • Fixed GDAX orders, #35
  • Added missing method param to BTC-e private API, #33
  • Fixed multiple auth errors due to the missing .encode () in Python:
  • Added __version__ to Python bindings, #25
  • Fixed multiple auth errors, #24
  • CoinMarketCap API support added (not an exchange), #22
  • Fixed GDAX API minor errors, #20
  • Fixed Bitfinex private API, #19
  • Added products_by_id and symbols market properties, #18
  • Fixed Python 3.4.5 compatibility, #14
  • Fixed DSH/DASH inconsistency with HitBTC and BTC-e, #12
  • Fixed missing bid/ask handling in Liqui (same API as BTC-e), #11
  • Fixed bid/ask inconsistency with BTC-e, #10
  • Reworked unified order APIs (removed unnecessary methods), #9
  • Liqui exchange support added, #8
  • Bter exchange support added, #8
  • Livecoin exchange support added, #8
  • Added a markets variable for listing exchange ids programmatically, #6
  • Fixed ANXPRO ticker API in Python, #5
  • Fixed pairs inconsistencies across markets, #4
  • Orderbook APIs unified, #3
  • Ticker APIs unified
  • Fixed GDAX fetch_trades, #2