Module: Bitfinex::RESTv1Trades

Included in:
RESTv1
Defined in:
lib/rest/v1/trades.rb

Instance Method Summary collapse

Instance Method Details

#trades(symbol = "btcusd", params = {}) ⇒ Array

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

@example:

client.trades


11
12
13
14
# 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