You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
348 B
16 lines
348 B
|
|
from huobi.client.market import MarketClient
|
|
from huobi.constant import DepthStep
|
|
|
|
|
|
def callback(price_depth_req: 'PriceDepthReq'):
|
|
price_depth_req.print_object()
|
|
|
|
|
|
def error(e: 'HuobiApiException'):
|
|
print(e.error_code + e.error_message)
|
|
|
|
|
|
sub_client = MarketClient()
|
|
sub_client.req_pricedepth("btcusdt", DepthStep.STEP0, callback, error)
|