Lean
$LEAN_TAG$
|
Provides an implementation of ISecurityPortfolioModel for options that supports default fills as well as option exercising. More...
Public Member Functions | |
override void | ProcessFill (SecurityPortfolioManager portfolio, Security security, OrderEvent fill) |
Performs application of an OrderEvent to the portfolio More... | |
Protected Member Functions | |
override ConvertibleCashAmount | ProcessCloseTradeProfit (SecurityPortfolioManager portfolio, Security security, OrderEvent fill) |
Helper method to determine the close trade profit More... | |
Provides an implementation of ISecurityPortfolioModel for options that supports default fills as well as option exercising.
Definition at line 24 of file OptionPortfolioModel.cs.
|
virtual |
Performs application of an OrderEvent to the portfolio
portfolio | The algorithm's portfolio |
security | Option security |
fill | The order event fill object to be applied |
Reimplemented from QuantConnect.Securities.SecurityPortfolioModel.
Definition at line 32 of file OptionPortfolioModel.cs.
|
protectedvirtual |
Helper method to determine the close trade profit
For SettlementType.Cash we apply funds and add in the result to the profit
Reimplemented from QuantConnect.Securities.SecurityPortfolioModel.
Definition at line 49 of file OptionPortfolioModel.cs.