module Bitfinex::RESTv2Ticker

Public Instance Methods

ticker(*symbols) click to toggle source

Gives innermost bid and asks and information on the most recent trade, as well as high, low and volume of the last 24 hours.

@param symbols a list of symbols @return [Hash] @example:

client.ticker("tBTCUSD","tLTCUSD","fUSD")
# File lib/rest/v2/ticker.rb, line 12
def ticker(*symbols)
  if symbols.size == 1
    get("ticker/#{symbols.first}").body
  else
    get("tickers", symbols: "#{symbols.flatten.join(",")}").body
  end
end