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
773 B
25 lines
773 B
from huobi.constant import *
|
|
from huobi.utils import default_parse_list_dict
|
|
|
|
|
|
class Balance:
|
|
"""
|
|
The balance of specified account.
|
|
|
|
:member
|
|
currency: The currency of this balance.
|
|
balance_type: The balance type, trade or frozen.
|
|
balance: The balance in the main currency unit.
|
|
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.currency = ""
|
|
self.type = AccountBalanceUpdateType.INVALID
|
|
self.balance = 0.0
|
|
|
|
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.type, format_data + "Balance Type")
|
|
PrintBasic.print_basic(self.balance, format_data + "Balance") |