Class: Dtn::Streaming::Requests::Quote::RegionalSwitch
- Inherits:
-
Dtn::Streaming::Request
- Object
- Dtn::Streaming::Request
- Dtn::Streaming::Requests::Quote::RegionalSwitch
- Defined in:
- lib/dtn/streaming/requests/quote/regional_switch.rb
Overview
Request updates when the regional quote for a symbol changes.
:param symbol: A valid symbol for a security or derivative.
IQFeed.exe will send a regional message for the symbol whenever the top of book quote on a regional exchange changes. This is the top of book on each exchange where the security or derivative trades, as opposed to the market-wide top of book which you get when you call watch on a symbol. It is NOT the full order book.
This produce ‘level1_summary` message
Instance Method Summary collapse
Methods inherited from Dtn::Streaming::Request
Constructor Details
This class inherits a constructor from Dtn::Streaming::Request
Instance Method Details
#call(symbol:, turned_on: true) ⇒ Object
19 20 21 |
# File 'lib/dtn/streaming/requests/quote/regional_switch.rb', line 19 def call(symbol:, turned_on: true, **) socket.puts "S,REG#{turned_on ? "ON" : "OFF"},#{symbol.upcase}\r\n" end |