class Binance::Responses::AggTradesResponse

Overview

Typical Server Response:

[
  {
    "a": 44410315,
    "p": "0.00307970",
    "q": "3.81000000",
    "f": 52078196,
    "l": 52078196,
    "T": 1561505178803,
    "m": true,
    "M": true
  },
  {
    "a": 44410316,
    "p": "0.00308000",
    "q": "0.10000000",
    "f": 52078197,
    "l": 52078197,
    "T": 1561505179424,
    "m": false,
    "M": true
  }
]

Defined in:

binance/client/rest/responses/agg_trades_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? 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:

[
  {
    "a": 44410315,
    "p": "0.00307970",
    "q": "3.81000000",
    "f": 52078196,
    "l": 52078196,
    "T": 1561505178803,
    "m": true,
    "M": true
  },
  {
    "a": 44410316,
    "p": "0.00308000",
    "q": "0.10000000",
    "f": 52078197,
    "l": 52078197,
    "T": 1561505179424,
    "m": false,
    "M": true
  }
]

Class Method Detail

def self.from_json(json) #

Instance Method Detail

def trades : Array(AggTradeEntry) #

def trades=(trades : Array(AggTradeEntry)) #