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.
48 lines
2.0 KiB
48 lines
2.0 KiB
from huobi.constant import *
|
|
|
|
|
|
class Withdraw:
|
|
"""
|
|
The latest status for withdraws.
|
|
|
|
:member
|
|
id: The transfer id.
|
|
currency: The crypto currency to deposit.
|
|
tx_hash: The on-chain transaction hash.
|
|
amount: The number of crypto asset transferred in its minimum unit.
|
|
address: The deposit source address.
|
|
address_tag: The user defined address tag.
|
|
fee: The amount of fee taken by Huobi in this crypto's minimum unit.
|
|
created_at: The UNIX formatted timestamp in UTC for the transfer creation.
|
|
updated_at: The UNIX formatted timestamp in UTC for the transfer's latest update.
|
|
state: The withdraw state of this transfer.
|
|
"""
|
|
def __init__(self):
|
|
self.id = 0
|
|
self.type = DepositWithdraw.WITHDRAW
|
|
self.currency = ""
|
|
self.chain = ""
|
|
self.tx_hash = ""
|
|
self.amount = 0.0
|
|
self.address = ""
|
|
self.address_tag = ""
|
|
self.fee = 0.0
|
|
self.created_at = 0
|
|
self.updated_at = 0
|
|
self.state = WithdrawState.INVALID
|
|
|
|
|
|
def print_object(self, format_data=""):
|
|
from huobi.utils.print_mix_object import PrintBasic
|
|
PrintBasic.print_basic(self.id, format_data + "ID")
|
|
PrintBasic.print_basic(self.currency, format_data + "Currency")
|
|
PrintBasic.print_basic(self.type, format_data + "Operator Type")
|
|
PrintBasic.print_basic(self.chain, format_data + "Chain")
|
|
PrintBasic.print_basic(self.tx_hash, format_data + "Trade Hash")
|
|
PrintBasic.print_basic(self.amount, format_data + "Amount")
|
|
PrintBasic.print_basic(self.address, format_data + "Address")
|
|
PrintBasic.print_basic(self.address_tag, format_data + "Address Tag")
|
|
PrintBasic.print_basic(self.fee, format_data + "Fee")
|
|
PrintBasic.print_basic(self.state, format_data + "Withdraw State")
|
|
PrintBasic.print_basic(self.created_at, format_data + "Create Time")
|
|
PrintBasic.print_basic(self.updated_at, format_data + "Update Time") |