def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.symbol, "Symbol") PrintBasic.print_basic(self.timestamp, "Timestamp") orderupdatenew = self.data orderupdatenew.print_object()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.symbol, "Symbol") PrintBasic.print_basic(self.timestamp, "Timestamp") if len(self.trade_list): for trade in self.trade_list: trade.print_object() print()
def print_object(self, format_data=""): from hbclient.trade.base.printobject 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()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.symbol, "Symbol") PrintBasic.print_basic(self.timestamp, "Timestamp") PrintBasic.print_basic(self.client_req_id, "Client Req ID") PrintBasic.print_basic(self.topic, "Topic") print("order detail as below :") self.data.print_object()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.symbol, "Symbol") PrintBasic.print_basic(self.timestamp, "Timestamp") PrintBasic.print_basic(self.client_req_id, "Client Req ID") PrintBasic.print_basic(self.topic, "Topic") print("Order List as below : count " + str(len(self.order_list))) if len(self.order_list): for order_obj in self.order_list: order_obj.print_object("\t ") print()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.ch, format_data + "Channel") self.data.print_object()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.currency, format_data + "Currency") PrintBasic.print_basic(self.address, format_data + "Address") PrintBasic.print_basic(self.addressTag, format_data + "addressTag") PrintBasic.print_basic(self.chain, format_data + "Chain")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.chain, format_data + "Chain") PrintBasic.print_basic(self.numOfConfirmations, format_data + "numOfConfirmations") PrintBasic.print_basic(self.numOfFastConfirmations, format_data + "numOfFastConfirmations") PrintBasic.print_basic(self.depositStatus, format_data + "depositStatus") PrintBasic.print_basic(self.minDepositAmt, format_data + "minDepositAmount") PrintBasic.print_basic(self.withdrawStatus, format_data + "withdrawStatus") PrintBasic.print_basic(self.minWithdrawAmt, format_data + "minWithdrawAmount") PrintBasic.print_basic(self.withdrawPrecision, format_data + "withdrawPrecision") PrintBasic.print_basic(self.maxWithdrawAmt, format_data + "maxWithdrawAmount") PrintBasic.print_basic(self.withdrawQuotaPerDay, format_data + "withdrawQuotaPerDay") PrintBasic.print_basic(self.withdrawQuotaPerYear, format_data + "withdrawQuotaPerYear") PrintBasic.print_basic(self.withdrawQuotaTotal, format_data + "withdrawQuotaTotal") PrintBasic.print_basic(self.withdrawFeeType, format_data + "withdrawFeeType") PrintBasic.print_basic(self.transactFeeWithdraw, format_data + "transactFeeWithdraw") PrintBasic.print_basic(self.minTransactFeeWithdraw, format_data + "minTransactFeeWithdraw") PrintBasic.print_basic(self.maxTransactFeeWithdraw, format_data + "maxTransactFeeWithdraw") PrintBasic.print_basic(self.transactFeeRateWithdraw, format_data + "transactFeeRateWithdraw")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.timestamp, format_data + "Timestamp") PrintBasic.print_basic(self.open, format_data + "Open") PrintBasic.print_basic(self.close, format_data + "Close") PrintBasic.print_basic(self.amount, format_data + "Amount") PrintBasic.print_basic(self.high, format_data + "High") PrintBasic.print_basic(self.low, format_data + "Low") PrintBasic.print_basic(self.count, format_data + "Count") PrintBasic.print_basic(self.volume, format_data + "Volume")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.orderId, format_data + "Order Id") PrintBasic.print_basic(self.symbol, format_data + "Symbol") PrintBasic.print_basic(self.tradePrice, format_data + "Trade Price") PrintBasic.print_basic(self.tradeVolume, format_data + "Trade Volume") PrintBasic.print_basic(self.orderSide, format_data + "Order Side") PrintBasic.print_basic(self.orderType, format_data + "Order Type") PrintBasic.print_basic(self.aggressor, format_data + "is aggressor") PrintBasic.print_basic(self.tradeId, format_data + "Trade Id") PrintBasic.print_basic(self.tradeTime, format_data + "Trade Time") PrintBasic.print_basic(self.transactFee, format_data + "Transact Fee") PrintBasic.print_basic(self.feeDeduct, format_data + "Fee Deduct") PrintBasic.print_basic(self.feeDeductType, format_data + "Fee Deduct Type")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.chain, format_data + "Chain") PrintBasic.print_basic(self.maxWithdrawAmt, format_data + "maxWithdrawAmt") PrintBasic.print_basic(self.withdrawQuotaPerDay, format_data + "withdrawQuotaPerDay") PrintBasic.print_basic(self.remainWithdrawQuotaPerDay, format_data + "remainWithdrawQuotaPerDay") PrintBasic.print_basic(self.withdrawQuotaPerYear, format_data + "withdrawQuotaPerYear") PrintBasic.print_basic(self.remainWithdrawQuotaPerYear, format_data + "remainWithdrawQuotaPerYear") PrintBasic.print_basic(self.withdrawQuotaTotal, format_data + "withdrawQuotaTotal") PrintBasic.print_basic(self.remainWithdrawQuotaTotal, format_data + "remainWithdrawQuotaTotal")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.currency, format_data + "Currency") PrintBasic.print_basic(self.balance_type, format_data + "Balance Type") PrintBasic.print_basic(self.balance, format_data + "Balance")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.timestamp, format_data + "Timestamp") PrintBasic.print_basic(self.symbol, format_data + "Symbol") self.trade_statistics.print_object()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.id, format_data + "ID") PrintBasic.print_basic(self.type, format_data + "Operate Type") PrintBasic.print_basic(self.currency, format_data + "Currency") 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.deposit_state, format_data + "Deposit State") PrintBasic.print_basic(self.created_timestamp, format_data + "Create Time") PrintBasic.print_basic(self.updated_timestamp, format_data + "Update Time")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.trade_id, format_data + "Id") PrintBasic.print_basic(self.unique_trade_id, format_data + "Trade Id") PrintBasic.print_basic(self.timestamp, format_data + "Trade Time") PrintBasic.print_basic(self.price, format_data + "Price") PrintBasic.print_basic(self.amount, format_data + "Amount") PrintBasic.print_basic(self.direction, format_data + "Direction")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.order_id, format_data + "Order Id") PrintBasic.print_basic(self.symbol, format_data + "Symbol") PrintBasic.print_basic(self.price, format_data + "Price") PrintBasic.print_basic(self.amount, format_data + "Amount") PrintBasic.print_basic(self.created_timestamp, format_data + "Create Time") PrintBasic.print_basic(self.canceled_timestamp, format_data + "Cancel Time") PrintBasic.print_basic(self.finished_timestamp, format_data + "Finish Time") PrintBasic.print_basic(self.order_type, format_data + "Order Type") PrintBasic.print_basic(self.filled_amount, format_data + "Filled Amount") PrintBasic.print_basic(self.filled_cash_amount, format_data + "Filled Cash Amount") PrintBasic.print_basic(self.filled_fees, format_data + "Filled Fees") PrintBasic.print_basic(self.account_type, format_data + "Account Type") PrintBasic.print_basic(self.source, format_data + "Order Source") PrintBasic.print_basic(self.state, format_data + "Order State") PrintBasic.print_basic(self.stop_price, format_data + "Stop Price") PrintBasic.print_basic(self.operator, format_data + "Operator") PrintBasic.print_basic(self.next_time, format_data + "Next Time")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.account_id, format_data + "Account Id") PrintBasic.print_basic(self.currency, format_data + "Currency") PrintBasic.print_basic(self.transact_amt, format_data + "Transact Amount") PrintBasic.print_basic(self.transact_type, format_data + "Transact Type") PrintBasic.print_basic(self.avail_balance, format_data + "Avail Balance") PrintBasic.print_basic(self.acct_balance, format_data + "Account Balance") PrintBasic.print_basic(self.transact_time, format_data + "Transact Time") PrintBasic.print_basic(self.record_id, format_data + "Record Id")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.currency, format_data + "Currency") PrintBasic.print_basic(self.deduct_rate, format_data + "Deduct Rate") PrintBasic.print_basic(self.paid_point, format_data + "Paid Point") PrintBasic.print_basic(self.deduct_currency, format_data + "Deduct Currency") PrintBasic.print_basic(self.user_id, format_data + "User Id") PrintBasic.print_basic(self.created_at, format_data + "Create Time") PrintBasic.print_basic(self.account_id, format_data + "Account Id") PrintBasic.print_basic(self.paid_coin, format_data + "Paid Coin") PrintBasic.print_basic(self.loan_amount, format_data + "Load Amount") PrintBasic.print_basic(self.interest_amount, format_data + "Interest Amount") PrintBasic.print_basic(self.deduct_amount, format_data + "Deduct Amount") PrintBasic.print_basic(self.loan_balance, format_data + "Loan Balance") PrintBasic.print_basic(self.interest_balance, format_data + "Interest Balance") PrintBasic.print_basic(self.updated_at, format_data + "Update Time") PrintBasic.print_basic(self.accrued_at, format_data + "Accrued Time") PrintBasic.print_basic(self.interest_rate, format_data + "Interest Rate") PrintBasic.print_basic(self.id, format_data + "ID") PrintBasic.print_basic(self.state, format_data + "Loan Order State")
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.id, format_data + "Account ID") PrintBasic.print_basic(self.type, format_data + "Account Type") PrintBasic.print_basic(self.state, format_data + "Account State") PrintBasic.print_basic(self.risk_rate, format_data + "Risk Rate") PrintBasic.print_basic(self.acct_balance_sum, format_data + "Total Balance") PrintBasic.print_basic(self.debt_balance_sum, format_data + "Debt Balance") if self.list and len(self.list): for balance in self.list: balance.print_object() print()
def print_object(self, format_data=""): from hbclient.trade.base.printobject import PrintBasic PrintBasic.print_basic(self.currency, format_data + "Currency") PrintBasic.print_basic(self.accountId, format_data + "Account Id") PrintBasic.print_basic(self.balance, format_data + "Balance") PrintBasic.print_basic(self.available, format_data + "Available") PrintBasic.print_basic(self.changeType, format_data + "Change Type") PrintBasic.print_basic(self.accountType, format_data + "Account Type") PrintBasic.print_basic(self.changeTime, format_data + "Change Time")