class Kucoin::Api::Endpoints::Markets::OrderBook

Public Instance Methods

full_aggregated(symbol) click to toggle source
# File lib/kucoin/api/endpoints/markets/order_book.rb, line 13
def full_aggregated symbol
  open.ku_request :get, :full_aggregated, symbol: symbol
end
full_atomic(symbol) click to toggle source
# File lib/kucoin/api/endpoints/markets/order_book.rb, line 17
def full_atomic symbol
  open.ku_request :get, :full_atomic, symbol: symbol
end
part(symbol, depth) click to toggle source
# File lib/kucoin/api/endpoints/markets/order_book.rb, line 7
def part symbol, depth
  options = { symbol: symbol, depth: depth }
  assert_required_param options, :depth, depth_types
  open.ku_request :get, :part_aggregated, **options
end

Private Instance Methods

depth_types() click to toggle source
# File lib/kucoin/api/endpoints/markets/order_book.rb, line 23
def depth_types
  %w(20 100)
end