history

Request data from Reuters Time Series One

Syntax

d = history(r,s)
d = history(r,s,p)
d = history(r,s,f)
d = history(r,s,f,p)
d = history(r,s,d)
d = history(r,s,startdate,enddate)
d = history(r,s,startdate,enddate,p)
d = history(r,s,f,startdate,enddate)
d = history(r,s,f,startdate,enddate,p)

Description

d = history(r,s) returns all available daily historical data for the RIC, s, for the Reuters® session object r.

d = history(r,s,p) returns all available historical data for the RIC, s, for the Reuters session object r. p specifies the period of the data:

  • 'd' - daily (default)

  • 'w' - weekly

  • 'm' - monthly

    Note:   Reuters Time Series One will only return two years of daily data, five years of weekly data, or ten years of monthly data from the current date.

d = history(r,s,f) returns all available historical data for the RIC, s, and fields, f, for the Reuters session object r.

d = history(r,s,f,p) returns all available historical data for the RIC, s, and fields, f, for the Reuters session object r. p specifies the period of the data.

d = history(r,s,d) returns the historical data for the RIC, s, for the given date, d, for the Reuters session object r.

d = history(r,s,startdate,enddate) returns the daily historical data for the RIC, s, for the given date range defined by startdate and enddate.

d = history(r,s,startdate,enddate,p) returns the daily historical data for the RIC, s, for the given date range defined by startdate and enddate. p specifies the period of the data.

d = history(r,s,f,startdate,enddate) returns the daily historical data for the RIC, s, for the given date range defined by startdate and enddate.

d = history(r,s,f,startdate,enddate,p) returns the historical data for the RIC, s, and fields, f, for the given date range defined by startdate and enddate. p specifies the period of the data.

Examples

d = history(r,'WXYZ.O') returns a structure containing all available historical end of day daily data for the RIC 'WXYZ.O', for the Reuters session object r.

d = history(r,'WXYZ.O','close') returns a structure with the fields date and close containing all available historical end of day daily data for the RIC 'WXYZ.O'.

d = history(r,'WXYZ.O','close','m') returns all available monthly data.

d = history(r,'WXYZ.O','01-03-2009','02-24-2009') returns all available daily data for the date range 01-03-2009 to 02-24-2009. Note that only two years worth of daily data, five years worth of weekly data, and 10 years of monthly data from today's date is made available by Reuters.

d = history(r,'WXYZ.O',{'close','volume'},'01-03-2009','02-24-2009') returns all available daily data for the date range 01-03-2009 to 02-24-2009 for the fields date, close and volume.

d = history(r,'WXYZ.O',{'close','volume'},'01-03-2009','02-24-2009','w') returns all available weekly data for the date range 01-03-2009 to 02-24-2009 for the fields date, close and volume.

See Also

|

Was this topic helpful?