Implied Volatility
workflow.run_implied_volatilitySolves for the volatility that makes Black-Scholes reproduce an observed option price (Newton-Raphson with a bisection fallback for cases where vega is too flat to converge, e.g. deep ITM/OTM or very short-dated). Checks the price against its no-arbitrage bounds first and refuses to solve (converged: false + error) rather than return a garbage number when the price is impossible for the given spot/strike/rate. Use when user asks "what IV does this option price imply?" or gives a market price and wants the volatility, not the reverse. Returns: impliedVolatilityPct, iterations, method (newton-raphson/bisection), converged, priceAtSolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | Underlying spot price, USD | |
| strike | Yes | Strike price, USD | |
| optionType | Yes | ||
| daysToExpiry | Yes | Calendar days until expiry (can be fractional) | |
| targetPriceUsd | Yes | The observed option price, USD, to solve the implied volatility from | |
| riskFreeRatePct | No | Risk-free rate in percentage points. Default 0: standard crypto-options convention. |