Home > Enterprise >  Expiration Date using blpapi
Expiration Date using blpapi

Time:07-15

How can I use the bloomberg api to get the expiration date of a contract (I have the ticker)?

I have tried multiple terms but nothing seems to work. For example,

blp.bdh(tickers=['KC1 Comdty'],flds=['LAST_TRADE_DATE'])

CodePudding user response:

bdh is for historical requests. You probably want bdp.

Also, check that the field exists in the terminal by typing FLDS

CodePudding user response:

blp.bdp(tickers=[tickers],flds=['FUT_LAST_TRADE_DT']
  • Related