Skip to main content

tracer.options.iv_index#

At-the-money implied vol index time series from /api/v1/options/iv-index.

SYNTAX#

tracer.options.iv_index: SourceHandle  // ATM implied vol index time series

ARGUMENTS#

  • opts.symbol (string) — Underlying.

RETURNS#

GenericSeriesSourceData — { values: { time, iv } }

REMARKS#

Generic series — rows arrive at the source's native cadence and are NOT 1:1 with chart candles. To align, match values.time[i] (unix SECONDS) against candles[j].time; do not assume row i corresponds to bar i (values.iv[i] is generally NOT bar i's value). (Per-candle kinds like oi/funding are the exception — those are forward-filled to your candles.)

EXAMPLE#

const iv = tracer.options.iv_index;
function onBar(i, ctx) {
  // generic series: match by timestamp, not bar index (see REMARKS)
  const j = iv.values.time.lastIndexOf(candles[i].time);
  plot("iv", j >= 0 ? iv.values.iv[j] : null);
}