| Contents | Index |
D = timeseries(c,s,t)
D = timeseries(c,s,{startdate,enddate})
D = timeseries(c,s,t,5)
D = timeseries(c,s,t) returns the raw tick data for the SIX Telekurs connection object c, the security s, and the date t. Every trade, best, and ask tick is returned for the given date or date range.
D = timeseries(c,s,{startdate,enddate}) returns the raw tick data for the security s, for the date range defined by startdate and enddate.
D = timeseries(c,s,t,5) returns the tick data for the security s, for the date t in intervals of 5 minutes, for the field f. Intraday tick data requested is returned in 5-minute intervals, with the columns representing First, High, Low, Last, Volume Weighted Average, and Moving Average.
Retrieve SIX Telekurs intraday tick data for the past 2 days:
c = tlkrs('US12345','userapid01','userapid10')
d = timeseries(c,{'1758999,149,134'}, ...
{floor(now)-.25,floor(now)})Display the returned data:
d =
XRF: [1x1 struct]
IL: [1x1 struct]
I: [1x1 struct]
TSL: [1x1 struct]
TS: [1x1 struct]
P: [1x1 struct]
d.I contains the instrument IDs, d.TS contains the date and time data, and d.P contains the pricing data.
Display the tick times:
d.TS.t(1:10)
ans =
'013500'
'013505'
'013510'
'013520'
'013530'
'013540'
'013550'
'013600'
'013610'
'013620'
Display the field IDs:
d.P.k(1:10)
ans =
'3,4'
'3,2'
'3,3'
'3,4'
'3,2'
'3,3'
'3,4'
'3,2'
'3,3'
'3,4'
Convert these IDs to field names (Mid, Bid, Ask) with the tkidtofield method:
d.P.k = tkidtofield(c,d.P.k,'history')
Load the file @tlkrs/tkfields.mat for a listing of the field names and corresponding IDs.
Display the corresponding tick values:
d.P.v(1:10)
ans =
'45.325'
'45.32'
'45.33'
'45.325'
'45.32'
'45.33'
'45.325'
'45.32'
'45.33'
'45.325'
tlkrs | tlkrs.getdata | tlkrs.history
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 |