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.
15 lines
349 B
15 lines
349 B
from huobi.client.market import MarketClient
|
|
from huobi.constant import *
|
|
|
|
|
|
def callback(mbp_event: 'MbpFullEvent'):
|
|
mbp_event.print_object()
|
|
|
|
|
|
def error(e: 'HuobiApiException'):
|
|
print(e.error_code + e.error_message)
|
|
|
|
|
|
market_client = MarketClient(init_log=True)
|
|
market_client.sub_mbp_full("btcusdt,eosusdt", MbpLevel.MBP5, callback, error)
|