Quantcast

Documentation Center

  • Trial Software
  • Product Updates

realtime

Obtain real-time data from FactSet Data Server

Syntax

Description

example

T = realtime(F,Srv,Sec,Cb) asynchronously requests real-time or streaming data from the FactSet® Data Server or local workstation.

example

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

Examples

expand all

Request FactSet Data Server Real-Time Data with User-Defined Event Handler

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 = f.realtime('FDS1','ABCD-USA',@(varargin)myMessageEventHandler(varargin))

Request FactSet Data Server Real-Time Data Using Default Event Handler

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

t = f.realtime('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

expand all

F — FactSet Data Server connection objectobject structure

FactSet Data Server connection object, specified using fds.

Srv — Data source or supplierstring

Data source or supplier, specified as a string.

Example: 'FDS1'

Data Types: char

Sec — Security symbolstring

Security symbol, specified as a string.

Example: 'ABCD-USA'

Data Types: char

Cb — Event handlerfunction handle

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

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

Example: @(varargin)myMessageEventHandler(varargin)

Data Types: function_handle

Output Arguments

expand all

T — Real-time data tagnonnegative integer

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

See Also

| |

Was this topic helpful?