option_greeks
Calculate Black-Scholes option Greeks such as Delta, Gamma, Theta, Vega, and Rho using asset price, strike price, time to expiration, risk-free rate, and volatility for call or put options.
Instructions
Calculate the Greeks for a Black-Scholes option
Input Schema
Name | Required | Description | Default |
---|---|---|---|
K | Yes | Strike price of the option | |
S | Yes | Current price of the asset | |
T | Yes | Time to expiration in years | |
optionType | No | Option type: "call" or "put" | call |
r | Yes | Risk-free interest rate | |
sigma | Yes | Volatility of the asset |