-2
$\begingroup$

I have an Excel function that I want to move into Python. The BDP function is:

=BDP("IBM US Equity","BEST_EBITDA","BEST_FPERIOD_OVERRIDE","1FY")

from tia.bbg import LocalTerminal 
resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA")

how do I add overrides to this request?

I've tried:

resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA",["BEST_FPERIOD_OVERRIDE","1FY"])

resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA","BEST_FPERIOD_OVERRIDE","1FY")

resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA",["BEST_FPERIOD_OVERRIDE=1FY"])

$\endgroup$
  • $\begingroup$ This is really a question for the Help Desk. F1F1 $\endgroup$ – Kch Sep 2 '18 at 14:36
0
$\begingroup$

overrides=[BEST_FPERIOD_OVERRIDE=1FY], then pass the overrides in the get_reference_data as the last parameter.

$\endgroup$
  • $\begingroup$ i've tried overrides=['BEST_FPERIOD_OVERRIDE=1FY']. Then resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA",overrides) ... but it didn't work $\endgroup$ – jason Mar 19 '18 at 3:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.