Documentation Center

  • Trial Software
  • Product Updates

Retrieve Time-Series Data

timeseries returns price and volume data for a particular security on a specified date. Use the following command to return time-series data for a given security and a specific date:

data = timeseries(Connection, Security, Date)

Date can be a MATLAB® date string or serial date number.

To obtain time-series data for the current day, use the alternate form of the function:

data = timeseries(Connection, Security, floor(now))

To obtain time-series data for IBM using an existing connection c, enter the following:

c = blp
data = timeseries(c, 'IBM US Equity', floor(now));
Was this topic helpful?