Create a FactSet Workstation connection and specify the field information file.
Then, retrieve real-time data for a security.
Connect to the FactSet Workstation using a user name, password, and field information
file. c
is an fds
object.
c =
fds with properties:
Handle: [1×1 COM.FDSRTCom_FDF]
Retrieve real-time data for the FDS1
service and
ABCD-USA
security by using the FactSet Workstation connection. Use the default event handler function
myMessageEventHandler
to process real-time data events from the
FactSet Workstation. To access the code for the default event handler function,
enter edit myMessageEventHandler
at the command line. You can write a
custom function to process real-time data events differently. For details, see Writing and Running Custom Event Handler Functions.
t =
1
ABCD-USA:D 11-Sep-2017 14:04:53 6.27
ABCD-USA:D 11-Sep-2017 14:07:00 6.29
...
The realtime
function returns a data tag t
for
the real-time request. Then, the event handler function returns the following data to the
Command Window:
Security name
Date
Time
Last price
Stop real-time data retrieval.
Close the FactSet Workstation connection.