From 91ac76d6a9b42409f579181db4f8708fc788b471 Mon Sep 17 00:00:00 2001 From: Tomasz Dobrowolski Date: Sat, 7 Nov 2026 14:50:37 +0200 Subject: [PATCH 1/2] docs: drop "uncached" from the Alpha pitch Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd8f7ce..e0fdeda 100644 --- a/README.md +++ b/README.md @@ -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. From 2421b93d83f863ca4afffe5bee35288d60c0b497 Mon Sep 17 00:00:00 2001 From: Tomasz Dobrowolski Date: Mon, 9 Nov 2026 10:42:45 +0200 Subject: [PATCH 2/2] docs: remove cache mentions The owner decided on 2026-11-09 that customer copy should not mention caching. Paid plans are live, a Free API key gets delayed data, and the stock summary without an API key is the previous trading session's snapshot. The cross-symbol flow scans now say they refresh about every 30 seconds. - docs/data-types.md, docs/troubleshooting.md, Volatility.cs, volatility.py: adv-volatility responses can take about 1.5 seconds, without the cold-cache wording. The troubleshooting anchor cold-cache-adv-vol is now slow-adv-vol, and the advice to pre-warm the server cache is removed. - The bridge's own in-process cache is client-side, so its docs are unchanged. Co-Authored-By: Claude Opus 5.5 --- docs/data-types.md | 2 +- docs/troubleshooting.md | 7 +++---- src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs | 4 ++-- src/python/src/flashalpha_quantconnect/data/volatility.py | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/data-types.md b/docs/data-types.md index 6d2a62c..ffa3b1a 100644 --- a/docs/data-types.md +++ b/docs/data-types.md @@ -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 diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index c552b13..a61384a 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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) --- @@ -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. diff --git a/src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs b/src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs index 79b0637..fe97c44 100644 --- a/src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs +++ b/src/csharp/FlashAlpha.QuantConnect/Data/Volatility.cs @@ -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. /// -/// Cold-cache responses can take ~1.5s — bars should be requested with -/// generous timeouts. Plan-canonical endpoint slug is adv-volatility +/// Responses can take ~1.5s, so request bars with generous +/// timeouts. Plan-canonical endpoint slug is adv-volatility /// (hyphenated); SDK REST path is adv_volatility (underscored). Both /// resolve to the same SDK method. /// diff --git a/src/python/src/flashalpha_quantconnect/data/volatility.py b/src/python/src/flashalpha_quantconnect/data/volatility.py index 01985e1..f5bae55 100644 --- a/src/python/src/flashalpha_quantconnect/data/volatility.py +++ b/src/python/src/flashalpha_quantconnect/data/volatility.py @@ -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")``.