Class: Dtn::Streaming::Requests::Quote::Refresh

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

Overview

Request a refresh for the symbol.

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

IQFeed.exe will send a summary message and a fundamental message for this security after it receives this message. This is useful if for some reason you believe you have bad data for the security in your cache. It cannot be used to get a data snapshot for a symbol you have not subscribed to. IQFeed.exe will ignore refresh requests for symbols you are not watching.

It is a good idea to do this for all symbols you are watching if the feed disconnects and reconnects and you haven’t gotten an update shortly after the reconnection.

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



22
23
24
# File 'lib/dtn/streaming/requests/quote/refresh.rb', line 22

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