Class: BinanceClient::ExchangeInfoResponse

Inherits:
BaseResponse show all
Defined in:
lib/binance_client/responses/exchange_info_response.rb

Instance Method Summary collapse

Methods inherited from BaseResponse

#body_code, #default_message, #used_weights

Instance Method Details

#marketsObject Also known as: symbols



16
17
18
19
20
# File 'lib/binance_client/responses/exchange_info_response.rb', line 16

def markets
  @markets ||= body["symbols"].map do |market_hash|
    Market.new(raw_hash: market_hash)
  end
end

#rate_limitsObject



23
24
25
26
27
# File 'lib/binance_client/responses/exchange_info_response.rb', line 23

def rate_limits
  @rate_limits ||= body["rateLimits"].map do |rate_limit_hash|
    RateLimit.new(raw_hash: rate_limit_hash)
  end
end

#server_timeObject



12
13
14
# File 'lib/binance_client/responses/exchange_info_response.rb', line 12

def server_time
  body["serverTime"]
end

#timezoneObject



4
5
6
# File 'lib/binance_client/responses/exchange_info_response.rb', line 4

def timezone
  body["timezone"]
end