class BitFlyer::Models::Ticker

Attributes

best_ask[R]
best_ask_size[R]
best_bid[R]
best_bid_size[R]
ltp[R]
product_code[R]
tick_id[R]
timestamp[R]
total_ask_depth[R]
total_bid_depth[R]
volume[R]
volume_by_product[R]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/bit_flyer/models/ticker.rb, line 17
def initialize(attrs = {})
  @product_code = attrs['product_code']
  @timestamp = Time.parse(attrs['timestamp']).in_time_zone('Tokyo')
  @tick_id = attrs['tick_id']
  @best_bid = attrs['best_bid']
  @best_ask = attrs['best_ask']
  @best_bid_size = attrs['best_bid_size']
  @best_ask_size = attrs['best_ask_size']
  @total_bid_depth = attrs['total_bid_depth']
  @total_ask_depth = attrs['total_ask_depth']
  @ltp = attrs['ltp']
  @volume = attrs['volume']
  @volume_by_product = attrs['volume_by_product']
end