Download Datafeed Toolbox User`s Guide

Transcript
5
Functions — Alphabetical List
history
Retrieve historical data from Thomson Reuters Eikon
Syntax
d = history(c,s,fields)
d = history(c,s,fields,startdate,enddate)
d = history(c,s,fields,startdate,enddate,period)
Description
d = history(c,s,fields) returns historical data for a default date range for the
securities s and the fields fields given the Thomson Reuters Eikon connection object c.
d = history(c,s,fields,startdate,enddate) returns historical data for a date
range beginning with startdate and ending with enddate.
d = history(c,s,fields,startdate,enddate,period) returns historical data
for a date range beginning with startdate, ending with enddate, and using periodicity
period.
Examples
Retrieve Historical Data
To retrieve historical data, create the connection c using treikon. For an example
showing this activity, see “Retrieve Thomson Reuters Eikon Historical Data”.
Retrieve the daily open, high, low, and close prices for Apple.
s = 'AAPL.O';
fields = {'DATE','OPEN','HIGH','LOW','CLOSE'};
d = history(c,s,fields)
d =
5-286