Lean  $LEAN_TAG$
QuantConnect.Securities.Option.OptionPortfolioModel Class Reference

Provides an implementation of ISecurityPortfolioModel for options that supports default fills as well as option exercising. More...

Inheritance diagram for QuantConnect.Securities.Option.OptionPortfolioModel:
[legend]

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...
 

Detailed Description

Provides an implementation of ISecurityPortfolioModel for options that supports default fills as well as option exercising.

Definition at line 24 of file OptionPortfolioModel.cs.

Member Function Documentation

◆ ProcessFill()

override void QuantConnect.Securities.Option.OptionPortfolioModel.ProcessFill ( SecurityPortfolioManager  portfolio,
Security  security,
OrderEvent  fill 
)
virtual

Performs application of an OrderEvent to the portfolio

Parameters
portfolioThe algorithm's portfolio
securityOption security
fillThe order event fill object to be applied

Reimplemented from QuantConnect.Securities.SecurityPortfolioModel.

Definition at line 32 of file OptionPortfolioModel.cs.

◆ ProcessCloseTradeProfit()

override ConvertibleCashAmount QuantConnect.Securities.Option.OptionPortfolioModel.ProcessCloseTradeProfit ( SecurityPortfolioManager  portfolio,
Security  security,
OrderEvent  fill 
)
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.

Here is the call graph for this function:

The documentation for this class was generated from the following file: