huobi_Python icon indicating copy to clipboard operation
huobi_Python copied to clipboard

ETP Market data support

Open Infatum opened this issue 4 years ago • 1 comments

Can you please add ETP tokens support - market and trade? I've tried requesting https://api.huobi.pro/v2/etp/transactions but received '{"message":"unauthorized","code":1003,"success":false}'. I don't know how to authorise, any help would be highly appreciated. How can I get market ETP data? Candlesticks or any?

Infatum avatar Sep 07 '20 14:09 Infatum

from huobi.client.market import MarketClient from huobi.constant import * from huobi.utils import *

market_client = MarketClient(init_log=True) interval = CandlestickInterval.MIN5 symbol = "btc3lusdtnav"#ethusdt list_obj = market_client.get_candlestick(symbol, interval, 10) LogInfo.output("---- {interval} candlestick for {symbol} ----".format(interval=interval, symbol=symbol)) LogInfo.output_list(list_obj)

ticaleenlx avatar Jan 17 '21 18:01 ticaleenlx