derivatives_lookback-option
Price lookback options with floating or fixed strike using Goldman-Sosin-Gatto formulas. Input spot, strike, min/max price, time, rate, and volatility to get the option price.
Instructions
Lookback option pricing (floating/fixed strike).
Use when pricing lookback options (floating or fixed strike). Provide spot, strike, min/max price, time, rate, and volatility. Returns: lookback option price via Goldman-Sosin-Gatto formulas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| K | No | Fixed strike price (required for fixed lookback) | |
| S | Yes | Current spot price | |
| T | Yes | Time to expiration in years | |
| q | No | Continuous dividend yield | |
| r | No | Risk-free interest rate (annualized) | |
| type | No | Option type | call |
| S_max | No | Maximum price observed so far (for floating put) | |
| S_min | No | Minimum price observed so far (for floating call) | |
| sigma | Yes | Volatility (annualized) | |
| lookback_type | No | Floating strike or fixed strike lookback | floating |