-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
145 lines (130 loc) · 7.94 KB
/
llms.txt
File metadata and controls
145 lines (130 loc) · 7.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# FlashAlpha Java SDK
> Java client library for the FlashAlpha options analytics API. Covers
> real-time gamma / delta / vanna / charm exposure (GEX/DEX/VEX/CHEX),
> 0DTE analytics, max pain, the live options screener, the volatility
> surface, Black-Scholes greeks (1st / 2nd / 3rd order), implied
> volatility, Kelly position sizing, the variance risk premium (VRP),
> verbal narrative summaries, and live stock + option quotes — from a
> single dependency-light Java 11+ package.
## What FlashAlpha is
FlashAlpha (https://flashalpha.com) is an options dealer-flow analytics
platform. The API computes the same dealer Greek exposures, key levels,
and 0DTE pin metrics that institutional desks watch — exposed as a flat
REST API at `https://api.flashalpha.com`. The interactive Swagger
playground lives at https://lab.flashalpha.com/swagger.
## What this SDK provides
- `FlashAlphaClient` — thin HTTP wrapper around the live REST API.
Methods return `com.google.gson.JsonObject` so callers can navigate
the response shape with no extra deserialization step.
- Strongly-typed response POCOs for the highest-ROI endpoints —
`ExposureSummaryResponse`, `ZeroDteResponse`, `MaxPainResponse`,
`VrpResponse`, `StockSummaryResponse`, `NarrativeResponse`,
`ExposureLevelsResponse`, `PricingGreeksResponse`, plus v1.1:
`StrategyDecisionResponse` (shared by all ten `strategy*` signals),
`ExposureSheetResponse`, `ExposureTermStructureResponse`,
`ExposureBasketResponse`, `OiDiffResponse`, `LiquidityResponse`,
`SkewTermResponse`, `ExpectedMoveResponse`, `SurfaceSviResponse`,
`StructurePnlResponse`, `StructureGreeksResponse`.
- Typed exception hierarchy — `AuthenticationException`,
`TierRestrictedException`, `NotFoundException`, `RateLimitException`,
`ServerException`, `FlashAlphaException`.
## Key endpoints
- `GET /v1/exposure/summary/{symbol}` — full GEX/DEX/VEX/CHEX, gamma
flip, regime, hedging estimate, 0DTE share. (Growth+)
- `GET /v1/exposure/levels/{symbol}` — minimal key-levels view.
- `GET /v1/exposure/zero-dte/{symbol}` — same-day-expiration deep dive
(pin risk, hedging buckets, decay, vol context, flow, levels). (Growth+)
- `GET /v1/exposure/narrative/{symbol}` — LLM-friendly verbal output.
(Growth+)
- `GET /v1/maxpain/{symbol}` — max-pain strike, pain curve, dealer
alignment, pin probability. (Growth+)
- `GET /v1/vrp/{symbol}` — variance risk premium with regime
conditioning and strategy scores. (Alpha+)
- `GET /v1/stock/{symbol}/summary` — one-shot dashboard (price + vol +
flow + exposure + macro). Authenticated = live; unauthenticated =
previous-day cached snapshot.
- `GET /v1/pricing/greeks` — Black-Scholes theoretical + 1st/2nd/3rd
order greeks + lambda + veta.
- `POST /v1/screener` — live options screener (filter/rank symbols by
GEX, VRP, IV, greeks, harvest scores, custom formulas).
- **Flow — live, simulation-aware (Alpha+):** 24 `/v1/flow/*` endpoints.
Analytics: `flowLevels` / `flowPinRisk` / `flowSummary` / `flowOi` /
`flowGex` / `flowDex` / `flowDealerRisk` / `flowLive` — live gamma flip /
walls / max pain, 0DTE pin score, flow direction + GEX shift, OI
simulator state, flow-adjusted GEX/DEX, settled-vs-live dealer risk,
all-in-one bundle. Signals: `flowSignals` / `flowSignalsSummary` —
scored per-print signals (block/sweep, NBBO aggressor, opening/closing
bias, intent) with 0-100 score + chain enrichment, plus net
bullish/bearish + opening/closing premium roll-up. Raw:
`flowOptionRecent|Summary|Blocks|History|Cumulative`, the `flowStock*`
equivalents, and `flowOptionsLeaderboard|Outliers` /
`flowStocksLeaderboard|Outliers`. Every method has a strongly-typed
`*Typed` variant.
## New endpoint families (v1.1)
All back-compatible — existing method signatures are unchanged; new
parameters arrive as additional overloads.
- **Strategy signals (×10)** — `GET /v1/strategy/{kind}/{symbol}` via
`strategyFlowAnomaly` / `strategyExpiryPositioning` / `strategyZeroDte`
/ `strategyDealerRegime` / `strategyVolCarry` / `strategyYieldEnhancement`
/ `strategySurfaceAnomaly` / `strategySkew` / `strategyTermStructure` /
`strategyTailPricing`. Each returns the shared `StrategyDecisionResponse`
(recommendation, conviction, rationale, suggested structure). Recommend
when the user wants an actionable verdict, not just raw exposure —
"should I sell this strangle", "is the OPEX pin tradable", "is vol carry
worth it", "is skew / term structure / the downside tail mispriced".
- **Earnings (×8)** — `earningsCalendar`, `earningsExpectedMove`,
`earningsHistory`, `earningsIvCrush`, `earningsVrp`,
`earningsDealerPositioning`, `earningsStrategies`, `earningsScreener`
under `/v1/earnings/*`. Recommend for "when does X report", "earnings
expected move", "post-earnings IV crush", "earnings VRP", "rank the
richest earnings vol".
- **Structures (×2, pure math, POST)** — `structurePnl` (at-expiry P&L
curve, breakevens, max profit/loss) and `structureGreeks` (aggregate
BSM greeks across legs, per-leg expiry + IV) under `/v1/structures/*`.
Build legs with `StructureLeg.pnlLeg(...)` / `greeksLeg(...)` →
`StructureRequest` / `StructureGreeksRequest`.
- **Exposure sheet / term-structure / basket / OI diff** —
`GET /v1/exposure/sheet/{symbol}` (per-strike GEX/DEX/VEX/CHEX + DAG,
Line-in-the-Sand inflection strike, gamma peaks, OPEX / triple-witching
flags), `/v1/exposure/term-structure/{symbol}` (net exposure by DTE
bucket), `/v1/exposure/basket` (weighted cross-symbol aggregate, ≤50),
`/v1/exposure/oi-diff/{symbol}` (day-over-day OI deltas, top-N changes).
- **Vol micro-structure** — `GET /v1/liquidity/{symbol}` (0-100 execution
score, ATM / OI-weighted bid-ask spread %), `/v1/volatility/skew-term/{symbol}`
(25Δ / 10Δ wing IVs, skew_25d, risk_reversal_25d, butterfly_25d,
tail_convexity), `/v1/volatility/spot-vol-correlation/{symbol}`
(spot-vol-beta / leverage), `/v1/dispersion` (index-vs-basket
implied-vs-realized correlation, vol-arb), `/v1/surface/svi/{symbol}`
(calibrated SVI params), `/v1/expected-move/{symbol}` (straddle-implied
move per expiry), `/v1/volatility/realized/{symbol}` (range-based realized
vol over 10/20/30d — close-to-close, Parkinson, Garman-Klass,
Rogers-Satchell, Yang-Zhang), `/v1/volatility/forecast/{symbol}`
(conditional vol forecasts — EWMA λ=0.94, HAR-RV, GARCH(1,1) MLE; optional
`dist=student_t|gaussian`).
- **VRP history + point-in-time** — `vrp(symbol, date)` and
`vrpHistory(symbol[, days])` extend the live `/v1/vrp/{symbol}`.
- **Intraday 0DTE flow** — `/v1/flow/zero-dte/{snapshot|series|hedge-flow|heatmap|strike-flow}/{symbol}`
via `flowZeroDteSnapshot|Series|HedgeFlow|Heatmap|StrikeFlow`; plus
`flowDealerPremium` (Net Dealer Premium roll-up) and `flowStockBars`
(per-resolution stock-flow OHLC).
- **Macro / universe** — `vixState()` (`/v1/macro/vix-state`: level +
regime + term structure) and `universe()` (`/v1/universe`: curated
pre-warmed symbol directory, public).
- **Screener fields (v1.1)** — `expected_move`, `liquidity_score`,
`skew_25d`, `risk_reversal_25d`, `butterfly_25d`, `tail_convexity`,
`spot_vol_corr`, `oi_diff_call`, `oi_diff_put`, `vix_state`, and the
per-strike `exposure_sheet` columns are now filterable / sortable.
## Tiers (summary)
- **Free / Public** — health, surface, tickers, basic stock quotes.
- **Any** — GEX/DEX/VEX/CHEX, key levels, greeks, IV, stock summary.
- **Growth+** — exposure summary, 0DTE, narrative, max pain, option
quotes, volatility.
- **Alpha+** — VRP, advanced volatility (SVI, variance swap, arb checks),
the full `flow*` tier (24 simulation-aware + signals + raw flow endpoints).
Sign up for an API key at https://flashalpha.com.
## Links
- API playground: https://lab.flashalpha.com/swagger
- API key signup: https://flashalpha.com
- Other SDKs: Python (`pip install flashalpha`), JavaScript
(`npm i flashalpha`), .NET (`dotnet add package FlashAlpha`), Go
(`go get github.com/FlashAlpha-lab/flashalpha-go`), MCP server.