investfly.models.portfolio.OptionStrategyTemplate

Named option strategy templates and their leg roles.

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

Templated option structures supported by the Phase-1 MVP automated options engine.

Naked short calls/puts and undefined-risk structures outside this list are rejected by validation. Each template prescribes a fixed leg count and action shape except CUSTOM_COMBO, where conservative validation reads the explicit leg specs.

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

Whether an option leg opens or closes a long or short position.

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

Semantic role of a leg within a multi-leg option structure.