Add method to compute index or equity option code