module Bitfinex::RESTv1Trades

Public Instance Methods

trades(symbol="btcusd", params={}) click to toggle source

Get a list of the most recent trades for the given symbol.

@param symbol [string] the name of the symbol @param params :timestamp [time] Only show trades at or after this timestamp. @param params :limit_trades [int] Limit the number of trades returned. Must be >= 1. @return [Array] @example:

client.trades
# File lib/rest/v1/trades.rb, line 11
def trades(symbol="btcusd", params={})
  check_params(params, %i{timestamp limit_trades})
  get("trades/#{symbol}", params).body
end