Class: Bitfinex::Models::FundingTicker

Inherits:
Model
  • Object
show all
Defined in:
lib/models/funding_ticker.rb

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  symbol: 0,
  frr: 1,
  bid: 2,
  bid_size: 3,
  bid_period: 4,
  ask: 5,
  ask_size: 6,
  ask_period: 7,
  daily_change: 8,
  daily_change_perc: 9,
  last_price: 10,
  volume: 11,
  high: 12,
  low: 13
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ FundingTicker

Returns a new instance of FundingTicker.



28
29
30
# File 'lib/models/funding_ticker.rb', line 28

def initialize (data)
  super(data, FIELDS, BOOL_FIELDS)
end

Class Method Details

.unserialize(data) ⇒ Object



32
33
34
# File 'lib/models/funding_ticker.rb', line 32

def self.unserialize (data)
  return Model.unserialize(data, FIELDS, BOOL_FIELDS)
end