SIX Financial Information identification string to field name
D = tkidtofield(
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'; time and sales,
market fields are used
fields are used with
history fields are used with the
Convert Field Identification Strings to Field Names
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 = '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
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.
c — connection object
Connection object, specified as a
f — field IDs
cell array of character vectors
Field IDs, specified as a cell array of character vectors.
typ — field
Field, specified as
Introduced in R2011b