module Kucoin::Rest::Private::Markets

Public Instance Methods

favorite_symbols(options: {}) click to toggle source
# File lib/kucoin/rest/private/markets.rb, line 30
def favorite_symbols(options: {})
  options.merge!(authenticate: true)
  response    =   get("/market/fav-symbols", params: {}, options: options)&.fetch("data", {})
end
stick_symbols(options: {}) click to toggle source
# File lib/kucoin/rest/private/markets.rb, line 25
def stick_symbols(options: {})
  options.merge!(authenticate: true)
  response    =   get("/market/stick-symbols", params: {}, options: options)&.fetch("data", {})
end
user_market_symbols(market: nil, symbol: nil, filter: nil, options: {}) click to toggle source

Market: BTC, ETH, etc. Symbol: HPB-ETH, ITC-ETH etc. Filter: FAVOURITE / STICK

# File lib/kucoin/rest/private/markets.rb, line 10
def user_market_symbols(market: nil, symbol: nil, filter: nil, options: {})
  options.merge!(authenticate: true)
  
  params      =   {
    market: market.to_s.upcase,
    symbol: symbol.to_s.upcase,
    filter: filter.to_s.upcase
  }
  
  params.delete_if { |key, value| value.nil? || value.to_s.empty? }
  
  response    =   get("/market/symbols", params: params, options: options)&.fetch("data", {})
  ::Kucoin::Models::Ticker.parse(response) if response
end