class Binance::Responses::KlinesResponse

Overview

Typical Server Response:

[
  [
    1561503600000,
    "317.38000000",
    "318.99000000",
    "314.85000000",
    "318.26000000",
    "27588.88007000",
    1561507199999,
    "8748729.96605430",
    13223,
    "15529.46205000",
    "4924098.84933350",
    "0"
  ],
  [
    1561507200000,
    "318.29000000",
    "318.94000000",
    "316.51000000",
    "318.30000000",
    "10494.87765000",
    1561510799999,
    "3333687.82234600",
    6020,
    "5368.77538000",
    "1705477.19064240",
    "0"
  ]
]

Defined in:

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

[
  [
    1561503600000,
    "317.38000000",
    "318.99000000",
    "314.85000000",
    "318.26000000",
    "27588.88007000",
    1561507199999,
    "8748729.96605430",
    13223,
    "15529.46205000",
    "4924098.84933350",
    "0"
  ],
  [
    1561507200000,
    "318.29000000",
    "318.94000000",
    "316.51000000",
    "318.30000000",
    "10494.87765000",
    1561510799999,
    "3333687.82234600",
    6020,
    "5368.77538000",
    "1705477.19064240",
    "0"
  ]
]

Class Method Detail

def self.from_json(json) #

Instance Method Detail

def klines : Array(Kline) #

def klines=(klines : Array(Kline)) #