Lean  $LEAN_TAG$
QuantConnect.Securities.Option.StrategyMatcher.IOptionPositionCollectionEnumerator Interface Reference

Enumerates an OptionPositionCollection. The intent is to evaluate positions that may be more important sooner. Positions appearing earlier in the enumeration are evaluated before positions showing later. This effectively prioritizes individual positions. This should not be used filter filtering, but it could also be used to split a position, for example a position with 10 could be changed to two 5s and they don't need to be enumerated back to-back either. In this way you could prioritize the first 5 and then delay matching of the final 5. More...

Inheritance diagram for QuantConnect.Securities.Option.StrategyMatcher.IOptionPositionCollectionEnumerator:
[legend]

Public Member Functions

IEnumerable< OptionPositionEnumerate (OptionPositionCollection positions)
 Enumerates the provided positions . Positions enumerated first are more likely to be matched than those appearing later in the enumeration. More...
 

Detailed Description

Enumerates an OptionPositionCollection. The intent is to evaluate positions that may be more important sooner. Positions appearing earlier in the enumeration are evaluated before positions showing later. This effectively prioritizes individual positions. This should not be used filter filtering, but it could also be used to split a position, for example a position with 10 could be changed to two 5s and they don't need to be enumerated back to-back either. In this way you could prioritize the first 5 and then delay matching of the final 5.

Definition at line 28 of file IOptionPositionCollectionEnumerator.cs.

Member Function Documentation

◆ Enumerate()

IEnumerable<OptionPosition> QuantConnect.Securities.Option.StrategyMatcher.IOptionPositionCollectionEnumerator.Enumerate ( OptionPositionCollection  positions)

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