Ejemplo n.º 1
0
    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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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()
Ejemplo n.º 4
0
 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()
Ejemplo n.º 5
0
 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()
Ejemplo n.º 6
0
 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()
Ejemplo n.º 7
0
 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")
Ejemplo n.º 8
0
 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")
Ejemplo n.º 9
0
 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")
Ejemplo n.º 10
0
 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")
Ejemplo n.º 11
0
 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")
Ejemplo n.º 12
0
 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")
Ejemplo n.º 13
0
 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()
Ejemplo n.º 14
0
 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")
Ejemplo n.º 15
0
 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")
Ejemplo n.º 16
0
 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")
Ejemplo n.º 17
0
 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")
Ejemplo n.º 18
0
 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()
Ejemplo n.º 20
0
 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")