Class: Dtn::Streaming::Requests::Quote::Trades

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

Overview

Watch a symbol requesting updates only when a trade happens.

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

IQFeed.exe will send a summary message for the symbol followed by an update message every time there is a trade.

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



14
15
16
# File 'lib/dtn/streaming/requests/quote/trades.rb', line 14

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