code: def exerciseOptions(
              self, contract: Contract, exerciseAction: int,
              exerciseQuantity: int, account: str, override: int):
          
          reqId = self.client.getReqId()
          self.client.exerciseOptions(
              reqId, contract, exerciseAction, exerciseQuantity,
              account, override)
docs: Exercise an options contract.
  
          https://interactivebrokers.github.io/tws-api/options.html
  
          Args:
              contract: The option contract to be exercised.
              exerciseAction:
                  * 1 = exercise the option
                  * 2 = let the option lapse
              exerciseQuantity: Number of contracts to be exercised.
              account: Destination account.
              override:
                  * 0 = no override
                  * 1 = override the system's natural action