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.
27 lines
793 B
27 lines
793 B
from huobi.constant import *
|
|
|
|
class ReferenceCurrency:
|
|
"""
|
|
The Huobi supported static reference information for each currency.
|
|
|
|
:member
|
|
currency: currency
|
|
instStatus: Instrument status
|
|
chains: chain list
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.currency = ""
|
|
self.instStatus = InstrumentStatus.INVALID
|
|
self.chains = []
|
|
|
|
|
|
def print_object(self, format_data=""):
|
|
from huobi.utils.print_mix_object import PrintBasic
|
|
PrintBasic.print_basic(self.currency, format_data + "Currency")
|
|
PrintBasic.print_basic(self.instStatus, format_data + "Instrument Status")
|
|
if self.chains and len(self.chains):
|
|
for chain_obj in self.chains:
|
|
chain_obj.print_object("\t")
|
|
print()
|