Class: BinanceClient::ExchangeInfoResponse
Instance Method Summary
collapse
#body_code, #default_message, #used_weights
Instance Method Details
#markets ⇒ Object
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_limits ⇒ Object
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_time ⇒ Object
12
13
14
|
# File 'lib/binance_client/responses/exchange_info_response.rb', line 12
def server_time
body["serverTime"]
end
|
#timezone ⇒ Object
4
5
6
|
# File 'lib/binance_client/responses/exchange_info_response.rb', line 4
def timezone
body["timezone"]
end
|