Class: Dtn::Streaming::Requests::Quote::Watch

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

Overview

Watch a symbol requesting updates for both trades and quotes.

:param symbol: A valid symbol for a security or derivative.

IQFeed.exe will send a summary message and a fundamental message for the symbol followed by an update message every time there is trade or the top of book quote changes.

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(symbol:) ⇒ Object



15
16
17
# File 'lib/dtn/streaming/requests/quote/watch.rb', line 15

def call(symbol:)
  socket.puts "w#{symbol.upcase}\r\n"
end