class Binance::Responses::BookTickerResponse

Overview

Typical Server Response: { "symbol": "LTCBTC", "bidPrice": "4.00000000", "bidQty": "431.00000000", "askPrice": "4.00000200", "askQty": "9.00000000" }

OR

[
  {
    "symbol": "LTCBTC",
    "bidPrice": "4.00000000",
    "bidQty": "431.00000000",
    "askPrice": "4.00000200",
    "askQty": "9.00000000"
  },
  {
    "symbol": "ETHBTC",
    "bidPrice": "0.07946700",
    "bidQty": "9.00000000",
    "askPrice": "100000.00000000",
    "askQty": "1000.00000000"
  }
]

Defined in:

binance/client/rest/responses/book_ticker_response.cr

Constructors

Class Method Summary

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: { "symbol": "LTCBTC", "bidPrice": "4.00000000", "bidQty": "431.00000000", "askPrice": "4.00000200", "askQty": "9.00000000" }

OR

[
  {
    "symbol": "LTCBTC",
    "bidPrice": "4.00000000",
    "bidQty": "431.00000000",
    "askPrice": "4.00000200",
    "askQty": "9.00000000"
  },
  {
    "symbol": "ETHBTC",
    "bidPrice": "0.07946700",
    "bidQty": "9.00000000",
    "askPrice": "100000.00000000",
    "askQty": "1000.00000000"
  }
]

[View source]

Class Method Detail

def self.from_json(json) #

[View source]

Instance Method Detail

def tickers : Array(BookTickerEntry) #

[View source]
def tickers=(tickers : Array(BookTickerEntry)) #

[View source]