Bloomberg Datafeed toolbox override

3 visualizaciones (últimos 30 días)
Gregory
Gregory el 14 de Sept. de 2018
Respondida: Weiwei Hong el 15 de Jun. de 2023
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);

Respuestas (1)

Weiwei Hong
Weiwei Hong el 15 de Jun. de 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.

Categorías

Más información sobre Bloomberg Desktop en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by