code: def createCashContract(self, symbol, currency="USD", exchange="IDEALPRO"):
          
          contract_tuple = (symbol, "CASH", exchange, currency, "", 0.0, "")
          contract = self.createContract(contract_tuple)
          return contract
docs: Used for FX, etc:
          createCashContract("EUR", currency="USD")