QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.56k stars 3.23k forks source link

SPX-Traditional Use the Opening Sales Price To Calculate the Exercise-Settlement Value #7728

Open AlexCatarino opened 8 months ago

AlexCatarino commented 8 months ago

Expected Behavior

The Exercise-Settlement Function uses the "opening sales price" for SPX. https://cdn.cboe.com/resources/spx/spx-fact-sheet.pdf

Actual Behavior

All options use the close of the underlying.

Potential Solution

Review implementation.

Reproducing the Problem

I suggest placing the orders to Interactive Brokers manually (for SPX, VIX, NDX) on Feb 16th to observe the result. We have verified for SPY and SPXW CaptureOptionPositionsShort

to confirm that "opening sales price" is the open value (since it's not tradable) of SPX

Checklist

Martin-Molinero commented 3 months ago

See https://github.com/QuantConnect/Lean/issues/8050, the solution could be abstraction on exercise price to use