How to import data from Datastream Web Services using MATLAB

This example is for the video demo with the same title showing how to retrieve historical data from Datastream Web Services (DSWS).

You are now following this Submission

In this example, you will learn:
1. How to connect to DSWS API
2. How to search for symbols and data codes from Datastream Navigator
3. How to use history function to retrieve historical data with various options, including multiple securities symbols, multiple data types, and different time frequency.

The retrieved data is stored in the form of a timetable, which allows you to easily perform other analyses, for example, calculate technical indicators and plot financial charts.

Cite As

MathWorks Quant Team (2026). How to import data from Datastream Web Services using MATLAB (https://se.mathworks.com/matlabcentral/fileexchange/68800-how-to-import-data-from-datastream-web-services-using-matlab), MATLAB Central File Exchange. Retrieved .

Categories

Find more on View and Analyze Simulation Results in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with R2018b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Adding the link to the video demo

1.0.0