Bloomberg Datafeed toolbox override

4 vues (au cours des 30 derniers jours)
Gregory
Gregory le 14 Sep 2018
Hello,
My question is related to accessing data from Bloomberg.
I am looking at a list of bonds (BONDLIST---below). I am trying to pull price and some other data (I have bloomberg permissions for all the data.) My code, below, only returns the price data (PX_LAST) and #N/As for the others. I believe there is an override that can be called but I wasnt able to get it work.
If you know how to get the other data please share. It is very much appreciated. Have a great day.
GAF
f={'PX_LAST';'YAS_BOND_YIELD';'YAS_OAS_SPRD';'RTG_MOODY'};
[d,sec] = history(c,string(BONDLIST(xx)),f,fromdate,todate,period);

Réponses (1)

Weiwei Hong
Weiwei Hong le 15 Juin 2023
Hi, you can use the override field and value to pull data on a historical date
e.g.
c = blp
s = '/isin/US88160RAG65';
f = {'RTG_MOODY';'RTG_SP';'RTG_FITCH';'BB_COMPOSITE';'CALLED';'CALLED_DT'};
rtg_t = getdata(c,s,f,{'CUSTOM_USER_DATA_END_DT_OVERRIDE'},{'5/31/2023'});
OR
rtg_t = getdata(c,s,f,{'RATING_AS_OF_DATE_OVERRIDE'},{'5/31/2023'});
You can also use FLDS <GO> in Bloomberg and search for override fields that are available in bloomberg and use them in the function.

Catégories

En savoir plus sur Bloomberg Desktop dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by