Class: Kucoin::Api::Endpoints::Markets::OrderBook

Inherits:
Kucoin::Api::Endpoints::Markets show all
Defined in:
lib/kucoin/api/endpoints/markets/order_book.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Kucoin::Api::Endpoints::Markets

#index, #stats

Methods inherited from Base

#assert_param_is_one_of, #assert_required_param, #auth, #initialize, #open, #path, #url

Constructor Details

This class inherits a constructor from Kucoin::Api::Endpoints::Base

Instance Method Details

#full_aggregated(symbol) ⇒ Object



13
14
15
# 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) ⇒ Object



17
18
19
# 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) ⇒ Object



7
8
9
10
11
# 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