module Kucoin::Rest::Public::Markets

Public Instance Methods

coin_info(coin, options: {}) click to toggle source
# File lib/kucoin/rest/public/markets.rb, line 36
def coin_info(coin, options: {})
  response    =   get("/market/open/coin-info", params: {coin: coin}, options: options)&.fetch("data", {})
  ::Kucoin::Models::Coin.new(response) if response
end
coins(options: {}) click to toggle source
# File lib/kucoin/rest/public/markets.rb, line 31
def coins(options: {})
  response    =   get("/market/open/coins", options: options)&.fetch("data", {})
  ::Kucoin::Models::Coin.parse(response) if response
end
market_symbols(market: nil, options: {}) click to toggle source
# File lib/kucoin/rest/public/markets.rb, line 10
def market_symbols(market: nil, options: {})
  params      =   {
    market: market.to_s.upcase,
  }
  
  params.delete_if { |key, value| value.nil? || value.to_s.empty? }
  
  response    =   get("/market/open/symbols", params: params, options: options)&.fetch("data", {})
  ::Kucoin::Models::Ticker.parse(response) if response
end
markets(options: {}) click to toggle source
# File lib/kucoin/rest/public/markets.rb, line 6
def markets(options: {})
  get("/open/markets", options: options)&.fetch("data", {})
end