option_expiry_risk
What happens to an account if a single-leg US equity option finishes in the money at expiration: auto-exercise under the OCC $0.01 rule, the resulting long or short share position, whether a margin, cash, or IRA account can hold it (50% Reg T, $2,000 minimum for shorts, no shorts in cash/IRA), P&L and break-even, the trap zone (exercised but still losing), and pin risk near the strike. Optionally tests the price minus and plus an expected move. Deterministic arithmetic on your inputs; no market data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | long = you bought the option; short = you sold/wrote it. Default long. | |
| right | Yes | ||
| strike | Yes | ||
| premium | No | per-share price paid (long) or received (short), e.g. 0.48 | |
| contracts | No | number of contracts (100 shares each). Default 1. | |
| account_type | No | Default margin. | |
| shares_owned | No | shares of the underlying already held; negative if already short. Default 0. | |
| expected_move | No | optional dollar move to also test down and up, e.g. the at-the-money straddle price | |
| account_equity | No | optional margin account equity, to check the requirement | |
| cash_available | No | optional settled cash, to check a share purchase | |
| underlying_price | Yes | stock price to test at expiration |