Skip to content

OptionInitialMargin

QuantConnect.Securities.OptionInitialMargin

OptionInitialMargin(value: float, premium: float)

Bases: InitialMargin

Result type for Option.OptionStrategyPositionGroupBuyingPowerModel.GetInitialMarginRequirement

Initializes a new instance of the OptionInitialMargin class

Parameters:

Name Type Description Default
value float

The initial margin

required
premium float

The premium of the option/option strategy

required

ZERO

Gets an instance of OptionInitialMargin with zero values

premium

premium: float

The option/strategy premium value in account currency

value_without_premium

value_without_premium: float

The initial margin value in account currency, not including the premium in cases that apply (premium debited)

value

value: float

The initial margin value in account currency

__add__

__add__(other: InitialMargin) -> float
__add__(other: float) -> float

__ge__

__ge__(other: InitialMargin) -> bool
__ge__(other: float) -> bool

__gt__

__gt__(other: InitialMargin) -> bool
__gt__(other: float) -> bool

__le__

__le__(other: InitialMargin) -> bool
__le__(other: float) -> bool

__lt__

__lt__(other: InitialMargin) -> bool
__lt__(other: float) -> bool

__mul__

__mul__(other: InitialMargin) -> float
__mul__(other: float) -> float

__sub__

__sub__(other: InitialMargin) -> float
__sub__(other: float) -> float

__truediv__

__truediv__(other: InitialMargin) -> float
__truediv__(other: float) -> float

__float__

__float__() -> float

__int__

__int__() -> int

__neg__

__neg__() -> float

__radd__

__radd__(other: float) -> float

__rmul__

__rmul__(other: float) -> float

__rsub__

__rsub__(other: float) -> float

__rtruediv__

__rtruediv__(other: float) -> float