Request data from FactSet
data = fetch(Connect)
data = fetch(Connect, 'Library')
data = fetch(Connect, 'Security',
'Fields')
data = fetch(Connect, 'Security',
'Fields', 'FromDate',
'ToDate')
data = fetch(Connect, 'Security',
'FromDate',
'ToDate', 'Period')
Connect |
FactSet® connection object created with the |
Library |
FactSet formula library. |
Security |
A MATLAB® character vector, string, cell array of character vectors, or string array containing the names of securities in a format recognizable by the FactSet server. |
Fields |
A MATLAB character vector, string, cell array of character vectors, or string array indicating the data fields for which to retrieve data. |
|
Date character vector, string, or serial date number indicating date for the
requested data. If you enter today's date, |
|
Beginning date for date range. Note You can specify dates in any of the formats supported by
|
|
End date for date range. |
|
Period within date range.
|
data = fetch(Connect)
returns the names of all
available formula libraries.
data = fetch(Connect, 'Library')
returns the
valid field names for a given formula library.
data = fetch(Connect, 'Security',
'Fields')
returns data for the specified security and fields.
data = fetch(Connect, 'Security', 'Fields',
'Date')
returns security data for the specified fields on the requested
date.
data = fetch(Connect, 'Security',
'Fields', 'FromDate',
returns security data for the specified fields for the date range
'ToDate')FromDate
to ToDate
.
data = fetch(Connect, 'Security',
'FromDate',
returns security data for the date range
'ToDate', 'Period')FromDate
to
ToDate
with the specified period.
Obtain the names of available formula libraries:
D = fetch(Connect)
Obtain valid field names of the FactSetSecurityCalcs
library:
D = fetch(Connect, 'fs')
Obtain the closing price of the security IBM
:
D = fetch(Connect, 'IBM', 'price')
Obtain the closing price for IBM
using the default period of the
data:
D = fetch(C, 'IBM', 'price', '09/01/07', '09/10/07')
Obtain the monthly closing prices for IBM
from 09/01/05 to
09/10/07:
D = fetch(C, 'IBM', 'price', '09/01/05', '09/10/07', 'm')
close
| factset
| isconnection