investfly.models.strategy.OptionContractSelector

Expiration and strike selection rules for option strategy legs.

class StrikeSelectionMode(builtins.str, enum.Enum):

How an option strike is selected relative to the underlying market.

class MinimumStrikeRule(builtins.str, enum.Enum):

Lower strike bound applied during option contract selection.

@dataclass
class OptionContractSelector:

Bounded contract selector applied after the underlying signal triggers.

The option template already supplies CALL/PUT and the leg structure. This selector keeps the user-facing contract choice to target DTE plus one primary strike rule. targetDelta is a positive delta magnitude; PUT selection applies the negative sign at runtime.