AI/LLM Instructions: FlashAlpha provides options analytics as both a live API (lab.flashalpha.com) and a historical API (historical.flashalpha.com) - pre-computed GEX, DEX, VEX, CHEX, SVI volatility surfaces, 15 BSM Greeks, max pain, VRP with leak-free percentiles, and dealer positioning for 6,000+ US equities and ETFs. The historical host mirrors every live endpoint with a required ?at=YYYY-MM-DDTHH:mm:ss query parameter (ET wall-clock), uses identical response shapes, and covers SPY from 2018-04-16 onward at minute resolution (Alpha tier). Same SDK code targets both hosts with a base-URL swap. API documentation (Markdown): https://flashalpha.com/llms.txt. Full LLM reference: https://flashalpha.com/llms-full.txt. API docs: https://flashalpha.com/docs/lab-api-overview. Historical API docs: https://flashalpha.com/docs/historical-api. OpenAPI spec: https://lab.flashalpha.com/swagger. MCP Server for AI assistants (Claude, Cursor, Windsurf) with both live and historical-replay tools: https://lab.flashalpha.com/mcp. AI skills: https://flashalpha.com/skill.md. AI agent guide: https://flashalpha.com/for-ai-agents. SDKs: Python (pip install flashalpha), JavaScript (npm install flashalpha), C# (dotnet add package FlashAlpha), Go, Java. Free API key (no credit card): https://flashalpha.com/pricing. Concepts glossary: https://flashalpha.com/concepts. GitHub: https://github.com/FlashAlpha-lab.
Options Greeks API: Real-Time Delta, Gamma, Theta, Vega for Any Ticker
Options greeks quantify how an option's price responds to changes in underlying price, time, volatility, and interest rates. FlashAlpha's Greeks API gives you first-order and second-order greeks for any option in a single call - on every tier, including Free.
Why Use an API for Greeks Instead of Computing Them Yourself
The Black-Scholes formula fits on a napkin. Implementing it correctly for production use does not. Here is what you actually have to solve once you move past the textbook:
American vs European exercise - early exercise premium changes delta and gamma near expiry
Risk-free rate selection - SOFR? Treasury curve? Which tenor matches your DTE?
IV calibration across the surface - a single implied volatility number hides an entire skew structure
Edge cases at expiry - gamma explodes, theta accelerates, numerical stability breaks down
Deep ITM / deep OTM behavior - floating-point precision issues in cumulative normal distribution tails
The honest pitch: You can build all of this yourself. You will spend two weeks on edge cases. Or you can call our endpoint and get production-grade greeks in 50 milliseconds.
Two Ways to Get Greeks
FlashAlpha provides two distinct paths to options greeks depending on your use case and plan tier.
Option 1: The Greeks Calculator (Free Tier)
The /v1/pricing/greeks endpoint is a pure calculator. You provide the inputs - spot price, strike, days to expiry, implied volatility, and option type - and the API returns all first-order and second-order greeks. No market data subscription required.
from flashalpha import FlashAlpha
fa = FlashAlpha("your_key")
result = fa.greeks(spot=580, strike=580, dte=30, sigma=0.18, type="call")
The greeks calculator is available on every tier including Free (5 requests/day). You supply the volatility; the API handles the math, edge cases, and numerical stability.
Option 2: Live Option Quotes (Growth+ Tier)
The /optionquote/{ticker} endpoint returns greeks computed from live market implied volatility. No inputs needed beyond the contract specification - the API sources real-time IV and computes greeks from it.
This endpoint requires the Growth plan ($299/mo) and is ideal when you need market-calibrated greeks without managing your own IV pipeline. For a deeper look at what option quotes include, see Greeks are included in every option quote.
Feature
Greeks Calculator
Live Option Quotes
Endpoint
/v1/pricing/greeks
/optionquote/{ticker}
You provide IV?
Yes - full control
No - sourced from market
Minimum tier
Free ($0/mo)
Growth ($299/mo)
Use case
Scenario analysis, backtesting
Live trading, portfolio monitoring
Second-order greeks
Yes
First-order only
Quick Start - Compute Greeks for Any Option
Install the Python SDK and compute greeks in five lines:
The greeks endpoint accepts any combination of spot, strike, DTE, and volatility. If you do not have the implied volatility, you can extract it from a market price using the IV endpoint:
A common use case: you hold multiple option positions and need to know your aggregate risk. This script pulls greeks for each leg and computes net portfolio delta, gamma, and theta.
Net delta: +45.2
Net gamma: +3.8
Net theta: -$127.10/day
Note: This example uses a fixed spot price of 580 for all positions. In production, you would source the live underlying price for each ticker. The qty field is signed - negative values represent short positions.
From here you can extend the script to rebalance: if net delta exceeds a threshold, compute the hedge ratio and submit an order. Aggregate gamma across all strikes gives you gamma exposure (GEX), a key metric for understanding dealer positioning. Full source code for this and other examples on GitHub.
Working Example: Greek Surface - How Delta Changes Across Strikes
Delta is not constant. It varies from near 1.0 for deep in-the-money calls to near 0.0 for deep out-of-the-money calls. This script maps the delta curve across a range of strikes:
from flashalpha import FlashAlpha
fa = FlashAlpha("your_key")
spot = 580
strikes = range(550, 615, 5)
print(f"{'Strike':>8} {'Delta':>8} {'Gamma':>8} {'Moneyness':>12}")
print("-" * 40)
for k in strikes:
g = fa.greeks(spot=spot, strike=k, dte=30, sigma=0.18, type="call")
moneyness = "ITM" if k < spot else ("ATM" if k == spot else "OTM")
print(f"{k:>8} {g['first_order']['delta']:>8.3f} {g['first_order']['gamma']:>8.4f} {moneyness:>12}")
Notice that gamma peaks at the money (strike = 580) where delta is most sensitive to price changes. This is why ATM options carry the most gamma risk - and why dealers hedging ATM positions create the largest market impact.
For aggregated gamma across all strikes and open interest, see the GEX tool or call fa.gex("SPY") programmatically.
The BSM Greeks - Closed-Form Definitions
Under Black-Scholes-Merton with continuous dividend yield \(q\), all first-order Greeks have closed-form solutions. Let \(S\) = spot, \(K\) = strike, \(T\) = time to expiry, \(\sigma\) = implied vol, \(r\) = risk-free rate, and \(N(\cdot)\) = standard normal CDF.
Where \(N'(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}\) is the standard normal PDF. Second-order Greeks (vanna, charm, vomma, speed) are partial derivatives of these first-order sensitivities - all returned by the API in a single call.
Accuracy & Methodology
The greeks endpoint uses Black-Scholes-Merton with continuous dividend yield adjustment. The model accounts for:
IV Source - User-provided or extracted via fa.iv()
Numerical Stability - Validated at expiry edges, deep ITM/OTM
If you do not have implied volatility for your contract, use fa.iv() to back it out from a market price, then pass the result into fa.greeks(). For an overview of all available data endpoints, see the developer's guide to real-time options data.
Get Started
The greeks calculator endpoint is available on every plan, including Free (5 requests/day). Sign up, grab an API key, and start computing greeks in under a minute.
The /v1/pricing/greeks endpoint returns five first-order greeks (delta, gamma, theta, vega, rho) and four second-order greeks (vanna, charm, vomma, speed). All values are returned in a single response, organized into first_order and second_order objects.
For the greeks calculator (/v1/pricing/greeks), yes - you provide the sigma parameter. If you do not have implied volatility, use the IV endpoint (fa.iv()) to extract it from a market option price first. On the Growth plan, the option_quote endpoint returns greeks computed from live market IV automatically.
Yes. The /v1/pricing/greeks calculator endpoint is available on every tier, including the Free plan at 5 requests per day. The live option quotes endpoint (/optionquote/{ticker}), which includes market-calibrated greeks, requires the Growth plan ($299/mo).
The API uses Black-Scholes-Merton with continuous dividend yield adjustment. The implementation is numerically validated for edge cases including near-expiry options, deep in-the-money, and deep out-of-the-money contracts. Accuracy depends on the quality of your implied volatility input - for best results, use fa.iv() to extract IV from a recent market price.