Bloomberg Datafeed toolbox override

2 ビュー (過去 30 日間)
Gregory
Gregory 2018 年 9 月 14 日
回答済み: Weiwei Hong 2023 年 6 月 15 日
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);

回答 (1 件)

Weiwei Hong
Weiwei Hong 2023 年 6 月 15 日
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.

カテゴリ

Help Center および File ExchangeBloomberg Desktop についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by