class Binance::SDK::Exchange
Public Class Methods
info!()
click to toggle source
# File lib/binance/sdk/exchange.rb, line 5 def info! timestamp = Configuration.timestamp params = { recvWindow: 5000, timestamp: timestamp } Request.send!( api_key_type: :read_info, path: Endpoints.fetch(:exchange_info), params: params.delete_if { |key, value| value.nil? }, security_type: :user_data, api_key: Configuration.api_key, api_secret_key: Configuration.secret_key ) end
long_short_ratio(symbol:, period:, limit: 30)
click to toggle source
# File lib/binance/sdk/exchange.rb, line 17 def long_short_ratio(symbol:, period:, limit: 30) params = { recvWindow: 5000, timestamp: Configuration.timestamp, symbol: symbol, period: period, limit: limit } Request.send!( api_key_type: :read_info, path: Endpoints.fetch(:long_short_ratio), params: params.delete_if { |_, value| value.nil? }, security_type: :user_data, api_key: Configuration.api_key, api_secret_key: Configuration.secret_key ) end
taker_buy_sell_volume(symbol:, period:, limit: 30)
click to toggle source
# File lib/binance/sdk/exchange.rb, line 27 def taker_buy_sell_volume(symbol:, period:, limit: 30) params = { recvWindow: 5000, timestamp: Configuration.timestamp, symbol: symbol, period: period, limit: limit } Request.send!( api_key_type: :read_info, path: Endpoints.fetch(:taker_buy_sell_volume), params: params.delete_if { |_, value| value.nil? }, security_type: :user_data, api_key: Configuration.api_key, api_secret_key: Configuration.secret_key ) end