Bloomberg APIv3 获取参考数据覆盖
Bloomberg APIv3 Get reference data overrides
我有一个 Excel 函数,我想将其移至 Python。 BDP函数为:
=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")
如何向该请求添加覆盖?
只需将覆盖作为附加参数传递即可:
resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA",
BEST_FPERIOD_OVERRIDE="1FY")
使用xbbg
你可以写:
from xbbg import blp
blp.bdp("IBM US Equity", "BEST_EBITDA", BEST_FPERIOD_OVERRIDE="1FY")
我有一个 Excel 函数,我想将其移至 Python。 BDP函数为:
=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")
如何向该请求添加覆盖?
只需将覆盖作为附加参数传递即可:
resp = LocalTerminal.get_reference_data("IBM US Equity", "BEST_EBITDA",
BEST_FPERIOD_OVERRIDE="1FY")
使用xbbg
你可以写:
from xbbg import blp
blp.bdp("IBM US Equity", "BEST_EBITDA", BEST_FPERIOD_OVERRIDE="1FY")