Hi Fyers Support Team,
I'm building an algorithmic trading strategy that sells ATM straddles (CE + PE) on NIFTY/BANKNIFTY and uses VWAP on the **combined premium** (CE price + PE price) to time entries and exits.
1. In the Options > Option Chain screen with the "Straddle" toggle enabled, the platform shows per-strike **Combined OI**, **Combined OI change**, and **Combined Volume** columns (e.g. see attached screenshot 1 — NIFTY 11 Aug 2026 expiry, strike 24600: Combined Volume = 6.75Cr). This indicates Fyers aggregates CE + PE volume/OI server-side for the straddle view.
2. In the standard (non-straddle) Option Chain view, CE and PE Volume/LTP/OI are shown separately per leg (see attached screenshot 2 — same strike 24600: CE Volume = 64.12L, PE Volume = 2.66Cr). Summing these two matches the Combined Volume shown in the straddle view (64.12L + ~2.66Cr ≈ the 6.75Cr range including OI-weighted differences), confirming the combined figure is derived from the same per-leg volumes exposed elsewhere in the UI.
**
What I'm currently doing via the API:**
Since I could not find a direct API endpoint that returns the combined/straddle OHLCV series shown in screenshot 1, I'm approximating it myself using the per-leg data confirmed available in screenshot 2:
1. Fetching separate historical candle data for the CE and PE legs independently via the historical data API (`/data/history`), which returns `volume` per leg matching what's shown in the standard option chain view.
2. Aligning the two candle series by timestamp (inner join).
3. Manually summing `high`, `low`, `close`, and `volume` across the two legs to build a synthetic "combined premium" OHLCV series.
4. Running a standard cumulative VWAP calculation (`cumsum(close × volume) / cumsum(volume)`) on that synthetic series.
**My questions for Fyers Support:**
1. Does the Fyers API expose a direct endpoint (or option-chain response field) that returns the **combined/straddle volume and OHLC** for a CE+PE pair at a given strike — matching what's rendered in the "Straddle" toggle view (screenshot 1)? If yes, could you point me to the relevant endpoint/documentation?
2. If no such endpoint exists, could you confirm the exact formula/methodology used to compute "Combined Volume" and "Combined OI" in the option-chain UI — is it simply CE volume + PE volume per interval (as in screenshot 2), or does it involve any additional normalization? This would let me replicate it accurately via the historical data API.
3. Separately — is there a way to fetch **live/streaming combined premium** (CE LTP + PE LTP) for a strike directly via WebSocket, rather than subscribing to CE and PE symbols individually and summing on my end?
4. Can you confirm the `volume` field returned by the historical data API for an individual option symbol is strictly that leg's own traded volume, with no synthetic/combined component — so that my manual CE + PE summation carries no double-counting risk?
Thanks can you also suggest how to calculate vwap for this combined / straddle leg(s)