class Binance::Responses::TradesResponse

Overview

Typical Server Response: [ { "id": 52027722, "price": "0.00324060", "qty": "3.27000000", "quoteQty": "0.01059676", "time": 1561473127043, "isBuyerMaker": false, "isBestMatch": true }, { "id": 52027723, "price": "0.00323940", "qty": "0.66000000", "quoteQty": "0.00213800", "time": 1561473128646, "isBuyerMaker": true, "isBestMatch": true }, { "id": 52027724, "price": "0.00324000", "qty": "2.49000000", "quoteQty": "0.00806760", "time": 1561473131487, "isBuyerMaker": true, "isBestMatch": true }, { "id": 52027725, "price": "0.00324060", "qty": "3.25000000", "quoteQty": "0.01053195", "time": 1561473132078, "isBuyerMaker": false, "isBestMatch": true }, { "id": 52027726, "price": "0.00324060", "qty": "5.00000000", "quoteQty": "0.01620300", "time": 1561473132149, "isBuyerMaker": false, "isBestMatch": true } ]

Defined in:

binance/client/rest/responses/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 | 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: [ { "id": 52027722, "price": "0.00324060", "qty": "3.27000000", "quoteQty": "0.01059676", "time": 1561473127043, "isBuyerMaker": false, "isBestMatch": true }, { "id": 52027723, "price": "0.00323940", "qty": "0.66000000", "quoteQty": "0.00213800", "time": 1561473128646, "isBuyerMaker": true, "isBestMatch": true }, { "id": 52027724, "price": "0.00324000", "qty": "2.49000000", "quoteQty": "0.00806760", "time": 1561473131487, "isBuyerMaker": true, "isBestMatch": true }, { "id": 52027725, "price": "0.00324060", "qty": "3.25000000", "quoteQty": "0.01053195", "time": 1561473132078, "isBuyerMaker": false, "isBestMatch": true }, { "id": 52027726, "price": "0.00324060", "qty": "5.00000000", "quoteQty": "0.01620300", "time": 1561473132149, "isBuyerMaker": false, "isBestMatch": true } ]


[View source]

Class Method Detail

def self.from_json(json) #

[View source]

Instance Method Detail

def trades : Array(TradeEntry) #

[View source]
def trades=(trades : Array(TradeEntry)) #

[View source]