Module: Bitfinex::RESTv1Ticker

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

Instance Method Summary collapse

Instance Method Details

#ticker(symbol = "btcusd") ⇒ Hash

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

@example:

client.ticker

Parameters:

  • symbol (string) (defaults to: "btcusd")

    The name of hthe symbol

Returns:

  • (Hash)


9
10
11
# File 'lib/rest/v1/ticker.rb', line 9

def ticker(symbol = "btcusd")
  get("pubticker/#{symbol}").body
end