pdblp icon indicating copy to clipboard operation
pdblp copied to clipboard

Bulk Ref on Stock Dividend

Open Vivianhe116 opened this issue 5 years ago • 1 comments

Code Sample, a copy-pastable example if possible

override = {("DVD_HIST_ALL","Y"),("EndCol",2)} con.bulkref(Ticker = ['SRG IM Equity'],Field = ['DVD_HIST_ALL'], ovrds = override)

#### Problem description

Hi 

I am trying to use pdblp blkref function to get history of dividend (Ex-Date and Amount) for one equity. It seems the ovrd part cannot be any numerical input. The function in Excel works as below: BDS('SRG IM Equity',"DVD_HIST_ALL","Headers","Y","EndCol=2"), but the python scripts above gives me error here: 

secData = security_data_dict['securityData']
TypeError: string indices must be integers

Could you please help to explain what I am missing here? Thanks

Vivianhe116 avatar Jun 27 '19 09:06 Vivianhe116

The python API and the excel API are not the same. For differences between the two the best place to look is in the documentation which you can get on Bloobmerg from WAPI <GO> or by talking to the Bloomberg help desk via HELP HELP in the terminal.

matthewgilbert avatar Jun 27 '19 09:06 matthewgilbert