class Binance::Responses::AccountResponse

Overview

Typical Server Response:

{
  "makerCommission": 15,
  "takerCommission": 15,
  "buyerCommission": 0,
  "sellerCommission": 0,
  "canTrade": true,
  "canWithdraw": true,
  "canDeposit": true,
  "updateTime": 123456789,
  "balances": [
    {
      "asset": "BTC",
      "free": "4723846.89208129",
      "locked": "0.00000000"
    },
    {
      "asset": "LTC",
      "free": "4763368.68006011",
      "locked": "0.00000000"
    }
  ]
}

Defined in:

binance/client/rest/responses/account_response.cr

Constructors

Instance Method Summary

Instance methods inherited from class Binance::Responses::ServerResponse

body body, consume_body(response) consume_body, error_code : Int32? error_code, error_code=(error_code : Int32?) error_code=, error_message : String? error_message, error_message=(error_message : String?) error_message=, exception : Exception? exception, exception=(exception : Exception?) exception=, response : HTTP::Client::Response? response, response=(response : HTTP::Client::Response?) response=, success : Bool success, success=(success : Bool) success=, used_weight used_weight

Constructor methods inherited from class Binance::Responses::ServerResponse

new(pull : JSON::PullParser) new

Class methods inherited from class Binance::Responses::ServerResponse

consume_body(response) consume_body

Constructor Detail

def self.new(pull : JSON::PullParser) #

Typical Server Response:

{
  "makerCommission": 15,
  "takerCommission": 15,
  "buyerCommission": 0,
  "sellerCommission": 0,
  "canTrade": true,
  "canWithdraw": true,
  "canDeposit": true,
  "updateTime": 123456789,
  "balances": [
    {
      "asset": "BTC",
      "free": "4723846.89208129",
      "locked": "0.00000000"
    },
    {
      "asset": "LTC",
      "free": "4763368.68006011",
      "locked": "0.00000000"
    }
  ]
}

Instance Method Detail

def account_type : String #

def balances : Array(BalanceEntry) #

def balances=(balances : Array(BalanceEntry)) #

def buyer_commission : Int32 #

def can_deposit : Bool #

def can_trade : Bool #

def can_withdraw : Bool #

def maker_commission : Int32 #

def seller_commission : Int32 #

def taker_commission : Int32 #

def update_time : Time? #