Ethereum: A Library for Trading on Major Exchanges
As a developer, you’re probably no stranger to the world of cryptocurrency trading. With the rise of major exchanges like BTC-e, Bitfinex, Cryptsy, and more, having access to their APIs (Application Programming Interfaces) is essential to building robust and scalable applications. However, implementing these APIs from scratch can be a significant undertaking that requires extensive programming language and technical expertise.
Fortunately, libraries are available that expose the order book and trading functionality of major exchanges. In this article, we’ll explore some popular options for Ethereum developers looking to integrate trading functionality on top of major exchanges like BTC-e, Bitfinex, and Cryptsy.
1. Exchanges API Library (EAPI)
The Exchanges API Library (EAPI) is a Python library that provides an interface to order data from several major cryptocurrency exchanges. Although it primarily focuses on Bitcoin, it also supports other popular cryptocurrencies like Ethereum.
To use EAPI, you will need to install the library using pip:
pip install exchangelib
You can then load the exchange data using the following code snippet:
import echalus
ex = echalus.Eexchange(
provider="BTC-e",
api_key="YOUR_API_KEY",
api_secret="YOUR_API_SECRET"
)
data = ex.get_order_book()
print(data)
EAPI supports various APIs, including:
- BTC-e:
GET /api/v1/order_book,GET /api/v1/exchange_info
- Bitfinex:
GET /rest/v2/exchange_info,GET /rest/v2(order_books)
2. CEX API
CEX API is a Python library that provides an interface to order book data from several major cryptocurrency exchanges, including BTC-e and Binance.
To install CEX, run:
pip install cex
Here is an example code snippet using CEX:
import cex
client = cex.Client(api_key="YOUR_API_KEY", api_secret="YOUR_API_SECRET")
data = client.get_order_book()
print(data)
CEX supports various APIs, including:
- BTC-e:
GET /api/v1/order_book,GET /api/v1/exchange_info
- Binance:
GET /public/api/v2/markets
3. Pybitcex
Pybitcex is a Python wrapper for the Binance exchange API.
To install Pybitcex, run:
pip install pybitcex
Here is an example code snippet using Pybitcex:
import pybitcex
client = pybitcex.Client(
api_key="YOUR_API_KEY",
api_secret="YOUR_API_SECRET"
)
data = client.get_order_book()
print(data)
Pybitcex supports various APIs, including:
- Binance:
GET /api/v3/exchangeInfo,GET /orderBook
4. CryptoAPI

CryptoAPI is a Python library that provides an interface to order data from several major cryptocurrency exchanges.
To install CryptoAPI, run:
pip install cryptoapi
Here is an example code snippet using CryptoAPI:
import cryptoapi
client = cryptoapi.Client(
provider="BTC-e",
api_key="YOUR_API_KEY",
api_secret="YOUR_API_SECRET"
)
data = client.get_order_book()
print(data)
CryptoAPI supports various APIs, including:
- BTC-e:
GET /api/v1/order_book,GET /api/v1/exchange_info
Conclusion
Finally, there are several libraries available that expose the order book and trading functionality of major exchanges such as BTC-e, Bitfinex, Cryptsy, and others. By choosing one of these libraries, you can simplify your development process and focus on building a robust application for cryptocurrency traders.
While this article has only scratched the surface of these libraries, I hope it provides valuable insight into the world of trading APIs and their integration with Ethereum applications.