Class: Dtn::Streaming::Requests::Quote::UpdateFields

Inherits:
Dtn::Streaming::Request show all
Defined in:
lib/dtn/streaming/requests/quote/update_fields.rb

Overview

Set list of fields for level1 summary & updates messages.

Instance Method Summary collapse

Methods inherited from Dtn::Streaming::Request

#initialize

Constructor Details

This class inherits a constructor from Dtn::Streaming::Request

Instance Method Details

#call(list:) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/dtn/streaming/requests/quote/update_fields.rb', line 9

def call(list:)
  arr = normalize(list: list)
  validate(arr: arr)
  arr.delete("Symbol")
  arr.unshift("Symbol")
  client.quote_update_fields = arr

  socket.print "S,SELECT UPDATE FIELDS,#{arr.join(",")}\r\n"
end