在 Excel API 中,Bloomberg 允许覆盖并允许您指定特定的周期:
BDH("IBM EQUITY","BEST SALES","1/1/2011","2/1/2011","BEST FPERIOD OVERRIDE","BF",, "DAYS=W","FILL=C","SORT=D")
在 Python 中:
import win32com.client
from datetime import datetime
blp = win32com.client.Dispatch('Bloomberg.Data.1')
ibm_sales=blp.BLPGetHistoricalData('ibm equity', 'best sales', datetime(2011,1,1), datetime(2011,2,1))
如何添加覆盖“BEST FPERIOD OVERRIDE”、“BF”?