Options¶
Options methods are meant for managing options, including getting option chains, greeks and more. You can see a list of them below:
For high-level option selection (expirations/strikes/deltas) and multi-leg spread helpers, see OptionsHelper.
|
Return the portion of |
|
Return the option-chain information for |
|
Returns the greeks for the option asset at the current bar. |
|
Returns a list of strikes for a give underlying asset. |
|
Returns expiration dates for an option chain for a particular exchange. |
|
Returns option chain for a particular exchange. |
|
Convert an options expiry to datetime.date. |
|
Finds the next trading day for the given date and exchange. |
Index weekly options (SPX and SPXW)¶
Index options trade under two roots: the standard monthly contract uses the index symbol
(SPX, NDX, RUT, VIX) and every other expiration (weeklies, 0DTE, end of month)
uses the weekly root (SPXW, NDXP, RUTW, VIXW). Write
Asset("SPX", asset_type="option", expiration=..., strike=..., right=...) for both. LumiBot
picks the right root from the expiration, and positions reported under the weekly root show up
as SPX. XSP has one root and is unchanged.
Covered: Alpaca (backtesting, live broker, live data), Tradier (broker and data, including chains), Schwab (broker orders, positions and option quotes). Polygon looks contracts up by underlying, so it needs no mapping. Interactive Brokers uses its own trading class rule and is not changed by this mapping.
Known limits: Tradier’s per-expiration chain and greeks lookups still request the SPX
chain, so greeks for an SPX weekly may come back empty until that path is confirmed against
Tradier’s chain endpoint. Schwab has no multi-leg option order path in LumiBot today.
Interactive Brokers sends SPX with the expiration and no trading class.