Search code examples
pythonbloomberg

How to get BEST_Sales from Bloomberg for next 2 years via python?


I tried:

from xbbg import blp
blp.bdh("AAPL US Equity", "BEST_Sales" , "BEST_FPERIOD_OVERRIDE", "2GY", "2021-08-01")

And

blp.bdh(tickers='AAPL US Equity', flds=['BEST_Sales', "BEST_FPERIOD_OVERRIDE", "2GY"], start_date='2018-10-10')

It doesn't work. Can you help me?


Solution

  • blp.bdh('AAPL US Equity', 'BEST_Sales', "2021-08-01", BEST_FPERIOD_OVERRIDE="2GY")