CCXT Cryptocurrency Trading Library Examples


To run the ccxt examples from any folder type one of the following commands in console.


JavaScript Examples

node path/to/example.js # substitute for actual filename here

bitcoin ascii chart


Python Examples


python path/to/ # substitute for actual filename here


PHP Examples

php -f path/to/example.php # substitute for actual filename here

See Also

The GDAX Trading Toolkit (GTT) – a trading toolkit developed by the GDAX team that integrates the CCXT library!

Enigma Catalyst – The major effort towards decentralized exchanges integrates ccxt!

Projects based on ccxt – A list of hundreds of ccxt-based projects by developers from all over the world!

Playing with CCXT in Google Colab – An article on how useful Colab can be for quick prototyping and testing your trading ideas with CCXT.

The Evolution of CCXT – An awesome Gource visualization video on YouTube! )

CC Power Analytics Part 1: How to get the data of the exchanges – The first part of a series of articles on cryptocurrency analytics.

Looking for arbitrage opportunies with ccxt – An article @steemit on getting arbitrage started with ccxt for crypto-arbitrage.

A n00bs Guide To Deep Cryptocurrency Trading – An article @ Medium on deep neural trading using ccxt for backend tasks.

A Video Crash-Course On Using CCXT – A series of awesome video tutorials on getting started with CCXT!

Let’s write a cryptocurrency bot – A multi-part advanced tutorial on a new cryptocurrency trading framework also integrating ccxt.

Experiments : Creating a Crypto Twitter Bot to Announce Newly Listed CryptoCoins – An article on how to integrate with CCXT and Twitter to get new currencies from exchanges automatically.

How to make your own trading bot – A tutorial on algortrading in Python.

Writing crypto trading bot in Python with Telegram and ccxt – A tutorial on programming a Telegram bot in Python with CCXT

Data science is eating the world — Here’s how you can start exploring it – An article on collecting and analyzing financial big data.

Chasing fake volume: a crypto-plague – An article @ Medium on trading volumes analysis.

CCXTが便利な理由!CCXTライブラリをインストールしよう – An article in Japanese on getting CCXT up and runining.

Bitflyerや各取引所の個別APIをCCXTライブラリ経由で直接利用する方法 – How to use Bitflyer and individual API of each exchange directly via the CCXT library.

CCXTライブラリでBitflyerに注文を出す方法をマスターする – Master placing orders on Bitflyer with the CCXT library.

CCXTでBitflyerに出した注文を管理・キャンセルする方法 – How to manage and cancel orders placed on Bitflyer with CCXT

Bitflyerの未約定の全注文をCCXTで一括でキャンセルする方法 – How to cancel all uncommitted orders of Bitflyer in bulk with CCXT

Python3とCCXTライブラリを用いたBitMEX自動売買bot作成Tips – An article in Japanese on getting started with CCXT and a few bot tips.

BitMEX自動売買Bot「MANA 1.0.1」の全て – An example of automatic BitMEX Bot MANA 1.0.1.

BitMEX 自動売買BOT開発 (API編) ① 開発環境の構築、APIライブラリの詳細、全APIマップ – An article on developing an automatic BitMEX trading bot.

仮想通貨トレード Bot 制作に便利な CCXT ライブラリに関する知見まとめ (Python 随時更新) – A summary on Python version of CCXT API in Japanese.

Python3とCCXTを使用して仮想通貨の自動売買プログラムを作る – Automatic cryptocurrency trading using Python 3 and CCXT

ccxtを使って裁定取引botを作ってみたらなぜか虚しくなった件 – An article in Japanese explaining the basics of programming an arbitrage bot with CCXT.

Python 3 / BitMEX の BOT を作ろう CCXT + BOT サンプルコード 〈基礎編〉 – A sample of basic BitMEX bot with CCXT in Python 3.

ccxtがbtcfxbot界隈でちょっと話題になっていたので使ってみた – Trying CCXT for a basic bot.

python異步加協程獲取比特幣市場信息 – An article in Chinese on using CCXT with Python.

数字货币量化交易1 【群友 Shadow 自制】ccxt 的python版本安装及使用入门 – Trading Digital Currencies 1: Installing and using the Python version of ccxt (video in Chinese)

数字货币量化交易2 【群友 林军 自制】ccxt Unified API命令详解及node版本使用演示 – Trading Digital Currencies 2: Using unified CCXT API (video in Chinese)

数字货币量化交易3 ccxt Custom API命令详解及node版本使用演示 – Trading Digital Currencies 3: Details on using custom exchange-specific implicit methods in ccxt (video in Chinese)

Algorithmic Trading - Aula 4 – A video introduction to algorithmic trading with CCXT from Curso Algo Trading in Portuguese language.

Лучшая криптотрейдинг библиотека? – An article in Russian on setting up CCXT to connect and trade with crypto exchanges.

Using ccxt and technicalindicators to calculate MACD for BTC/USDT with Node.js – A runkit sample showing how to fetch data and run statistical calculations.

Which Bitcoin crypto currency bot project? Gekko vs ccxt vs Tribeca vs Blackbird – A video comparison of opensource cryptocurrency trading platforms.

LOC-Extension – a LibreOffice extension which embeds ccxt to provide cryptocurrency price lookup in your spreadsheets.

CryptoMon Bot - helps tracking of your cryptocurrency investments and making smart, informed buy/sell decisions.

ZenBot - a command-line cryptocurrency trading bot using Node.js and MongoDB.

bitcoin-chart-cli by madnight – a command-line console util that draws Bitcoin, Ether, Litecoin and many altcoin charts right in the terminal!


It uses the asciichart JavaScript module by kroitor for nice-looking lightweight ASCII line charting )) Both packages are available in npm!


Special thx to MitchTalmadge for porting this package to Java language! Java-people, check it out here: ASCIIGraph.