Skip to Main Content Skip to Search
Product Documentation

Retrieve Historical Data

Use the history method to obtain historical data for a specific security.

To obtain historical data for a specified field of a particular security, run:

d = history(Connect,Security,Field,FromDate,ToDate)

history returns data for the date range from FromDate to ToDate.

For example, to obtain the closing price for IBM for the dates July 15, 2009 to August 2, 2009 using the connection c, enter:

c = blp
data = history(c, 'IBM US Equity', 'Last_Price',... 
'07/15/2009', '08/02/2009');
  


Free Interactive Computational Finance CD

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