class Binance::Responses::ExchangeInfoResponse

Overview

Typical Server Response:

{
  "timezone": "UTC",
  "serverTime": 1508631584636,
  "rateLimits": [
    // These are defined in the `ENUM definitions` section under `Rate limiters (rateLimitType)`.
    // All limits are optional.
  ],
  "exchangeFilters": [
    // There are defined in the `Filters` section.
    // All filters are optional.
  ],
  "symbols": [{
    "symbol": "ETHBTC",
    "status": "TRADING",
    "baseAsset": "ETH",
    "baseAssetPrecision": 8,
    "quoteAsset": "BTC",
    "quotePrecision": 8,
    "orderTypes": [
      // These are defined in the `ENUM definitions` section under `Order types (orderTypes)`.
      // All orderTypes are optional.
    ],
    "icebergAllowed": false,
    "filters": [
      // There are defined in the `Filters` section.
      // All filters are optional.
    ]
  }]
}

Defined in:

binance/client/rest/responses/exchange_info_response.cr

Constructors

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:

{
  "timezone": "UTC",
  "serverTime": 1508631584636,
  "rateLimits": [
    // These are defined in the `ENUM definitions` section under `Rate limiters (rateLimitType)`.
    // All limits are optional.
  ],
  "exchangeFilters": [
    // There are defined in the `Filters` section.
    // All filters are optional.
  ],
  "symbols": [{
    "symbol": "ETHBTC",
    "status": "TRADING",
    "baseAsset": "ETH",
    "baseAssetPrecision": 8,
    "quoteAsset": "BTC",
    "quotePrecision": 8,
    "orderTypes": [
      // These are defined in the `ENUM definitions` section under `Order types (orderTypes)`.
      // All orderTypes are optional.
    ],
    "icebergAllowed": false,
    "filters": [
      // There are defined in the `Filters` section.
      // All filters are optional.
    ]
  }]
}

Instance Method Detail

def exchange_filters : Array(Binance::Responses::ExchangeFilter) #

def rate_limits : Array(Binance::Responses::RateLimit) #

def server_time : Time #

A Time representation of the serverTime property


def symbols : Array(Binance::Responses::ExchangeSymbol) #

def timezone : String #

Time Zone for server's time values