Skip to Main Content Skip to Search
Product Documentation

tlkrs.tkidtofield - SIX Telekurs identification string to field name

Syntax

D = tkidtofield(c,f,typ)

Description

D = tkidtofield(c,f,typ) converts SIX Telekurs field identification strings to their corresponding field names. c is the SIX Telekurs 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 the tlkrs.getdata method, tass fields are used with the tlkrs.timeseries method, and history fields are used with the tlkrs.history method.

Examples

When you retrieve output from SIX Telekurs, 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 = 

    '33,2,1'
    '33,3,1'
    '3,1,1'
    '33,2,1'
    '33,3,1'
    '3,1,1'

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

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.

See Also

tlkrs | tlkrs.getdata | tlkrs.history | tlkrs.timeseries | tlkrs.tkfieldtoid

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS