module Kucoin::Rest::Public::Trades

Public Instance Methods

trades(symbol, limit: 100, since: nil, options: {}) click to toggle source
# File lib/kucoin/rest/public/trades.rb, line 6
def trades(symbol, limit: 100, since: nil, options: {})
  params    =   {
    symbol: symbol,
    limit:  limit,
    since:  since
  }
  
  params.delete_if { |key, value| value.nil? }
  
  response  = get("/open/deal-orders", params: params, options: options)&.fetch("data", {})
  ::Kucoin::Models::Trade.parse(response) if response
end