Class: Dtn::Streaming::Requests::Level2::Watch

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

Overview

Watch a symbol.

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

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



11
12
13
# File 'lib/dtn/streaming/requests/level2/watch.rb', line 11

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