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 | Nil error_code, error_code=(error_code : Int32 | Nil) error_code=, error_message : String | Nil error_message, error_message=(error_message : String | Nil) error_message=, exception : Exception | Nil exception, exception=(exception : Exception | Nil) exception=, response : HTTP::Client::Response | Nil response, response=(response : HTTP::Client::Response | Nil) 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" } ] }


[View source]

Instance Method Detail

def account_type : String #

[View source]
def balances : Array(BalanceEntry) #

[View source]
def balances=(balances : Array(BalanceEntry)) #

[View source]
def buyer_commission : Int32 #

[View source]
def can_deposit : Bool #

[View source]
def can_trade : Bool #

[View source]
def can_withdraw : Bool #

[View source]
def maker_commission : Int32 #

[View source]
def seller_commission : Int32 #

[View source]
def taker_commission : Int32 #

[View source]
def update_time : Time | Nil #

[View source]