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).
Updated 28 Nov 2018

View License

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 (2024). How to import data from Datastream Web Services using MATLAB (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux
Find more on View and Analyze Simulation Results in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Adding the link to the video demo