class ItBitSDK::Ticker
Attributes
ask[RW]
ask_amt[RW]
bid[RW]
bid_amt[RW]
high_24h[RW]
high_today[RW]
last_amt[RW]
last_price[RW]
low_24h[RW]
low_today[RW]
open_today[RW]
pair[RW]
volume_24h[RW]
volume_today[RW]
vwap_24h[RW]
vwap_today[RW]
Public Class Methods
new(params:)
click to toggle source
# File lib/it_bit_sdk/domain/ticker.rb, line 5 def initialize(params:) @pair = params['pair'] @bid = params['bid'] @bid_amt = params['bidAmt'] @ask = params['ask'] @ask_amt = params['askAmt'] @last_price = params['lastPrice'] @last_amt = params['lastAmt'] @volume_24h = params['volume24h'] @volume_today = params['volume_today'] @high_24h = params['high24h'] @high_today = params['high_today'] @low_24h = params['low24h'] @low_today = params['lowToday'] @open_today = params['openToday'] @vwap_today = params['vwapToday'] @vwap_24h = params['vwap24h'] end