Lean
$LEAN_TAG$
|
The option assignment model emulates exercising of short option positions in the portfolio. Simulator implements basic no-arb argument: when time value of the option contract is close to zero it assigns short legs getting profit close to expiration dates in deep ITM positions. User algorithm then receives assignment event from LEAN. Simulator randomly scans for arbitrage opportunities every two hours or so. More...
Public Member Functions | |
DefaultOptionAssignmentModel (decimal requiredInTheMoneyPercent=0.05m, TimeSpan? priorExpiration=null) | |
Creates a new instance More... | |
virtual OptionAssignmentResult | GetAssignment (OptionAssignmentParameters parameters) |
Get's the option assignments to generate if any More... | |
The option assignment model emulates exercising of short option positions in the portfolio. Simulator implements basic no-arb argument: when time value of the option contract is close to zero it assigns short legs getting profit close to expiration dates in deep ITM positions. User algorithm then receives assignment event from LEAN. Simulator randomly scans for arbitrage opportunities every two hours or so.
Definition at line 28 of file DefaultOptionAssignmentModel.cs.
QuantConnect.Securities.Option.DefaultOptionAssignmentModel.DefaultOptionAssignmentModel | ( | decimal | requiredInTheMoneyPercent = 0.05m , |
TimeSpan? | priorExpiration = null |
||
) |
Creates a new instance
requiredInTheMoneyPercent | The percent in the money the option has to be to trigger the option assignment |
priorExpiration | For OptionStyle.American, the time span prior to expiration were we will try to evaluate option assignment |
Definition at line 41 of file DefaultOptionAssignmentModel.cs.
|
virtual |
Get's the option assignments to generate if any
parameters | The option assignment parameters data transfer class |
Implements QuantConnect.Securities.Option.IOptionAssignmentModel.
Definition at line 52 of file DefaultOptionAssignmentModel.cs.