How to retrieve historical data from Bloomberg for 20 securities
1 view (last 30 days)
Show older comments
Hi, mates. Thank you for reading my question. From the datafeed documenation, I understand how to retrieve historical data for multiple stocks. For example, attached 1. However, when I was trying to expand the number of stocks, eg, 20, as attached 2, there was no any price displayed. Is there any coding-error? Looking forward to receive your answers. Thank you very much.
Best regards. John
2 Comments
Prashant Arora
on 19 Oct 2017
Hi Jiang,
I am unable to reproduce this behavior at my end. I used your exact code and I am able to see the data populated in the variable d. You should use cell-indexing like d{1}, d{2} to see the data. The attached image only shows the "sec" variable and hence I am not sure what the "d" variable looks like after you execute your code.
Answers (0)
See Also
Categories
Find more on Bloomberg Desktop 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!