Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ calculator and stock quotes. Paid tiers add:
($79/mo), with ETF and index symbols.
- **Full-chain GEX, 0DTE and flow analytics** — from the **Growth tier** ($299/mo).
- **Point-in-time replay since 2017, SVI vol surfaces, VRP analytics, higher-order Greeks**,
uncached and unlimited — the **Alpha tier** ($1,499/mo). FlashAlpha is one of the only
unlimited — the **Alpha tier** ($1,499/mo). FlashAlpha is one of the only
public APIs publishing aggregate vanna and charm exposure across the full universe, with
no look-ahead and no training-serving skew.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ self.Debug(f"atm_iv={bar.AtmIv:.3f} rv_20d={rv.get('rv_20d'):.3f}")

Per-expiry SVI parameters, forward prices, the full total-variance surface (log-moneyness × tenor grid), arbitrage flags, variance-swap fair values, and second-/third-order Greek surfaces.

**Plan tier:** Alpha or above. **Cold-cache latency:** ~1.5s — bump `HttpTimeout` if you see timeouts.
**Plan tier:** Alpha or above. **Latency:** up to ~1.5s. Bump `HttpTimeout` if you see timeouts.

### Fields

Expand Down
7 changes: 3 additions & 4 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This doc covers:
- [Why two symbols? (custom-data vs equity)](#why-two-symbols)
- [Bar fields are null](#bar-fields-null)
- [Tier-restricted endpoints](#tier-restricted)
- [Cold-cache slowness on `adv-volatility`](#cold-cache-adv-vol)
- [Slow `adv-volatility` responses](#slow-adv-vol)

---

Expand Down Expand Up @@ -230,12 +230,11 @@ Fix: upgrade in the FlashAlpha dashboard, or remove the `AddData<…>` for the r

---

## cold-cache-adv-vol
## slow-adv-vol

The `adv-volatility` endpoint runs SVI calibration plus full surface arbitrage checks on each request. **Cold-cache responses can take ~1.5s.** First request after a process restart, or on a date that's never been requested before, blows past the default 30-second HTTP timeout only on pathological surfaces — but per-bar latency is noticeably higher than `gex` or `surface`.
The `adv-volatility` endpoint runs SVI calibration plus full surface arbitrage checks on each request. **Responses can take ~1.5s.** First request after a process restart, or on a date that's never been requested before, blows past the default 30-second HTTP timeout only on pathological surfaces — but per-bar latency is noticeably higher than `gex` or `surface`.

If you're hitting timeouts:

- Bump `FlashAlphaConfig.HttpTimeout` to 60 seconds.
- Don't subscribe `adv-volatility` minute-by-minute. The endpoint is daily-cadence in spirit; minute subscriptions multiply cost without giving you fresh SVI parameters between bars.
- Pre-warm the cache by hitting the date range in a research notebook (`lean research`) before running the backtest.
4 changes: 2 additions & 2 deletions src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public override BaseData Reader(
/// SVI parameters, forward prices, the full total-variance surface, arbitrage
/// flags, variance swap fair values, and second-/third-order greek surfaces.</para>
///
/// <para>Cold-cache responses can take ~1.5s — bars should be requested with
/// generous timeouts. Plan-canonical endpoint slug is <c>adv-volatility</c>
/// <para>Responses can take ~1.5s, so request bars with generous
/// timeouts. Plan-canonical endpoint slug is <c>adv-volatility</c>
/// (hyphenated); SDK REST path is <c>adv_volatility</c> (underscored). Both
/// resolve to the same SDK method.</para>
///
Expand Down
4 changes: 2 additions & 2 deletions src/python/src/flashalpha_quantconnect/data/volatility.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class AdvVolatilityBar(PythonDataBase):
"""Advanced volatility-analytics bar.

Mirrors ``flashalpha_historical.types.AdvVolatilityResponse`` from
``GET /v1/adv_volatility/{symbol}?at=...``. Cold-cache responses can
take ~1.5s.
``GET /v1/adv_volatility/{symbol}?at=...``. Responses can take
~1.5s.

Subscribe with: ``algo.AddData(AdvVolatilityBar, ticker, Resolution.Daily)``
or the sugar ``add_flashalpha_adv_volatility(algo, "SPY")``.
Expand Down
Loading