code: def getConId(self, contract_identifier):
          
          details = self.contractDetails(contract_identifier)
          if len(details["contracts"]) > 1:
              return details["m_underConId"]
          return details["m_summary"]["m_conId"]
docs: Get contracts conId