API Ethereum: Getting the latest prices of stores, offers and pie at Huobi.com

*

As a cryptocurrency investor in the investor, access to real -time data. Huobi.com, one of the lines and the most respected cryptocurrency exchange, the provisions of the API (API interface) of the developer of the developer to take over various markets. In this article, we will explore how to use API Huobi.com to get the latest trade prices, offers and donkey.

* Prewites

Before you start, they will sweat you:

  • Internet account.com.

  • A registered developer account (ONT required for public API -is).

  • Pomotional with Python Programming your yrotary API betrayal of API has released.

* Pi review

Huobi.com is an access to Vay dates, declining data, orders and other relevant information. Manu’s endpoints are focused on the air:

  • ‘Get/p/p/market/measure

2.

  • ‘Get/P/P/Market/SKS’

* Instructions for step by step.

1.

Go to [hum.com Developer Porty] ( and Regier as a developer. You will need to list the address E -State, the name serna and password.

2. Get your API key

After registration, go to [API page keys] (https: // www. This with generating your API key.

3. Shoose You Endpoint

Look for the end point to collect your news:

  • ‘Get/P/P/Market/Subject for Business Trade Price.

  • Get/P/Market/Market/Beds 'I Get/P/Market/Market/SKS’ for Orders Window (Offers and Pies).

4. Set the options for API

Use Folling Options for API Call Adaptation Request:

  • ‘Method’: ‘Get’

  • For arrival: irritation, bids or pie “

  • ‘Header: defining addiction of heading required by API.

Example: Get/P/P/Market/Price 10 '

5. Send a request

Use your preferential dietary library (eg Python is a module) to send the GET request to the aforementioned end point and API button.

Python Example

'Comfort

Importing the request

managers, symbol):

Headers = {'Othalization': F'p_Key} ''

Params = {

'Syboll': Symbol,

'Live': 10

Iche

Liability = Requirements.GE (Thatts: // www.! uobiroup.com/en/v5/market/price ', paramise, params = pace, heads = fams)

chosen.status_code = = = 200:

Data = Answer.json ()

Re -data [they]

else:

Print (flower: {resasc.status_code} ')

None return

AP_EYE = 'yur_eye'

Symbol = 'eth'

Data = Man_ada (AP_EYE (AP_eye, Symbol)

printed

S.

6. Breakage and process data

Once you buy the date, compare your tour needs. For the exam:

  • Convert the last seconds of the prices of trading synthesized to USD.

  • Say off offers and look for a pair.

offers and asks data

To access offers and issues, use the end point of the BAT place for the "Birs" SKS ". You can filter allosil by the symbol using the API button and parameter.

Example:

` ‘Comfort

Steel/Abi_dan (AP_EYE (AP_EYE (AP_EYE, SYMBOL):

Headers = {‘Othalization’: F’p_Key} ”

Params = {

‘Syboll’: Symbol,

‘Live’: 10

Iche

Explicit = Requests.ge (Totts: //www.huobiroup.com/en/v5/market/beds’, Paramise, Params = Pats, Heads = Father

chosen.status_code = = = 200:

Data = Answer.json ()

Re -data [they]

else:

Print (white: {answer.

Responder