black_scholes
Calculate option prices using the Black-Scholes model for financial analysis. Input asset price, strike price, time to expiration, risk-free rate, and volatility to determine call or put option values.
Instructions
Calculate Black-Scholes option price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| S | Yes | Current price of the asset | |
| K | Yes | Strike price of the option | |
| T | Yes | Time to expiration in years | |
| r | Yes | Risk-free interest rate | |
| sigma | Yes | Volatility of the asset | |
| optionType | No | Option type: "call" or "put" | call |