This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


SIX Financial Information identification string to field name


D = tkidtofield(c,f,typ)


D = tkidtofield(c,f,typ) converts SIX Financial Information field identification strings to their corresponding field names. c is the SIX Financial Information connection object, f is the ID list, and typ denotes the fields. Options for the fields include market, 'market'; time and sales, 'tass'; and history, 'history'. market fields are used with getdata, tass fields are used with timeseries, and history fields are used with the history.


When you retrieve output from SIX Financial Information, it appears as follows:

d = 
    XRF: [1x1 struct]
     IL: [1x1 struct]
      I: [1x1 struct]
      M: [1x1 struct]
      P: [1x1 struct]

The instrument IDs are found in d.I, and the pricing data is found in d.P. The output for d.P.k appears like this:

ans = 


Convert the field IDs in d.P.k to their field names with tkidtofield:

d.P.k = tkidtofield(c,d.P.k,'market')

Load the file @tlkrs/tkfields.mat for a listing of the field names and their corresponding field IDs.

Introduced in R2011b

Was this topic helpful?