fetch

Request data from Interactive Data data servers

Syntax

data = fetch(Connect, 'Security', 'Fields')
data = fetch(Connect, 'Security', 'Fields', 'FromDate', 'ToDate')
data = fetch(Connect, 'Security', 'Fields', 'FromDate', 'ToDate', 'Period')
data = fetch(Connect,'','GUILookup','GUICategory')

Arguments

ConnectInteractive Data™ connection object created with idc.

'Security'

A MATLAB® string containing the name of a security in a format recognizable by the Interactive Data server.

'Fields'

A MATLAB string or cell array of strings indicating specific fields for which to provide data. Valid field names are in the file @idc/idcfields.mat. The variable bbfieldnames contains the list of field names.

'FromDate'

Beginning date for historical data.

    Note:   You can specify dates in any of the formats supported by datestr and datenum that show a year, month, and day.

'ToDate'

End date for historical data.

'Period'

Period within date range.

'GUICategory'

GUI category. Possible values are:

  • 'F' (All valid field categories)

  • 'S' (All valid security categories)

Description

data = fetch(Connect, 'Security', 'Fields') returns data for the indicated fields of the designated securities. Load the file idc/idcfields to see the list of supported fields.

data = fetch(Connect, 'Security', 'Fields', 'FromDate', 'ToDate') returns historical data for the indicated fields of the designated securities.

data = fetch(Connect, 'Security', 'Fields', 'FromDate', 'ToDate', 'Period') returns historical data for the indicated fields of the designated securities with the designated dates and period. Consult the Remote Plus documentation for a list of valid'Period' values.

data = fetch(Connect,'','GUILookup','GUICategory') opens the Interactive Data dialog box for selecting fields or securities.

Examples

Open the dialog box to look up securities:

D = fetch(Connect,'','GUILookup','S') 

Open the dialog box to select fields:

D = fetch(Connect,'','GUILookup','F')

See Also

| | |

Was this topic helpful?