How to implement BDP Bloomberg excel formula to Java blpapi? -


there existing bloomberg excel formula need implement using java bloomberg api. existing excel formula this.

bdp(ticker, field, fiscalperiod, periodend, compound, filing_status)

an example of parameters shown below.

ticker: fmd equity  field: ard_st_invest  fiscal period: q4  periodend: 2007-06-30  compound: consolidated  filing_status: mr 

this formula retrieves ard_st_invest's value fmd equity , saves cell in excel file.

so far, know , have been doing in blpapi(java) create historicaldatarequest below,

service refdatasvc = session.getservice("//blp/refdata"); request request = refdatasvc.createrequest("historicaldatarequest"); request.set("adjustmentfollowdpdf", false); request.set("adjustmentnormal", false); 

now, not sure how code bdp formula in blpapi(java). i've read in blpapi's developer's guide, there quite few operations available under reference data service //blp/refdata. (i.e. historicaldatarequest, intradaytickrequest, referencedatarequest, etc.)

upon reading bdp explained as,

bdp (bloomberg data point) static or real time current data. returns data single cell in excel spreadsheet.

but still, not know how should translate bloomberg excel formula above java blpapi. should create historicaldatarequest or referencedatarequest, etc.? how should set fiscalperiod, periodend, filing_status, ticker, field, etc.?

the answer question comment @assylias posted on question itself.


Comments