calculate_iv
Calculate implied volatility from an option's market price using Newton-Raphson. Requires underlying price, strike, time to expiry, and market price.
Instructions
Calculate Implied Volatility from market price using Newton-Raphson.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| K | Yes | ||
| S | Yes | ||
| T | Yes | ||
| r | No | ||
| option_type | No | call | |
| market_price | Yes |