Class: Kucoin::Api::Endpoints::Markets::Histories

Inherits:
Kucoin::Api::Endpoints::Markets show all
Defined in:
lib/kucoin/api/endpoints/markets/histories.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

#klines(symbol, type, options = {}) ⇒ Object



11
12
13
# File 'lib/kucoin/api/endpoints/markets/histories.rb', line 11

def klines symbol, type, options={}
  open.ku_request :get, :klines, symbol: symbol, type: type, **options
end

#trade(symbol) ⇒ Object



7
8
9
# File 'lib/kucoin/api/endpoints/markets/histories.rb', line 7

def trade symbol
  open.ku_request :get, :trade, symbol: symbol
end