Class: Dtn::Messages::Quote::Level1Regional

Inherits:
MessageWithSimpleParser show all
Defined in:
lib/dtn/messages/quote/level1_regional.rb

Overview

Streaming level1 regional update.

Class Method Summary collapse

Methods inherited from MessageWithSimpleParser

parse, #termination?

Methods inherited from Dtn::Message

#callback_name, callback_name, parse

Class Method Details

.fieldsObject

rubocop:disable Metrics/MethodLength



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/dtn/messages/quote/level1_regional.rb', line 10

def fields
  @fields ||= {
    _skip: :nil,
    "Symbol" => :to_s,
    _skip2: :to_s,
    "Regional Bid" => :to_f,
    "Regional BidSize" => :to_i,
    "Regional BidTime" => :to_time,
    "Regional Ask" => :to_f,
    "Regional AskSize" => :to_i,
    "Regional AskTime" => :to_time,
    "Fraction Display Code" => :to_i,
    "Decimal Precision" => :to_i,
    "Market Center" => :to_i
  }
end