How do I retrieve static data from a list using the Thomson Datastream API provided by Datafeed Toolbox in MATLAB 7.2 (R2006a)?
2 views (last 30 days)
Show older comments
I want to retrieve static data from a list like 'LFRCAC40' using the Datafeed Toolbox. When I execute the following command:
data = fetch(datastream_connection, {'LFRCAC40'}, {'P'}, '8/01/2006')
I receive the following error message:
??? Error using ==> datastream.fetch
$$"ER", E100, INVALID CODE OR EXPRESSION ENTERED, LFRCAC40(P)
I have also tried retrieving NAME field using the Datafeed Toolbox:
data = fetch(datastream_connection, {'IBM'}, {'NAME'})
I get the same error:
??? Error using ==> datastream.fetch at 219
$$"ER", E100, INVALID CODE OR EXPRESSION ENTERED, IBM(NAME)
Accepted Answer
MathWorks Support Team
on 20 Jun 2011
This change has been incorporated into the documentation in Release 2011a (R2011a). For previous releases, read below for any additional information:
To get the static data from a list, you can type :
x = fetch(datastream_connection,'LFRCAC40~REP','P')
or
x = fetch(datastream_connection,'LFRCAC40~REP~=P')
The REP is needed to denote a static report. This is a Datastream specific syntax.
NAME, SECD, and ISIN are some examples of the static fields and need to be requested
with the '~REP' flag:
data = fetch(datastream_connection,{'IBM~REP'}, {'NAME'});
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!