pdblp con.bdh() function pulling yield instead of price

489 Views Asked by At

I am interested in pulling the price of a bond using the con.bdh( ) function from the pdblp package. The below code keeps pulling the yield of the bond, instead of the price. Does anyone know how I can pull the price?

import pdblp
con = pdblp.BCon
con = pdblp.BCon(debug=True, port=8194, timeout=5000)
con.start()
con.debug = False

con.bdh('AN479278 Corp','PX_LAST', '20190410', '20190410', longdata=True)

1

There are 1 best solutions below

0
On

Try using the override 'QuoteType=P'. This will change to price