Why does the Bloomberg FETCH command error out when fetching Index data in Datafeed Toolbox 2.1 (R2007b)?

I am using the Datafeed Toolbox 3.0 (R2007b) to get Index data from Bloomberg.
Unfortunately my code errors out:
Startdate = '01/01/90';
Enddate = today;
Connect = bloomberg;
fetch(Connect, 'ADP CHNG INDEX', 'HISTORY', 'ACTUAL_RELEASE', Startdate, Enddate);
With this error
??? Error using ==> bloomberg.fetch at 450
No historical data was returned. Field list may contain entry that is invalid for historical data requests.

 Accepted Answer

The security market type, in this case Index, is case sensitive. It's always capitalized followed by all lower case letters:
Equity instead of EQUITY
Index instead of INDEX ...
To make the code work you only need to rewrite INDEX to Index:
fetch(Connect, 'ADP CHNG Index', 'HISTORY', 'ACTUAL_RELEASE', Startdate, Enddate);

More Answers (0)

Products

Release

R2007b

Community Treasure Hunt

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

Start Hunting!