CCXT – CryptoCurrency eXchange Trading Library
btc·@aser1111·
0.000 HBDCCXT – CryptoCurrency eXchange Trading Library
<html> <p><br></p> <p><a href="https://github.com/ccxt/ccxt">Code</a><a href="https://github.com/ccxt/ccxt/issues"> Issues 47</a><a href="https://github.com/ccxt/ccxt/pulls"> Pull requests 20</a><a href="https://github.com/ccxt/ccxt/projects"> Projects 0</a><a href="https://github.com/ccxt/ccxt/wiki"> Wiki</a><a href="https://github.com/ccxt/ccxt/pulse"> Insights</a>A JavaScript / Python / PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges<a href="https://github.com/topics/altcoin">altcoin</a><a href="https://github.com/topics/api">api</a><a href="https://github.com/topics/arbitrage">arbitrage</a><a href="https://github.com/topics/bitcoin">bitcoin</a><a href="https://github.com/topics/bot">bot</a><a href="https://github.com/topics/cryptocurrency">cryptocurrency</a><a href="https://github.com/topics/crypto">crypto</a><a href="https://github.com/topics/e-commerce">e-commerce</a><a href="https://github.com/topics/ethereum">ethereum</a><a href="https://github.com/topics/exchange">exchange</a><a href="https://github.com/topics/invest">invest</a><a href="https://github.com/topics/library">library</a><a href="https://github.com/topics/strategy">strategy</a><a href="https://github.com/topics/trading">trading</a><a href="https://github.com/topics/btc">btc</a><a href="https://github.com/topics/eth">eth</a><a href="https://github.com/topics/trade">trade</a><a href="https://github.com/topics/merchant">merchant</a><a href="https://github.com/topics/market-data">market-data</a></p> <ul> <li><a href="https://github.com/ccxt/ccxt/commits/master">9,251 commits</a></li> <li><a href="https://github.com/ccxt/ccxt/branches">7 branches</a></li> <li><a href="https://github.com/ccxt/ccxt/releases">1,442 releases</a></li> <li><a href="https://github.com/ccxt/ccxt/graphs/contributors">93 contributors</a></li> <li><a href="https://github.com/ccxt/ccxt/blob/master/LICENSE.txt">MIT</a></li> </ul> <ol> <li><a href="https://github.com/ccxt/ccxt/search?l=javascript">JavaScript 59.1%</a></li> <li><a href="https://github.com/ccxt/ccxt/search?l=python">Python 26.1%</a></li> <li><a href="https://github.com/ccxt/ccxt/search?l=php">PHP 14.8%</a></li> </ol> <p>JavaScriptPythonPHPClone or download Create new file<a href="https://github.com/ccxt/ccxt/upload/master">Upload files</a><a href="https://github.com/ccxt/ccxt/find/master">Find file</a><em>Branch:</em> master <a href="https://github.com/ccxt/ccxt/pull/new/master">New pull request</a>Latest commit <a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">a31be29</a> 42 minutes ago Travis CI <a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a> …<a href="https://github.com/ccxt/ccxt/tree/master/build">build</a><a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a>42 minutes ago<a href="https://github.com/ccxt/ccxt/tree/master/doc">doc</a><a href="https://github.com/ccxt/ccxt/commit/d2013f0e657fa3637542c54b1699406d736cbfc2">1.10.706</a>4 hours ago<a href="https://github.com/ccxt/ccxt/tree/master/examples">examples</a><a href="https://github.com/ccxt/ccxt/commit/81a42610cff2dd56f31ce55b6e9c0def3dad8010">cli: now handles 'params' arg</a>2 days ago<a href="https://github.com/ccxt/ccxt/tree/master/js">js</a><a href="https://github.com/ccxt/ccxt/commit/6a7da2ddb435fce06d4f4c59b2a53e9acc2ae26e">Use the correct fetch for ServiceWorker</a>2 hours ago<a href="https://github.com/ccxt/ccxt/tree/master/php">php</a><a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a>42 minutes ago<a href="https://github.com/ccxt/ccxt/tree/master/python">python</a><a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a>42 minutes ago<a href="https://github.com/ccxt/ccxt/tree/master/wiki">wiki</a><a href="https://github.com/ccxt/ccxt/commit/d2013f0e657fa3637542c54b1699406d736cbfc2">1.10.706</a>4 hours ago<a href="https://github.com/ccxt/ccxt/blob/master/.eslintrc">.eslintrc</a><a href="https://github.com/ccxt/ccxt/commit/840cad02ab77d95d616aca5f21d82f6d1f49bbcd">eslint: allow symbol to be optional arg</a>2 hours ago<a href="https://github.com/ccxt/ccxt/blob/master/.gitattributes">.gitattributes</a><a href="https://github.com/ccxt/ccxt/commit/67a6777b5f4a5fd0560a404e23e184a7c7e0ec65">eol=lf in .gitattributes</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/.gitignore">.gitignore</a><a href="https://github.com/ccxt/ccxt/commit/1bc54e297762ae4857843de5fa3b3e06f91e7d65">.gitignore: ignore vendor (PHP)</a>28 days ago<a href="https://github.com/ccxt/ccxt/blob/master/.npmignore">.npmignore</a><a href="https://github.com/ccxt/ccxt/commit/9ed1237bd23411b588b63556b459cec12a58c741">added python and php to npmignore to minimize the footprint</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/.travis.yml">.travis.yml</a><a href="https://github.com/ccxt/ccxt/commit/a936224b87213b2a39c7a2e9beb53d9871f7d1d9">travis does not want to upload to pypi legacy url</a>5 days ago<a href="https://github.com/ccxt/ccxt/blob/master/CHANGELOG.md">CHANGELOG.md</a><a href="https://github.com/ccxt/ccxt/commit/613bffde2aefa1be1c31f2df8d4d27f4c23050fb">updated changelog</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md">CONTRIBUTING.md</a><a href="https://github.com/ccxt/ccxt/commit/94ad870f5912e234fdb98ff13a39e8b076d584a0">minor corrections to CONTRIBUTING.md</a>2 days ago<a href="https://github.com/ccxt/ccxt/blob/master/ISSUE_TEMPLATE.md">ISSUE_TEMPLATE.md</a><a href="https://github.com/ccxt/ccxt/commit/3955175453e08c13b0b8f1f1f7c194a4d00436c5">minor edit to ISSUE_TEMPLATE.md</a>3 days ago<a href="https://github.com/ccxt/ccxt/blob/master/LICENSE.txt">LICENSE.txt</a><a href="https://github.com/kroitor/ccxt/pull/106">#106</a> <a href="https://github.com/ccxt/ccxt/commit/0a76c09070bc78f802c41f951443f091089baa5c">removed whitespace from LICENSE.txt</a>5 months ago<a href="https://github.com/ccxt/ccxt/blob/master/README.md">README.md</a><a href="https://github.com/ccxt/ccxt/commit/d2013f0e657fa3637542c54b1699406d736cbfc2">1.10.706</a>4 hours ago<a href="https://github.com/ccxt/ccxt/blob/master/appveyor.yml">appveyor.yml</a><a href="https://github.com/ccxt/ccxt/commit/237be645ecef507464b19f80409bbfca2658fa42">PHP stuff for appveyor</a>5 days ago<a href="https://github.com/ccxt/ccxt/blob/master/ccxt.browser.js">ccxt.browser.js</a><a href="https://github.com/ccxt/ccxt/commit/f8e17356bf75267cad29547e62de4b148bed1cbf">removed references to ccxt.es5.js from anywhere I could find (example…</a>4 months ago<a href="https://github.com/ccxt/ccxt/blob/master/ccxt.d.ts">ccxt.d.ts</a><a href="https://github.com/ccxt/ccxt/commit/ea85be932071891fbf0bb2001dee3b1c2be941e3">1.10.676</a>2 days ago<a href="https://github.com/ccxt/ccxt/blob/master/ccxt.js">ccxt.js</a><a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a>42 minutes ago<a href="https://github.com/ccxt/ccxt/blob/master/ccxt.php">ccxt.php</a><a href="https://github.com/ccxt/ccxt/commit/c9c153fa2978a8cecc07f17a539de1e94272af99">ccxt: drop unused</a>25 days ago<a href="https://github.com/ccxt/ccxt/blob/master/composer.json">composer.json</a><a href="https://github.com/ccxt/ccxt/commit/b1fd5eb4cae4498a9b4b3334460b348bcf789210">fix</a> <a href="https://github.com/ccxt/ccxt/pull/876">#876</a><a href="https://github.com/ccxt/ccxt/commit/b1fd5eb4cae4498a9b4b3334460b348bcf789210">, fix#862, fix#891</a>27 days ago<a href="https://github.com/ccxt/ccxt/blob/master/composer.lock">composer.lock</a><a href="https://github.com/ccxt/ccxt/commit/2cbc55abf27ff5efc1e00ec24dc86d5aa3cdd3f8">composer: PSR4 autoloader</a>28 days ago<a href="https://github.com/ccxt/ccxt/blob/master/convert-md-2-rst">convert-md-2-rst</a><a href="https://github.com/ccxt/ccxt/commit/948210b97d2b89fd1fe11718d2a7d2e4ffcbd8cc">vss paths + refactoring</a>3 months ago<a href="https://github.com/ccxt/ccxt/blob/master/countries.js">countries.js</a><a href="https://github.com/ccxt/ccxt/commit/dda36e59250c405ada8e702b6471f6952f9c1922">vc shorter definition</a>a month ago<a href="https://github.com/ccxt/ccxt/blob/master/example.js">example.js</a><a href="https://github.com/ccxt/ccxt/commit/26c8d7ee11a92ccfd00641ddb8e9c27022ce05ab">added clarifying comment about runkit to example.js</a>9 days ago<a href="https://github.com/ccxt/ccxt/blob/master/export-exchanges.js">export-exchanges.js</a><a href="https://github.com/ccxt/ccxt/commit/25b9d1722183c67cf12e74c7259814c7ddb3311a">export-exchanges.js: fix due to path change</a>28 days ago<a href="https://github.com/ccxt/ccxt/blob/master/keys.json">keys.json</a><a href="https://github.com/ccxt/ccxt/commit/a5f586b3b955f3d0e918343b5dfa5db4044e6df3">Merge branch 'okerrors' of</a> <a href="https://github.com/ccxt/ccxt/commit/a5f586b3b955f3d0e918343b5dfa5db4044e6df3">https://github.com/mkutny/ccxt</a> <a href="https://github.com/ccxt/ccxt/commit/a5f586b3b955f3d0e918343b5dfa5db4044e6df3">into mkutny…</a>a day ago<a href="https://github.com/ccxt/ccxt/blob/master/package.json">package.json</a><a href="https://github.com/ccxt/ccxt/commit/a31be297528b479f841f3294c573c680ce4707b8">1.10.709</a>42 minutes ago<a href="https://github.com/ccxt/ccxt/blob/master/push-wiki.sh">push-wiki.sh</a><a href="https://github.com/ccxt/ccxt/commit/3bf40467f9ef89588c57371326e61efcc00652d7">updated repo urls in push*.sh</a>3 months ago<a href="https://github.com/ccxt/ccxt/blob/master/push.sh">push.sh</a><a href="https://github.com/ccxt/ccxt/commit/4d1b1be9ce76b5a5a8600ede27c7781f81187a27">should improve tag descriptions readbility</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/run-tests.js">run-tests.js</a><a href="https://github.com/ccxt/ccxt/commit/328adb84179973831716e53e622f6e2fa7d6c435">clear error logging for bitfinex gzipped responses</a> <a href="https://github.com/ccxt/ccxt/issues/441">#441</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/setup.cfg">setup.cfg</a><a href="https://github.com/ccxt/ccxt/commit/e25bd176e55f2b5575179559d2a113feabbcdee4">added tox flake8 cd .. and python bitfinex example</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/transpile.js">transpile.js</a><a href="https://github.com/ccxt/ccxt/commit/2e21ecd0190de83f5add46eb3c8aa41de316a291">binance fetchTickers → fetchBidsAsks, fetchFullTickers → fetchTickers</a> <a href="https://github.com/ccxt/ccxt/issues/1177">#…</a>2 hours ago<a href="https://github.com/ccxt/ccxt/blob/master/update-badges.js">update-badges.js</a><a href="https://github.com/ccxt/ccxt/commit/5d18c72c2f5b79fcdc105d055b4107e1b339202f">update-badges Windows</a> <a href="https://github.com/ccxt/ccxt/commit/5d18c72c2f5b79fcdc105d055b4107e1b339202f">fix</a> <a href="https://github.com/ccxt/ccxt/issues/445">#445</a>2 months ago<a href="https://github.com/ccxt/ccxt/blob/master/vss.js">vss.js</a><a href="https://github.com/ccxt/ccxt/commit/c9c153fa2978a8cecc07f17a539de1e94272af99">ccxt: drop unused</a>25 days ago</p> <h3>README.md</h3> <h1>CCXT – CryptoCurrency eXchange Trading Library</h1> <p> A JavaScript / Python / PHP library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.The <strong>CCXT</strong> 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 <strong>coders, developers, technically-skilled traders, data-scientists and financial analysts</strong> for building trading algorithms on top of it.Current feature list:</p> <ul> <li>support for many exchange markets, even more upcoming soon</li> <li>fully implemented public and private APIs for all exchanges</li> <li>all currencies, altcoins and symbols, prices, order books, trades, tickers, etc...</li> <li>optional normalized data for cross-exchange or cross-currency analytics and arbitrage</li> <li>an out-of-the box unified all-in-one API extremely easy to integrate</li> <li>works in Node 7.6+, Python 2 and 3, PHP 5.3+, web browsers</li> </ul> <p><a href="https://github.com/ccxt/ccxt">ccxt on GitHub</a> | <a href="https://github.com/ccxt/ccxt#install">Install</a> | <a href="https://github.com/ccxt/ccxt#usage">Usage</a> | <a href="https://github.com/ccxt/ccxt/wiki">Manual</a> | <a href="https://github.com/ccxt/ccxt/tree/master/examples">Examples</a> | <a href="https://github.com/ccxt/ccxt/blob/master/CHANGELOG.md">Changelog</a> | <a href="https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md">Contributing</a></p> <h2>Supported Cryptocurrency Exchange Markets</h2> <p>The ccxt library currently supports the following 98 cryptocurrency exchange markets and trading APIs:idnameverdoccountries_1broker<a href="https://1broker.com/">1Broker</a>2<a href="https://1broker.com/?c=en/content/api-documentation">API</a>US_1btcxe<a href="https://1btcxe.com/">1BTCXE</a>*<a href="https://1btcxe.com/api-docs.php">API</a>Panamaacx<a href="https://acx.io/">ACX</a>2<a href="https://acx.io/documents/api_v2">API</a>Australiaallcoin<a href="https://www.allcoin.com/">Allcoin</a>1<a href="https://www.allcoin.com/About/APIReference">API</a>Canadaanxpro<a href="https://anxpro.com/">ANXPro</a>2<a href="http://docs.anxv2.apiary.io/">API</a>Japan, Singapore, Hong Kong, New Zealandbibox<a href="https://www.bibox.com/">Bibox</a>1<a href="https://github.com/Biboxcom/api_reference/wiki/home_en">API</a>China, US, South Koreabinance<a href="https://www.binance.com/">Binance</a>*<a href="https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md">API</a>Japanbit2c<a href="https://www.bit2c.co.il/">Bit2C</a>*<a href="https://www.bit2c.co.il/home/api">API</a>Israelbitbay<a href="https://bitbay.net/">BitBay</a>*<a href="https://bitbay.net/public-api">API</a>Poland, EUbitcoincoid<a href="https://www.bitcoin.co.id/">Bitcoin.co.id</a>1.7<a href="https://vip.bitcoin.co.id/downloads/BITCOINCOID-API-DOCUMENTATION.pdf">API</a>Indonesiabitfinex<a href="https://www.bitfinex.com/">Bitfinex</a>1<a href="https://bitfinex.readme.io/v1/docs">API</a>British Virgin Islandsbitfinex2<a href="https://www.bitfinex.com/">Bitfinex v2</a>2<a href="https://bitfinex.readme.io/v2/docs">API</a>British Virgin Islandsbitflyer<a href="https://bitflyer.jp/">bitFlyer</a>1<a href="https://bitflyer.jp/API">API</a>Japanbithumb<a href="https://www.bithumb.com/">Bithumb</a>*<a href="https://www.bithumb.com/u1/US127">API</a>South Koreabitlish<a href="https://bitlish.com/">Bitlish</a>1<a href="https://bitlish.com/api">API</a>UK, EU, Russiabitmarket<a href="https://www.bitmarket.pl/">BitMarket</a>*<a href="https://www.bitmarket.net/docs.php?file=api_public.html">API</a>Poland, EUbitmex<a href="https://www.bitmex.com/">BitMEX</a>1<a href="https://www.bitmex.com/app/apiOverview">API</a>Seychellesbitso<a href="https://bitso.com/">Bitso</a>3<a href="https://bitso.com/api_info">API</a>Mexicobitstamp<a href="https://www.bitstamp.net/">Bitstamp</a>2<a href="https://www.bitstamp.net/api">API</a>UKbitstamp1<a href="https://www.bitstamp.net/">Bitstamp v1</a>1<a href="https://www.bitstamp.net/api">API</a>UKbittrex<a href="https://bittrex.com/">Bittrex</a>1.1<a href="https://bittrex.com/Home/Api">API</a>USbl3p<a href="https://bl3p.eu/">BL3P</a>1<a href="https://github.com/BitonicNL/bl3p-api/tree/master/docs">API</a>Netherlands, EUbleutrade<a href="https://bleutrade.com/">Bleutrade</a>2<a href="https://bleutrade.com/help/API">API</a>Brazilbraziliex<a href="https://braziliex.com/">Braziliex</a>*<a href="https://braziliex.com/exchange/api.php">API</a>Brazilbtcbox<a href="https://www.btcbox.co.jp/">BtcBox</a>1<a href="https://www.btcbox.co.jp/help/asm">API</a>Japanbtcchina<a href="https://www.btcchina.com/">BTCChina</a>1<a href="https://www.btcchina.com/apidocs">API</a>Chinabtcexchange<a href="https://www.btcexchange.ph/">BTCExchange</a>*<a href="https://github.com/BTCTrader/broker-api-docs">API</a>Philippinesbtcmarkets<a href="https://btcmarkets.net/">BTC Markets</a>*<a href="https://github.com/BTCMarkets/API">API</a>Australiabtctradeua<a href="https://btc-trade.com.ua/">BTC Trade UA</a>*<a href="https://docs.google.com/document/d/1ocYA0yMy_RXd561sfG3qEPZ80kyll36HUxvCRe5GbhE/edit">API</a>Ukrainebtcturk<a href="https://www.btcturk.com/">BTCTurk</a>*<a href="https://github.com/BTCTrader/broker-api-docs">API</a>Turkeybtcx<a href="https://btc-x.is/">BTCX</a>1<a href="https://btc-x.is/custom/api-document.html">API</a>Iceland, US, EUbter<a href="https://bter.com/">Bter</a>2<a href="https://bter.com/api2">API</a>British Virgin Islands, Chinabxinth<a href="https://bx.in.th/">BX.in.th</a>*<a href="https://bx.in.th/info/api">API</a>Thailandccex<a href="https://c-cex.com/">C-CEX</a>*<a href="https://c-cex.com/?id=api">API</a>Germany, EUcex<a href="https://cex.io/">CEX.IO</a>*<a href="https://cex.io/cex-api">API</a>UK, EU, Cyprus, Russiachbtc<a href="https://trade.chbtc.com/api">CHBTC</a>1<a href="https://www.chbtc.com/i/developer">API</a>Chinachilebit<a href="https://chilebit.net/">ChileBit</a>1<a href="https://blinktrade.com/docs">API</a>Chilecoincheck<a href="https://coincheck.com/">coincheck</a>*<a href="https://coincheck.com/documents/exchange/api">API</a>Japan, Indonesiacoinexchange<a href="https://www.coinexchange.io/">CoinExchange</a>*<a href="https://coinexchangeio.github.io/slate/">API</a>India, Japan, South Korea, Vietnam, UScoinfloor<a href="https://www.coinfloor.co.uk/">coinfloor</a>*<a href="https://github.com/coinfloor/api">API</a>UKcoingi<a href="https://coingi.com/">Coingi</a>*<a href="http://docs.coingi.apiary.io/">API</a>Panama, Bulgaria, China, UScoinmarketcap<a href="https://coinmarketcap.com/">CoinMarketCap</a>1<a href="https://coinmarketcap.com/api">API</a>UScoinmate<a href="https://coinmate.io/">CoinMate</a>*<a href="http://docs.coinmate.apiary.io/">API</a>UK, Czech Republic, EUcoinsecure<a href="https://coinsecure.in/">Coinsecure</a>1<a href="https://api.coinsecure.in/">API</a>Indiacoinspot<a href="https://www.coinspot.com.au/">CoinSpot</a>*<a href="https://www.coinspot.com.au/api">API</a>Australiacryptopia<a href="https://www.cryptopia.co.nz/">Cryptopia</a>*<a href="https://www.cryptopia.co.nz/Forum/Category/45">API</a>New Zealanddsx<a href="https://dsx.uk/">DSX</a>3<a href="https://api.dsx.uk/">API</a>UKexmo<a href="https://exmo.me/">EXMO</a>1<a href="https://exmo.me/en/api_doc">API</a>Spain, Russiaflowbtc<a href="https://trader.flowbtc.com/">flowBTC</a>1<a href="http://www.flowbtc.com.br/api/">API</a>Brazilfoxbit<a href="https://foxbit.exchange/">FoxBit</a>1<a href="https://blinktrade.com/docs">API</a>Brazilfybse<a href="https://www.fybse.se/">FYB-SE</a>*<a href="http://docs.fyb.apiary.io/">API</a>Swedenfybsg<a href="https://www.fybsg.com/">FYB-SG</a>*<a href="http://docs.fyb.apiary.io/">API</a>Singaporegatecoin<a href="https://gatecoin.com/">Gatecoin</a>*<a href="https://gatecoin.com/api">API</a>Hong Konggateio<a href="https://gate.io/">Gate.io</a>2<a href="https://gate.io/api2">API</a>Chinagdax<a href="https://www.gdax.com/">GDAX</a>*<a href="https://docs.gdax.com/">API</a>USgemini<a href="https://gemini.com/">Gemini</a>1<a href="https://docs.gemini.com/rest-api">API</a>USgetbtc<a href="https://getbtc.org/">GetBTC</a>*<a href="https://getbtc.org/api-docs.php">API</a>St. Vincent & Grenadines, Russiahitbtc<a href="https://hitbtc.com/">HitBTC</a>1<a href="https://github.com/hitbtc-com/hitbtc-api/blob/master/APIv1.md">API</a>UKhitbtc2<a href="https://hitbtc.com/">HitBTC v2</a>2<a href="https://api.hitbtc.com/">API</a>UKhuobi<a href="https://www.huobi.com/">Huobi</a>3<a href="https://github.com/huobiapi/API_Docs_en/wiki">API</a>Chinahuobicny<a href="https://www.huobi.com/">Huobi CNY</a>1<a href="https://github.com/huobiapi/API_Docs/wiki/REST_api_reference">API</a>Chinahuobipro<a href="https://www.huobi.pro/">Huobi Pro</a>1<a href="https://github.com/huobiapi/API_Docs/wiki/REST_api_reference">API</a>Chinaindependentreserve<a href="https://www.independentreserve.com/">Independent Reserve</a>*<a href="https://www.independentreserve.com/API">API</a>Australia, New Zealanditbit<a href="https://www.itbit.com/">itBit</a>1<a href="https://api.itbit.com/docs">API</a>USjubi<a href="https://www.jubi.com/">jubi.com</a>1<a href="https://www.jubi.com/help/api.html">API</a>Chinakraken<a href="https://www.kraken.com/">Kraken</a>0<a href="https://www.kraken.com/en-us/help/api">API</a>USkucoin<a href="https://kucoin.com/">Kucoin</a>1<a href="https://kucoinapidocs.docs.apiary.io/">API</a>Hong Kongkuna<a href="https://kuna.io/">Kuna</a>2<a href="https://kuna.io/documents/api">API</a>Ukrainelakebtc<a href="https://www.lakebtc.com/">LakeBTC</a>2<a href="https://www.lakebtc.com/s/api_v2">API</a>USliqui<a href="https://liqui.io/">Liqui</a>3<a href="https://liqui.io/api">API</a>Ukrainelivecoin<a href="https://www.livecoin.net/">LiveCoin</a>*<a href="https://www.livecoin.net/api?lang=en">API</a>US, UK, Russialuno<a href="https://www.luno.com/">luno</a>1<a href="https://www.luno.com/en/api">API</a>UK, Singapore, South Africalykke<a href="https://www.lykke.com/">Lykke</a>1<a href="https://hft-api.lykke.com/swagger/ui/">API</a>Switzerlandmercado<a href="https://www.mercadobitcoin.com.br/">Mercado Bitcoin</a>3<a href="https://www.mercadobitcoin.com.br/api-doc">API</a>Brazilmixcoins<a href="https://mixcoins.com/">MixCoins</a>1<a href="https://mixcoins.com/help/api/">API</a>UK, Hong Kongnova<a href="https://novaexchange.com/">Novaexchange</a>2<a href="https://novaexchange.com/remote/faq">API</a>Tanzaniaokcoincny<a href="https://www.okcoin.cn/">OKCoin CNY</a>1<a href="https://www.okcoin.cn/rest_getStarted.html">API</a>Chinaokcoinusd<a href="https://www.okcoin.com/">OKCoin USD</a>1<a href="https://www.okcoin.com/rest_getStarted.html">API</a>China, USokex<a href="https://www.okex.com/">OKEX</a>1<a href="https://www.okex.com/rest_getStarted.html">API</a>China, USpaymium<a href="https://www.paymium.com/">Paymium</a>1<a href="https://github.com/Paymium/api-documentation">API</a>France, EUpoloniex<a href="https://poloniex.com/">Poloniex</a>*<a href="https://poloniex.com/support/api/">API</a>USqryptos<a href="https://www.qryptos.com/">QRYPTOS</a>2<a href="https://developers.quoine.com/">API</a>China, Taiwanquadrigacx<a href="https://www.quadrigacx.com/">QuadrigaCX</a>2<a href="https://www.quadrigacx.com/api_info">API</a>Canadaquoine<a href="https://www.quoine.com/">QUOINE</a>2<a href="https://developers.quoine.com/">API</a>Japan, Singapore, Vietnamsouthxchange<a href="https://www.southxchange.com/">SouthXchange</a>*<a href="https://www.southxchange.com/Home/Api">API</a>Argentinasurbitcoin<a href="https://surbitcoin.com/">SurBitcoin</a>1<a href="https://blinktrade.com/docs">API</a>Venezuelatherock<a href="https://therocktrading.com/">TheRockTrading</a>1<a href="https://api.therocktrading.com/doc/v1/index.html">API</a>Maltatidex<a href="https://tidex.com/">Tidex</a>3<a href="https://tidex.com/public-api">API</a>UKurdubit<a href="https://urdubit.com/">UrduBit</a>1<a href="https://blinktrade.com/docs">API</a>Pakistanvaultoro<a href="https://www.vaultoro.com/">Vaultoro</a>1<a href="https://api.vaultoro.com/">API</a>Switzerlandvbtc<a href="https://vbtc.exchange/">VBTC</a>1<a href="https://blinktrade.com/docs">API</a>Vietnamvirwox<a href="https://www.virwox.com/">VirWoX</a>*<a href="https://www.virwox.com/developers.php">API</a>Austria, EUwex<a href="https://wex.nz/">WEX</a>3<a href="https://wex.nz/api/3/docs">API</a>New Zealandxbtce<a href="https://www.xbtce.com/">xBTCe</a>1<a href="https://www.xbtce.com/tradeapi">API</a>Russiayobit<a href="https://www.yobit.net/">YoBit</a>3<a href="https://www.yobit.net/en/api/">API</a>Russiayunbi<a href="https://yunbi.com/">YUNBI</a>2<a href="https://yunbi.com/documents/api/guide">API</a>Chinazaif<a href="https://zaif.jp/">Zaif</a>1<a href="http://techbureau-api-document.readthedocs.io/ja/latest/index.html">API</a>Japanzb<a href="https://trade.zb.com/api">ZB</a>1<a href="https://www.zb.com/i/developer">API</a>ChinaThe list above is updated frequently, new crypto markets, altcoin exchanges, bug fixes, API endpoints are introduced and added on a regular basis. See the <a href="https://github.com/ccxt/ccxt/wiki">Manual</a> 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 <a href="https://github.com/ccxt/ccxt/blob/master/LICENSE.txt">MIT license</a>, 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.</p> <h2>Install</h2> <p>The easiest way to install the ccxt library is to use builtin package managers:</p> <ul> <li><a href="http://npmjs.com/package/ccxt">ccxt in <strong>NPM</strong></a> (JavaScript / Node v7.6+)</li> <li><a href="https://pypi.python.org/pypi/ccxt">ccxt in <strong>PyPI</strong></a> (Python 2 and 3)</li> <li><a href="https://packagist.org/packages/ccxt/ccxt">ccxt in <strong>Packagist/Composer</strong></a> (PHP 5.3+)</li> </ul> <p>This library is shipped as an all-in-one module implementation with minimalistic dependencies and requirements:</p> <ul> <li><a href="https://github.com/ccxt/ccxt/blob/master/js/"><code>js/</code></a> in JavaScript</li> <li><a href="https://github.com/ccxt/ccxt/blob/master/python/"><code>python/</code></a> in Python (generated from JS)</li> <li><a href="https://github.com/ccxt/ccxt/blob/master/php/"><code>php/</code></a> in PHP (generated from JS)</li> </ul> <p>You can also clone it into your project directory from <a href="https://github.com/ccxt/ccxt">ccxt GitHub repository</a>:</p> <pre><code>git clone https://github.com/ccxt/ccxt.git</code></pre> <p>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.</p> <h3>JavaScript (NPM)</h3> <p>JavaScript version of CCXT works both in Node and web browsers. Requires ES6 and <code>async/await</code> syntax support (Node 7.6.0+). When compiling with Webpack and Babel, make sure it is <a href="https://github.com/ccxt/ccxt/issues/225#issuecomment-331905178">not excluded</a> in your <code>babel-loader</code> config.<a href="http://npmjs.com/package/ccxt">ccxt in <strong>NPM</strong></a></p> <pre><code>npm install ccxt</code></pre> <pre><code>var ccxt = require ('ccxt')<br> <br> <br> <br> console.log (ccxt.exchanges) // print all available exchanges</code></pre> <h3>JavaScript (for use with the <code><script></code> tag):</h3> <p><a href="https://unpkg.com/ccxt">All-in-one browser bundle</a> (dependencies included), served from <a href="https://unpkg.com/">unpkg CDN</a>, which is a fast, global content delivery network for everything on NPM.</p> <pre><code><script type="text/javascript" src="https://unpkg.com/ccxt"></script></code></pre> <p>Creates a global <code>ccxt</code> object:</p> <pre><code>console.log (ccxt.exchanges) // print all available exchanges</code></pre> <h3>Python</h3> <p><a href="https://pypi.python.org/pypi/ccxt">ccxt in <strong>PyPI</strong></a></p> <pre><code>pip install ccxt</code></pre> <pre><code>import ccxt<br> <br> print(ccxt.exchanges) # print a list of all available exchange classes</code></pre> <p>The library supports concurrent asynchronous mode with asyncio and async/await in Python 3.5+</p> <pre><code>import ccxt.async as ccxt # link against the asynchronous version of ccxt</code></pre> <h3>PHP</h3> <p>The ccxt library in PHP: <a href="https://raw.githubusercontent.com/ccxt/ccxt/master/ccxt.php"><code><strong>ccxt.php</strong></code></a>It requires common PHP modules:</p> <ul> <li>cURL</li> <li>mbstring (using UTF-8 is highly recommended)</li> <li>PCRE</li> <li>iconv</li> </ul> <pre><code>include "ccxt.php";<br> <br> var_dump (\ccxt\Exchange::$exchanges); // print a list of all available exchange classes</code></pre> <h2>Documentation</h2> <p>Read the <a href="https://github.com/ccxt/ccxt/wiki">Manual</a> for more details.</p> <h2>Usage</h2> <h3>Intro</h3> <p>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:</p> <ul> <li>market data</li> <li>instruments/trading pairs</li> <li>price feeds (exchange rates)</li> <li>order books</li> <li>trade history</li> <li>tickers</li> <li>OHLC(V) for charting</li> <li>other public endpoints</li> </ul> <p>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:</p> <ul> <li>manage personal account info</li> <li>query account balances</li> <li>trade by making market and limit orders</li> <li>deposit and withdraw fiat and crypto funds</li> <li>query personal orders</li> <li>get ledger history</li> <li>transfer funds between accounts</li> <li>use merchant services</li> </ul> <p>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.</p> <pre><code>// both of these notations work in JavaScript/Python/PHP<br> <br> exchange.methodName () // camelcase pseudocode<br> <br> exchange.method_name () // underscore pseudocode<br> <br> </code></pre> <p>Read the <a href="https://github.com/ccxt/ccxt/wiki">Manual</a> for more details.</p> <h3>JavaScript</h3> <pre><code>'use strict';<br> <br> const ccxt = require ('ccxt');<br> <br> <br> <br> (async function () {<br> <br> let kraken = new ccxt.kraken ()<br> <br> let bitfinex = new ccxt.bitfinex ({ verbose: true })<br> <br> let huobi = new ccxt.huobi ()<br> <br> let okcoinusd = new ccxt.okcoinusd ({<br> <br> apiKey: 'YOUR_PUBLIC_API_KEY',<br> <br> secret: 'YOUR_SECRET_PRIVATE_KEY',<br> <br> })<br> <br> <br> <br> console.log (kraken.id, await kraken.loadMarkets ())<br> <br> console.log (bitfinex.id, await bitfinex.loadMarkets ())<br> <br> console.log (huobi.id, await huobi.loadMarkets ())<br> <br> <br> <br> console.log (kraken.id, await kraken.fetchOrderBook (kraken.symbols[0]))<br> <br> console.log (bitfinex.id, await bitfinex.fetchTicker ('BTC/USD'))<br> <br> console.log (huobi.id, await huobi.fetchTrades ('ETH/CNY'))<br> <br> <br> <br> console.log (okcoinusd.id, await okcoinusd.fetchBalance ())<br> <br> <br> <br> // sell 1 BTC/USD for market price, sell a bitcoin for dollars immediately<br> <br> console.log (okcoinusd.id, await okcoinusd.createMarketSellOrder ('BTC/USD', 1))<br> <br> <br> <br> // buy 1 BTC/USD for $2500, you pay $2500 and receive ฿1 when the order is closed<br> <br> console.log (okcoinusd.id, await okcoinusd.createLimitBuyOrder ('BTC/USD', 1, 2500.00))<br> <br> <br> <br> // pass/redefine custom exchange-specific order params: type, amount, price or whatever<br> <br> // use a custom order type<br> <br> bitfinex.createLimitSellOrder ('BTC/USD', 1, 10, { 'type': 'trailing-stop' })<br> <br> }) ();</code></pre> <h3>Python</h3> <pre><code># coding=utf-8<br> <br> <br> <br> import ccxt<br> <br> <br> <br> hitbtc = ccxt.hitbtc({'verbose': True})<br> <br> bitmex = ccxt.bitmex()<br> <br> huobi = ccxt.huobi()<br> <br> exmo = ccxt.exmo({<br> <br> 'apiKey': 'YOUR_PUBLIC_API_KEY',<br> <br> 'secret': 'YOUR_SECRET_PRIVATE_KEY',<br> <br> })<br> <br> <br> <br> hitbtc_markets = hitbtc.load_markets()<br> <br> <br> <br> print(hitbtc.id, hitbtc_markets)<br> <br> print(bitmex.id, bitmex.load_markets())<br> <br> print(huobi.id, huobi.load_markets())<br> <br> <br> <br> print(hitbtc.fetch_order_book(hitbtc.symbols[0]))<br> <br> print(bitmex.fetch_ticker('BTC/USD'))<br> <br> print(huobi.fetch_trades('LTC/CNY'))<br> <br> <br> <br> print(exmo.fetch_balance())<br> <br> <br> <br> # sell one ฿ for market price and receive $ right now<br> <br> print(exmo.id, exmo.create_market_sell_order('BTC/USD', 1))<br> <br> <br> <br> # limit buy BTC/EUR, you pay €2500 and receive ฿1 when the order is closed<br> <br> print(exmo.id, exmo.create_limit_buy_order('BTC/EUR', 1, 2500.00))<br> <br> <br> <br> # pass/redefine custom exchange-specific order params: type, amount, price, flags, etc...<br> <br> kraken.create_market_buy_order('BTC/USD', 1, {'trading_agreement': 'agree'})</code></pre> <h3>PHP</h3> <pre><code>include 'ccxt.php';<br> <br> <br> <br> $poloniex = new \ccxt\poloniex ();<br> <br> $bittrex = new \ccxt\bittrex (array ('verbose' => true));<br> <br> $quoine = new \ccxt\quoine ();<br> <br> $zaif = new \ccxt\zaif (array (<br> <br> 'apiKey' => 'YOUR_PUBLIC_API_KEY',<br> <br> 'secret' => 'YOUR_SECRET_PRIVATE_KEY',<br> <br> ));<br> <br> <br> <br> $poloniex_markets = $poloniex->load_markets ();<br> <br> <br> <br> var_dump ($poloniex_markets);<br> <br> var_dump ($bittrex->load_markets ());<br> <br> var_dump ($quoine->load_markets ());<br> <br> <br> <br> var_dump ($poloniex->fetch_order_book ($poloniex->symbols[0]));<br> <br> var_dump ($bittrex->fetch_trades ('BTC/USD'));<br> <br> var_dump ($quoine->fetch_ticker ('ETH/EUR'));<br> <br> var_dump ($zaif->fetch_ticker ('BTC/JPY'));<br> <br> <br> <br> var_dump ($zaif->fetch_balance ());<br> <br> <br> <br> // sell 1 BTC/JPY for market price, you pay ¥ and receive ฿ immediately<br> <br> var_dump ($zaif->id, $zaif->create_market_sell_order ('BTC/JPY', 1));<br> <br> <br> <br> // buy BTC/JPY, you receive ฿1 for ¥285000 when the order closes<br> <br> var_dump ($zaif->id, $zaif->create_limit_buy_order ('BTC/JPY', 1, 285000));<br> <br> <br> <br> // set a custom user-defined id to your order<br> <br> $hitbtc->create_order ('BTC/USD', 'limit', 'buy', 1, 3000, array ('clientOrderId' => '123'));</code></pre> <h2>Contributing</h2> <p>Please read the <a href="https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md">CONTRIBUTING</a> document before making changes that you would like adopted in the code. Also, read the <a href="https://github.com/ccxt/ccxt/wiki">Manual</a> for more details.</p> <h2>Support Developer Team</h2> <p>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!</p> <h3>Sponsors</h3> <p><a href="https://opencollective.com/ccxt#sponsor">Become our sponsor</a> and get your logo on our Github page with a link to your site.</p> <h3>Supporters</h3> <p><a href="https://opencollective.com/ccxt#supporter">Become our supporter</a> with a monthly payment and get your nick/link on our GitHub page.</p> <h3>Backers</h3> <p><a href="https://opencollective.com/ccxt#backer">Become a backer</a> with a small monthly donation and help us continue our activities.</p> <h3><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTIMVweAjh7qkFhPDtQyR2czlrxnqttVqeST-TQJZDROohuyyK6og" width="276" height="183"/></h3> </html>