I am using the Bloomberg FETCH command to retrieve historical data. I retrieved the strings for these fields by loading bbfields.mat and selecting the following fields from the BBFIELDNAMES array:
'DATE_OF_LAST_HEADER'
'FIRST_TRADING_DATE'
The following code works:
fetch(connect,'SPYUS','history','open',firsttradedate,lasttradedata,'don')
But when I try to substitute one of the above field names, such as:
field = 'FIRST_TRADING_DATE'fetch(connect,'SPYUS','history',field,firsttradedate,lasttradedata,'don')
I get the following message:
no historical data was returned
Best Answer