Bloomberg getdata() issue: Nothing returned
3 次查看(过去 30 天)
显示 更早的评论
I used the following code to request some historical and current data from Bloomberg:
c = blp
startdate = '01/01/1950';
enddate = '12/31/2020';
c.DataReturnFormat = 'table';
c.DatetimeType = 'datetime';
[k, d] = history(c, 'AAPL US Equity', 'PX_LAST', startdate,enddate, [], [])
[g,sec] = getdata(c, 'MSFT US Equity', {'LAST_PRICE';'OPEN'} )
I had two issues. I am writing both here as they might be related.
(1) I had to run the history() function twice to get a result, as the first time it returned an error (‘Error using blp/history>eventHandler (line 467) No securities specified [nid:128]’).
(2) I did not manage to retrieve any data using the getdata() function. (please see attached screenshot). You can see (in the top right corner) that there is no output in neither ‘g’ nor ‘sec’.
Any help with these issues would be highly appreciated.

0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bloomberg Desktop 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!