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.
25 lines
692 B
25 lines
692 B
from huobi.model.market import PriceDepthBbo
|
|
|
|
|
|
class PriceDepthBboEvent:
|
|
"""
|
|
The price depth received by subscription of price depth.
|
|
|
|
:member
|
|
symbol: The symbol you subscribed.
|
|
timestamp: The UNIX formatted timestamp generated by server in UTC.
|
|
data: The price depth.
|
|
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.ts = 0
|
|
self.ch = ""
|
|
self.tick = PriceDepthBbo()
|
|
|
|
|
|
def print_object(self, format_data=""):
|
|
from huobi.utils.print_mix_object import PrintBasic
|
|
PrintBasic.print_basic(self.ts, format_data + "Time")
|
|
PrintBasic.print_basic(self.ch, format_data + "Channel")
|
|
self.tick.print_object(format_data) |