Hi all

 

If anyone has an answer to the following I'd be ever so grateful

 

When I make calls to option history (ie calls to option_hx = qb.GetOptionHistory(…) ), sometimes I get an incomplete dataframe back without ‘strike’, ‘expiry’, or ‘type’ levels for the indexes of the multiindex dataframe; there are only ‘symbol’ and ‘time’ levels. Hence the calls to option_hx.GetStrikes() and option_hx.GetExpiryDates() return empty lists. The option_hx.GetAllData() call does return a dataframe, but its only indexed with ‘symbol’ and ‘time’.

 

I am doing research looking only at premiums of options at particular strikes and expiration dates, so need to be able to access this. Any suggestions or help for a workaround?

 

thanks in advance

-a