code: def createIndexContract(self, symbol, currency="USD", exchange="CBOE"):
          
          contract_tuple = (symbol, "IND", exchange, currency, "", 0.0, "")
          contract = self.createContract(contract_tuple)
          return contract
docs: Used for indexes (SPX, DJX, ...)