Bloomberg API request DVD_HIST with DVD_START_DT and DVD_END_DT disabled

First, let me apologize for my bad English.

I am writing a Java servlet, HistoricalDataRequest (BDH Excel add-in function) and ReferenceDataRequest (Excel BDP add-in function) work fine.

And now I'm trying to request the DVD_HIST function (BDS Excel add-in function), but when I set the override for DVD_START_DT and DVD_END_DT, I get this exception:

com.bloomberglp.blpapi.NotFoundException: Element: DVD_START_DT not found in: ReferenceDataRequest

I am using this command:

request.set("DVD_START_DT", "20151101");

request.set("DVD_END_DT", "20151231");

Has anyone found this problem before? Some ideas?

+4
source share
1 answer

"/":

Element overrides = request.GetElement("overrides");
Element override1 = overrides.AppendElement();
override1.SetElement("fieldId", "DVD_START_DT");
override1.SetElement("value", "20151101");
Element override2 = overrides.AppendElement();
override2.SetElement("fieldId", "DVD_END_DT");
override2.SetElement("value", "20151231");
+3

Source: https://habr.com/ru/post/1622501/


All Articles