I have a Java code that uses blpapi to request specific fields of specific securities. My code runs fine now. However, I have thought of a case that is not being handled by my current code.
Say, for example, I am requesting 'CUR_MKT_CAP', 'PX_LAST', and 'EQY_SH_OUT' for a specific security. What if Bloomberg does not have the value for 'PX_LAST'? What will Bloomberg give me then? (a) Will it give me a field Element where PX_LAST = 0? (b) Will it give me a field Element where PX_LAST = NULL? (c) Will it not include PX_LAST to the response that I will receive? Thus, the response will look like this?
HistoricalDataResponse (choice) = {
securityData = {
security = XXXXX Equity
sequenceNumber = 0
fieldData[] = {
fieldData = {
date = YYYY-MM-DD
CUR_MKT_CAP = XX.XXXX
EQY_SH_OUT = XX.XXXX
}
}
} }
Basically, I just want to know how I should handle if one of the fields I need is not given by Bloomberg.