Skip to main content
Version: v5

spreads

Price all four vertical spreads at each expiration.

Parameters​

symbol: str
Default: SPY
The underlying ticker symbol.

spread_type: str
Default: both
Vertical call spreads, put spreads, or both.

near_moneyness: float
Default: 2.5
Percent out-of-the-money for the near leg.

far_moneyness: float
Default: 7.5
Percent out-of-the-money for the far leg.


Returns​

results: Any

Serializable results.

provider: str

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


On this page