- REST API ❌
- WEBSOCKET API ❌
-
Reference Data ✔️
-
Market Data ✔️
-
Account ❌
-
Wallet ❌
-
Sub-User Management ❌
-
Trading ❌
-
Conditional Orders ❌
-
Margin Loan ❌
-
Stable Coin Exchange ✔️
- Market Data ❌
- Account Data ❌
- Orders ❌
- You need a Secret Key and Access Key to the API provided by Huobi. Please do not publish your own keys and remember that once the key is created, the secret key will not be able to be consulted in the future, so save it.
- If you are going to play with the sub users endpoints, check that you have, at least, one created. Click here to create one
- To get started, you must have a HuobiClient instance with your Secret key and Access Key.
from huobi.rest.client import HuobiClient
client = HuobiClient(access_key= 'Your_Access_Key', secret_key='Your_Secret_Key')
req = client.get_last_day_market_summary(currency='btcusdt')
# Output
{"ch":"market.btcusdt.detail","status":"ok","ts":1642083312575,"tick":{"id":293383444638,"low":43320.23,"high":44355.58,"open":43754.74,"close":43997.15,"vol":2.6205615363949648E8,"amount":5988.949391700904,"version":293383444638,"count":523165}}
req = client.get_uid()
# Output
{"code":200,"data":'Here will appear your UID',"ok":true}
req = client.get_most_recent_trades(currency='ethusdt', size=1)
# Output
{"ch":"market.ethusdt.trade.detail","status":"ok","ts":1642083884643,"data":[{"id":144000086587,"ts":1642083884611,"data":[{"id":144000086587454187344074844,"ts":1642083884611,"trade-id":102351374009,"amount":0.0711,"price":3385.64,"direction":"buy"}]}]}
- Currency Enum
- Candles Graphic Draw
- Add basic project structure
- Add working API authentication
- Add endpoint/request scheme
- Add all market endpoints
- Add some account & user endpoints
- Add flake8 testing
- Add reference data endpoints
- Add wallet endpoints (GETS)
- Add conditional orders endpoint (GETS)
- Add trading endpoints (GETS)