Ethereum: Library for trading on major exchanges

Ethereum: A library to trade in great exchanges

As a developer, you are probable that you are not oblivious to the world of cryptocurrency trade. With the increase in the main exchanges such as BTC-E, Bitfinex, Cryptsy and others, it is essential to have access to their API (application programming interfaces) to create robust and scalable applications. However, implementing these API from scratch can be a significant task, which requires extensive knowledge of programming languages ​​and technical experience.

Fortunately, there are available libraries that expose the book of orders and the commercial functionality of the main exchanges. In this article, we will explore some popular options for Ethereum developers who seek to integrate commercial functionality in addition to the main exchanges such as BTC-E, Bitfinex and Cryptsy.

1. Exchange API Library (EAPI)

The API Exchanges Library (EAPI) is a Python Library that provides an interface to the request book data from several important cryptocurrency exchanges. Although his main approach is in Bitcoin, he also admits other popular cryptocurrencies such as Ethereum.

To use EAPI, you must install the library using PIP:

`Bash

Pip Install Exchangelib

Then, you can obtain the exchange data using the following code fragment:

Python

Import equalus

Ex = echalus.eexchange (

Provider = "btc-e",

Api_key = "your_api_key",

API_SECret = "Your_api_secret"

)

data = ex.get_order_book ()

Print (data)

EAPI admits several API, which includes:

  • BTC-E:GET/API/V1/Order_Book, GET/API/V1/bestchill_info

  • Bitfinex:Get/Rest/V2/Exchange_info, Get/Rest/V2 (Order_Books)

2. API CEX

The CEX API is a Python library that provides an interface to the data book of several important cryptocurrency exchanges, including BTC-E and Binance.

To install CEX, run:

Bash

Pip Install CEX

Here is a fragment of example code using CEX:

Python

Import CEX

Client = cex.client (api_key = "your_api_key", api_secret = "your_api_secret")

data = client.get_order_book ()

Print (data)

CEX admits several APIs, which include:

  • BTC-E:GET/API/V1/Order_Book, GET/API/V1/bestchill_info

  • Binance:get/public/API/V2/Markets

3. Pybitcex

Pybitcex is a python wrap for the API Binance Exchange.

To install pybitcex, run:

Bash

Pip Install Pybitcex

Here is a fragment of example code using pybitcex:

Python

Import Pybitcex

client = pybitcex.client (

Api_key = "your_api_key",

API_SECret = "Your_api_secret"

)

data = client.get_order_book ()

Print (data)

Pybitcex admits several API, which includes:

  • Binance:Get /API /V3 /Exchangeinfo, Get /Orderbook

4. Cryptoapi

Cryptoapi is a Python library that provides an interface to the data book of several important cryptocurrency exchanges.

To install Cryptoapi, run:

Bash

Pip Install Cryptoapi

Here is a fragment of example code using Cryptoapi:

Python

Import Cryptoapi

Customer = Cryptoapi.client (

Provider = "btc-e",

Api_key = "your_api_key",

API_SECret = "Your_api_secret"

)

data = client.get_order_book ()

Print (data)

Cryptoapi admits several API, which includes:

  • BTC-E:GET/API/V1/Order_Book, GET/API/V1/bestchill_info`

Conclusion

In conclusion, there are several available libraries that expose the book of orders and the commercial functionality of the main exchanges such as BTC-E, Bitfinex, Cryptsy and others. When choosing one of these libraries, you can simplify your development process and focus on building a solid application for cryptocurrency merchants.

While this article has only scratched the surface of these libraries, I hope you provide valuable information about the world of commercial APIs and their integration with Ethereum applications.

ETHEREUM PYTHON DATA


Reacties

Geef een reactie

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *