huobi.com API to get latest trade price, bids and asks?

2

I'm looking for a simple API description to get some basic stats from the huobi.com exchange. Mainly the last trading price, and current orderbook (bids & asks).

They seem to have an API: http://www.huobi.com/help/index.php?a=api_help but this page doesn't help me much (even after translating it with Google, as I can't read Chinese).

Does anyone know how to use this API?

Sheldon Pinkman

Posted 2014-02-15T15:01:25.713

Reputation: 121

Were you able to find any such API ?Mandeep Singh 2016-06-12T01:20:52.693

Answers

2

I had some trouble finding it there but then I found it in "reference" https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference

You can use normal http queries like on other exchanges so to get an orderbook you use this for example: https://api.huobi.pro/market/depth?symbol=ethbtc&type=step1

Vitas

Posted 2014-02-15T15:01:25.713

Reputation: 121

-2

I think this is the newest api on github

https://github.com/huobiapi

Mingrui Jiang

Posted 2014-02-15T15:01:25.713

Reputation: 1

That doesn't appear to answer the question.Mine 2018-02-02T02:29:17.270

@Mine this is the exact file that you can use to get data through websocket, it's on huobi's github https://github.com/huobiapi/WebSocket-API-demos/blob/master/Websocket-Python3-demo/huobi.py

Mingrui Jiang 2018-02-05T04:29:38.700

@Mingrui_Jiang technically he wasn't asking if there was a new one. He was asking how to use it.Mine 2018-02-06T16:05:08.447

Yes the API demos on within shows you exactly how to use itMingrui Jiang 2018-02-08T08:18:50.750