CCXT – Cryptocurrency Exchange Trading Library Tutorial

CCXT, which stands for Cryptocurrency Exchange Trading, is a JavaScript, Python and PHP library for cryptocurrency trading and e-commerce with support for many cryptocurrency exchange markets and merchant APIs.

It 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.

The library is under MIT license, which means that it’s absolutely free for anyone to build commercial and opensource software on top of it. However, you have to use it at your own risk with no warranties, as is. If you interested to read more about it, visit this link.

Install

The easiest way to install the CCXT library is to use a package manager:
ccxt in PyPI (Python 3.5.3+)

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

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

Usage

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.3+

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