Main Content

realtime

Obtain real-time data from FactSet Workstation

Description

example

T = realtime(c,Srv,Sec,Cb) asynchronously requests real-time or streaming data from the FactSet® Workstation.

example

T = realtime(c,Srv,Sec) asynchronously requests real-time or streaming data from the FactSet Workstation. When Cb is not specified, the default message event handler factsetMessageEventHandler is used.

Examples

collapse all

To request real-time or streaming data for the symbol 'ABDC-USA' from the service 'FDS1', a user-defined event handler (myMessageEventHandler) is used to process message events using this syntax.

t = realtime(c,'FDS1','ABCD-USA',@(varargin)myMessageEventHandler(varargin))

To request real-time or streaming data for the symbol 'ABDC-USA' from the service 'FDS1', using this syntax.

t = realtime(c,'FDS1','ABCD-USA')

The default event handler is used which returns a structure X to the base MATLAB® workspace containing the latest data for the symbol 'ABCD-USA'. X is updated as new message events are received.

Input Arguments

collapse all

FactSet Workstation connection, specified as a connection object created using fds.

Data source or supplier, specified as a character vector or string scalar.

Example: 'FDS1'

Data Types: char | string

Security symbol, specified as a character vector or string scalar.

Example: 'ABCD-USA'

Data Types: char | string

Event handler, specified as a function handle requests real-time or streaming data from the service FactSet Workstation.

If Cb is not specified, the default message event handler factsetMessageEventHandler is used.

Example: @(varargin)myMessageEventHandler(varargin)

Data Types: function_handle

Output Arguments

collapse all

Real-time data tag, returned as a nonnegative integer from FactSet Workstation.

Version History

Introduced in R2013a