Class: BinanceClient::OrderBookDepthRequest

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/binance_client/requests/order_book_depth_request.rb

Instance Method Summary collapse

Methods inherited from BaseRequest

#headers

Instance Method Details

#paramsObject



11
12
13
14
15
# File 'lib/binance_client/requests/order_book_depth_request.rb', line 11

def params
  h = {symbol: symbol}
  h[:limit] = limit if not limit.nil?
  h.to_query
end

#pathObject



7
8
9
# File 'lib/binance_client/requests/order_book_depth_request.rb', line 7

def path
  "/api/v3/depth"
end