Main Content

tkfieldtoid

SIX Financial Informationfield names to identification string

Description

example

D = tkfieldtoid(c,f,typ)convertsSIX Financial Informationfield names to their corresponding identification strings.cis theSIX Financial Informationconnection object,fis the field list, andtypdenotes the field. Options for the field include market,'market'; time and sales,'tass'; and history,'history'.marketfields are used withgetdata,tassfields are used withtimeseries, andhistoryfields are used withhistory.

Examples

collapse all

Retrieve pricing data associated with specified identification strings:

% Connect to SIX Telekurs.c = tlkrs('US12345','userapid01','userapid10')% Convert field names to identification strings.ids = tkfieldtoid(c,{'bid','ask','last'},'market');% Retrieve data associated with the identification strings.d = getdata(c,{'1758999,149,134','275027,148,184',ids);

Input Arguments

collapse all

Connection object, specified as atlkrsobject.

Field names, specified as a cell array of character vectors.

Field, specified as'market','tass', or'history'.

版本历史

Introduced in R2011b

Baidu
map