FlashAlpha Lab API Documentation: Options Exposure Analytics REST API
  1. API Overview

FlashAlpha Lab API: Real-Time Options Exposure Analytics

Live gamma (GEX), delta (DEX), vanna (VEX) and charm (CHEX) exposure, key levels and volatility analytics for US stocks, ETFs and CME futures, from one REST API.

Base URL: https://lab.flashalpha.com

Quick start

1. Get an API key. Create a free account (no credit card required) and copy your key from your profile page. Once you're signed in, it appears in the examples on this page automatically.

2. Call Key Levels for AAPL. AAPL works on every plan, Free included. Prefer an SDK? See SDKs & MCP.

# Key levels for AAPL: works on every plan, Free included
curl -H "X-Api-Key: YOUR_API_KEY" \
  "https://lab.flashalpha.com/v1/exposure/levels/AAPL"
import requests

API_KEY = "YOUR_API_KEY"
BASE    = "https://lab.flashalpha.com"

# Key levels for AAPL: works on every plan, Free included
resp = requests.get(f"{BASE}/v1/exposure/levels/AAPL",
                    headers={"X-Api-Key": API_KEY})
resp.raise_for_status()
data = resp.json()

print(f"Spot:       {data['underlying_price']}")
print(f"Gamma Flip: {data['levels']['gamma_flip']}")
print(f"Call Wall:  {data['levels']['call_wall']}")
print(f"Put Wall:   {data['levels']['put_wall']}")
const API_KEY = "YOUR_API_KEY";
const BASE    = "https://lab.flashalpha.com";

// Key levels for AAPL: works on every plan, Free included
const resp = await fetch(`${BASE}/v1/exposure/levels/AAPL`, {
  headers: { "X-Api-Key": API_KEY }
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();

console.log(`Spot:       ${data.underlying_price}`);
console.log(`Gamma Flip: ${data.levels.gamma_flip}`);
console.log(`Call Wall:  ${data.levels.call_wall}`);
console.log(`Put Wall:   ${data.levels.put_wall}`);
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Api-Key", "YOUR_API_KEY");
var baseUrl = "https://lab.flashalpha.com";

// Key levels for AAPL: works on every plan, Free included
var data = JsonDocument.Parse(
    await client.GetStringAsync($"{baseUrl}/v1/exposure/levels/AAPL")
).RootElement;
var levels = data.GetProperty("levels");

Console.WriteLine($"Spot:       {data.GetProperty("underlying_price")}");
Console.WriteLine($"Gamma Flip: {levels.GetProperty("gamma_flip")}");
Console.WriteLine($"Call Wall:  {levels.GetProperty("call_wall")}");
Console.WriteLine($"Put Wall:   {levels.GetProperty("put_wall")}");
HttpClient client = HttpClient.newHttpClient();
String BASE = "https://lab.flashalpha.com";
String API_KEY = "YOUR_API_KEY";

// Key levels for AAPL: works on every plan, Free included
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create(BASE + "/v1/exposure/levels/AAPL"))
    .header("X-Api-Key", API_KEY).build();

JsonObject data = JsonParser.parseString(
    client.send(req, BodyHandlers.ofString()).body()
).getAsJsonObject();
JsonObject levels = data.getAsJsonObject("levels");

System.out.println("Spot:       " + data.get("underlying_price"));
System.out.println("Gamma Flip: " + levels.get("gamma_flip"));
System.out.println("Call Wall:  " + levels.get("call_wall"));
System.out.println("Put Wall:   " + levels.get("put_wall"));
base := "https://lab.flashalpha.com"
apiKey := "YOUR_API_KEY"

// Key levels for AAPL: works on every plan, Free included
req, _ := http.NewRequest("GET", base+"/v1/exposure/levels/AAPL", nil)
req.Header.Set("X-Api-Key", apiKey)
resp, err := http.DefaultClient.Do(req)
if err != nil { log.Fatal(err) }
defer resp.Body.Close()

var data struct {
    UnderlyingPrice float64 `json:"underlying_price"`
    Levels          map[string]any `json:"levels"`
}
json.NewDecoder(resp.Body).Decode(&data)

fmt.Println("Spot:      ", data.UnderlyingPrice)
fmt.Println("Gamma Flip:", data.Levels["gamma_flip"])
fmt.Println("Call Wall: ", data.Levels["call_wall"])
fmt.Println("Put Wall:  ", data.Levels["put_wall"])

3. Read the result. If you see JSON with underlying_price and a levels object (gamma_flip, call_wall, put_wall), your API key is working.

If it fails: 401 means the key is missing or wrong. For other status codes, see Errors.

Next: explore the Exposure Analytics endpoints.

Symbols & coverage

Per-symbol endpoints accept 6,000+ US equities and ETFs plus 40 CME futures contracts (Growth plan; URL-encode the = in a futures symbol as %3D, for example ES%3DF). The full futures list is on the futures hub.

Authentication

All endpoints except /health, /v1/surface, /v1/universe, and unauthenticated (previous session) /v1/stock/{symbol}/summary require an API key. Pass it in the X-Api-Key header (recommended), or as the apiKey query parameter (useful for quick browser testing):

curl -H "X-Api-Key: YOUR_API_KEY" https://lab.flashalpha.com/v1/symbols
https://lab.flashalpha.com/v1/symbols?apiKey=YOUR_API_KEY

Security tip: Always prefer the X-Api-Key header in production. Query parameters may be logged in server access logs, browser history, and proxy caches.

Here's a reusable setup for your projects:

# Set your API key
export FLASHALPHA_API_KEY="YOUR_API_KEY"

# Reusable function
fa_get() {
  curl -s -H "X-Api-Key: $FLASHALPHA_API_KEY" \
    "https://lab.flashalpha.com$1"
}

# Usage
fa_get /v1/exposure/levels/AAPL | jq .
fa_get /stockquote/AAPL | jq .
import requests, os

API_KEY = os.environ["FLASHALPHA_API_KEY"]
BASE    = "https://lab.flashalpha.com"
HEADERS = {"X-Api-Key": API_KEY}

def fa_get(path, params=None):
    """Reusable helper for FlashAlpha API calls."""
    resp = requests.get(f"{BASE}{path}", headers=HEADERS, params=params)
    resp.raise_for_status()
    return resp.json()

# Usage
levels = fa_get("/v1/exposure/levels/AAPL")
quote  = fa_get("/stockquote/AAPL")
const API_KEY = process.env.FLASHALPHA_API_KEY;
const BASE    = "https://lab.flashalpha.com";
const HEADERS = { "X-Api-Key": API_KEY };

async function faGet(path, params = {}) {
  const url = new URL(`${BASE}${path}`);
  Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v));
  const resp = await fetch(url, { headers: HEADERS });
  if (!resp.ok) throw new Error(`${resp.status}: ${await resp.text()}`);
  return resp.json();
}

// Usage
const levels = await faGet("/v1/exposure/levels/AAPL");
const quote  = await faGet("/stockquote/AAPL");
using System.Text.Json;

var apiKey = Environment.GetEnvironmentVariable("FLASHALPHA_API_KEY");
var baseUrl = "https://lab.flashalpha.com";
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Api-Key", apiKey);

async Task<JsonElement> FaGet(string path)
{
    var json = await client.GetStringAsync($"{baseUrl}{path}");
    return JsonDocument.Parse(json).RootElement;
}

// Usage
var levels = await FaGet("/v1/exposure/levels/AAPL");
var quote  = await FaGet("/stockquote/AAPL");
String API_KEY = System.getenv("FLASHALPHA_API_KEY");
String BASE = "https://lab.flashalpha.com";
HttpClient client = HttpClient.newHttpClient();

JsonObject faGet(String path) throws Exception {
    HttpRequest req = HttpRequest.newBuilder()
        .uri(URI.create(BASE + path))
        .header("X-Api-Key", API_KEY).build();
    String body = client.send(req, BodyHandlers.ofString()).body();
    return JsonParser.parseString(body).getAsJsonObject();
}

// Usage
JsonObject levels = faGet("/v1/exposure/levels/AAPL");
JsonObject quote  = faGet("/stockquote/AAPL");
apiKey := os.Getenv("FLASHALPHA_API_KEY")
base   := "https://lab.flashalpha.com"

func faGet(path string) (map[string]interface{}, error) {
    req, _ := http.NewRequest("GET", base+path, nil)
    req.Header.Set("X-Api-Key", apiKey)
    resp, err := http.DefaultClient.Do(req)
    if err != nil { return nil, err }
    defer resp.Body.Close()
    var result map[string]interface{}
    json.NewDecoder(resp.Body).Decode(&result)
    return result, nil
}

// Usage
levels, _ := faGet("/v1/exposure/levels/AAPL")
quote, _  := faGet("/stockquote/AAPL")

Rate limits

Responses from endpoints that count toward the daily quota include rate limit headers. /v1/account and the historical /v1/tickers do not send them.

Header Description
X-RateLimit-LimitMax requests per day (or unlimited)
X-RateLimit-RemainingRequests remaining today
X-RateLimit-ResetUnix time (seconds) when the quota resets, 00:00 UTC
Retry-AfterSeconds until the quota resets (only on 429)

Requests rejected with 403 still count toward the daily quota. Responses are Brotli-compressed (Content-Encoding: br) when the client accepts it.

When you hit the daily quota, the API returns 429 with a Retry-After header. On the daily quota that is the time until 00:00 UTC, which can be many hours, so stop and report rather than sleep. Here's how to handle it gracefully (the code tabs reuse the setup from Authentication):

# Body to resp.json, headers to headers.txt, status code to $status
status=$(curl -s -o resp.json -D headers.txt -w "%{http_code}" \
  -H "X-Api-Key: YOUR_API_KEY" \
  "https://lab.flashalpha.com/v1/exposure/levels/AAPL")

# Check remaining quota
grep -i "^x-ratelimit-remaining" headers.txt

# 429 = daily quota used up. Retry-After is the time to 00:00 UTC
# (often hours), so stop and report instead of retrying.
if [ "$status" = "429" ]; then
  wait=$(grep -i "^retry-after" headers.txt | tr -d '\r' | awk '{print $2}')
  echo "Daily quota used up; resets in $((wait / 3600)) h"
else
  jq . resp.json
fi
# Uses BASE and HEADERS from the Authentication setup above.
import requests

class QuotaExhausted(Exception):
    pass

def fa_get_safe(path, params=None):
    resp = requests.get(f"{BASE}{path}", headers=HEADERS, params=params)

    # Check remaining quota
    remaining = resp.headers.get("X-RateLimit-Remaining")
    if remaining and remaining.isdigit() and int(remaining) < 10:
        print(f"Warning: only {remaining} requests remaining today")

    # 429 = daily quota used up. Retry-After is the time to 00:00 UTC
    # (often hours), so stop and report instead of sleeping.
    if resp.status_code == 429:
        hours = int(resp.headers.get("Retry-After", 0)) / 3600
        raise QuotaExhausted(f"Daily quota used up; resets in {hours:.1f} h")

    resp.raise_for_status()
    return resp.json()
// Uses BASE and HEADERS from the Authentication setup above.
async function faGetSafe(path, params = {}) {
  const url = new URL(`${BASE}${path}`);
  Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v));
  const resp = await fetch(url, { headers: HEADERS });

  // Check remaining quota
  const remaining = resp.headers.get("X-RateLimit-Remaining");
  if (remaining && parseInt(remaining) < 10) {
    console.warn(`Warning: only ${remaining} requests remaining today`);
  }

  // 429 = daily quota used up. Retry-After is the time to 00:00 UTC
  // (often hours), so stop and report instead of sleeping.
  if (resp.status === 429) {
    const hours = parseInt(resp.headers.get("Retry-After") || "0") / 3600;
    throw new Error(`Daily quota used up; resets in ${hours.toFixed(1)} h`);
  }

  if (!resp.ok) throw new Error(`${resp.status}: ${await resp.text()}`);
  return resp.json();
}
// Uses client and baseUrl from the Authentication setup above.
async Task<JsonElement> FaGetSafe(string path)
{
    var resp = await client.GetAsync($"{baseUrl}{path}");

    // Check remaining quota
    if (resp.Headers.TryGetValues("X-RateLimit-Remaining", out var vals)
        && int.TryParse(vals.First(), out var remaining) && remaining < 10)
        Console.WriteLine($"Warning: only {remaining} requests remaining today");

    // 429 = daily quota used up. Retry-After is the time to 00:00 UTC
    // (often hours), so stop and report instead of sleeping.
    if ((int)resp.StatusCode == 429)
    {
        var hours = resp.Headers.RetryAfter?.Delta?.TotalHours ?? 0;
        throw new InvalidOperationException($"Daily quota used up; resets in {hours:F1} h");
    }

    resp.EnsureSuccessStatusCode();
    var json = await resp.Content.ReadAsStringAsync();
    return JsonDocument.Parse(json).RootElement;
}
// Uses client, BASE and API_KEY from the Authentication setup above.
JsonObject faGetSafe(String path) throws Exception {
    HttpRequest req = HttpRequest.newBuilder()
        .uri(URI.create(BASE + path))
        .header("X-Api-Key", API_KEY).build();
    HttpResponse<String> resp = client.send(req, BodyHandlers.ofString());

    // Check remaining quota
    resp.headers().firstValue("X-RateLimit-Remaining").ifPresent(r -> {
        if (r.matches("\\d+") && Integer.parseInt(r) < 10)
            System.out.println("Warning: only " + r + " requests remaining today");
    });

    // 429 = daily quota used up. Retry-After is the time to 00:00 UTC
    // (often hours), so stop and report instead of sleeping.
    if (resp.statusCode() == 429) {
        long seconds = Long.parseLong(
            resp.headers().firstValue("Retry-After").orElse("0"));
        throw new IllegalStateException(
            String.format("Daily quota used up; resets in %.1f h", seconds / 3600.0));
    }

    return JsonParser.parseString(resp.body()).getAsJsonObject();
}
// Uses base and apiKey from the Authentication setup above.
func faGetSafe(path string) (map[string]interface{}, error) {
    req, _ := http.NewRequest("GET", base+path, nil)
    req.Header.Set("X-Api-Key", apiKey)
    resp, err := http.DefaultClient.Do(req)
    if err != nil { return nil, err }
    defer resp.Body.Close()

    // Check remaining quota
    if r := resp.Header.Get("X-RateLimit-Remaining"); r != "" {
        if remaining, err := strconv.Atoi(r); err == nil && remaining < 10 {
            fmt.Printf("Warning: only %d requests remaining today\n", remaining)
        }
    }

    // 429 = daily quota used up. Retry-After is the time to 00:00 UTC
    // (often hours), so stop and report instead of sleeping.
    if resp.StatusCode == 429 {
        seconds, _ := strconv.Atoi(resp.Header.Get("Retry-After"))
        return nil, fmt.Errorf("daily quota used up; resets in %.1f h", float64(seconds)/3600)
    }

    var result map[string]interface{}
    if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, err }
    return result, nil
}

Plans

Every plan uses the same API key and base URL. A higher plan raises the daily request quota, refreshes data more often and unlocks more endpoints; the table under the cards lists exactly what each plan adds.

Monthly Yearly Save 20%
Free
$0
forever free
  • 5 requests/day
  • Stock quotes, tickers, Greeks & IV solver
  • GEX & key levels (tracked-universe stocks only)
  • Community support
Get Started
Basic
$79/mo
  • 250 requests/day
  • ETFs & indexes (SPY, QQQ, SPX, VIX...)
  • DEX, VEX, CHEX & max pain
  • Expected move, position P&L & Greeks
  • Email support
Most popular
Growth
$299/mo
  • 2,500 requests/day
  • Exposure summary, narrative & full-chain GEX
  • Option quotes & volatility analytics
  • Live screener & Kelly sizing
  • 0DTE analytics
  • Priority email support
Alpha
$1,499/mo
  • Unlimited requests
  • Historical replay since 2017
  • SVI surfaces, VRP & trade flow data
  • Live data
  • Priority support (Discord)

Billing: Payments are processed securely via Stripe. You can upgrade, downgrade, or cancel anytime from your account page. Check your current usage with the GET /v1/account endpoint.

What Each Plan Unlocks

Each plan includes everything in the plans to its left. A cell lists what that plan adds; documented symbol, 0DTE and futures rules still apply on top of the plan.

Public no API key Free Basic includes Free Growth includes Basic Alpha includes Growth
Market Data
+1 more
Exposure Analytics
+6 more
Pricing Calculators
Account & Service Health
Volatility Analytics
+1 more
+3 more
Strategy Signals
+3 more
Positions & Risk
Flow Analytics
+5 more
+4 more
Earnings
Screener
Trade Flow Data
+12 more

Enterprise: everything in Alpha, with commercial terms and entitlements agreed per contract - see Enterprise plans.

Endpoints

Endpoints are grouped by feature. Each card opens that family's docs; the plan shown is the lowest plan that unlocks an endpoint in the family. A few endpoints also answer without a key; see the Public column above. Every endpoint is listed in the API reference. To see which endpoints fit how you trade, browse the API use cases by trading style.

Market Data

Free+

Stock and option quotes, tickers, expiries and strikes, and the stock summary.

View docs →

Exposure Analytics

Free+

GEX, DEX, VEX and CHEX by strike, key levels, max pain and the exposure narrative, on settled open interest.

View docs →

Flow Analytics

Growth+

The same exposure metrics recomputed on intraday effective open interest, plus 0DTE flow.

View docs →

Trade Flow Data

Alpha+

The 1-minute options and stock trade tape: recent prints, blocks, summaries and leaderboards.

View docs →

Volatility Analytics

Basic+

Realized and implied volatility, skew, term structure, VRP and SVI surfaces.

View docs →

Earnings

Growth+

Earnings calendar, implied expected move, IV crush and post-earnings positioning.

View docs →

Strategy Signals

Basic+

Each strategy scores one trading idea from 0 to 100 and returns ranked structure candidates.

View docs →

Screener

Growth+

Filter and rank symbols by GEX regime, VRP, IV, skew and dealer flow.

View docs →

Pricing & Positions

Free+

BSM price and Greeks, IV solver and Kelly sizing from your own inputs, plus P&L for multi-leg structures.

View docs →

Historical Replay

Alpha+

Any analytic as it looked at a past minute, in the same response shape as the live API.

View docs →

Errors

Check the status code before parsing the body: a 401 has an empty body, and most other errors return JSON with an error code and a message. Body shapes, error codes and code samples are on the Errors page.

Status Meaning What to do
400A parameter is missing or invalid.Fix the request. Each endpoint page lists its error codes.
401The API key is missing or invalid. Empty body.Send a valid key in the X-Api-Key header.
403The endpoint, symbol or parameter is outside your plan (tier_restricted, with required_plan). On Free, a stock outside the tracked universe returns symbol_not_in_free_universe; ETFs and indexes need Basic.Use a symbol your plan covers, or upgrade to required_plan.
404No data for the symbol or request.Check the symbol and parameters. Retrying returns the same answer.
429The daily quota is used up.Stop until the quota resets at 00:00 UTC (Retry-After).
5xxData is still loading or a source is unavailable (503), or the gateway timed out (504).Retry later. A 504 sets Retry-After: 120.

Conventions

  • All timestamps are UTC in ISO 8601 format
  • All exposure values are in USD notional
  • Free data is delayed; paid plans serve live data
  • Futures symbols use the same response schema as equities; options on futures are priced with Black-76, see the futures methodology

Response envelope

Every successful JSON response carries endpoint_version, which identifies the deployment that produced it, and data_as_of, which reports when each upstream market-data feed last delivered. The keys, their expected cadence and how to read them are on the Response Format & Freshness page.

Ready to build with FlashAlpha?

Get your free API key and start pulling live options data in 60 seconds.

No credit card required Setup in 60 seconds Secure & reliable