Skip to main content

IB.exerciseOptions

Back to ib_async.ib.IB

exerciseOptions(self, contract: ib_async.contract.Contract, exerciseAction: int, exerciseQuantity: int, account: str, override: int)

Completeness: signature-only · Canonical ID: ib_async.ib.IB.exerciseOptions

Runtime signature is published; semantic enrichment remains outstanding.

Related API navigation

Sources and provenance

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