Class: Dtn::Messages::Quote::Level1Update
- Inherits:
-
MessageWithSimpleParser
- Object
- OpenStruct
- Dtn::Message
- MessageWithSimpleParser
- Dtn::Messages::Quote::Level1Update
- Defined in:
- lib/dtn/messages/quote/level1_update.rb
Overview
Streaming level1 dynamic data This message can not be received outside of trading hours
Class Method Summary collapse
Methods inherited from MessageWithSimpleParser
Methods inherited from Dtn::Message
Class Method Details
.parse(line:, client:) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/dtn/messages/quote/level1_update.rb', line 10 def parse(line:, client:) new.tap do |n| apply_values instance: n, attributes: { _skip: nil }.merge(Level1::ALL_FIELDS.slice(*client.quote_update_fields)), values: line.split(",") end end |