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.


End of day SIX Financial Information data


D = history(c,s,f,fromdate,todate)


D = history(c,s,f,fromdate,todate) returns the historical data for the security list s, for the fields f, for the dates fromdate to todate.


Retrieve end of day SIX Financial Information data for the specified security for the past 5 days.

c = tlkrs('US12345','userapid01','userapid10')
ids = tkfieldtoid(c,{'Bid','Ask'},'history');
d = history(c,{'1758999,149,134'},ids,floor(now)-5,floor(now));
d = 

    XRF: [1x1 struct]
     IL: [1x1 struct]
      I: [1x1 struct]
     HL: [1x1 struct]
     HD: [1x1 struct]
      P: [1x1 struct]

d.I contains the instrument IDs, d.HD contains the dates, and d.P contains the pricing data.

View the dates:


ans = 


View the pricing field IDs:


ans = 


View the pricing data:


ans = 


Convert the field identification values in d.P.k to their corresponding field names like this:

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

Introduced in R2011b

Was this topic helpful?