data-sources.tracer#
Ergonomic dot-namespace alternative to source(kind).
SYNTAX#
tracer.<namespace>.<kind>: SourceHandle // e.g. tracer.data.ohlcv, tracer.data.oiARGUMENTS#
namespace(string) — Top-level group (e.g. 'data'). Each namespace bundles related kinds — namespacing keeps autocomplete focused.kind(string) — Specific data feed within the namespace. Baseline feeds: data.ohlcv, data.oi, data.funding, data.liquidations, data.orderbook.
RETURNS#
Same SourceHandle shape as source(): { kind, shape, values?, payload?, data }.
EXAMPLE#
// @indicator { name: "OI Histogram", overlay: false }
const oi = tracer.data.oi;
function onBar(i, ctx) {
// Same payload you'd get from source("oi") — pre-aligned columnar arrays.
plot.histogram("oi-delta", oi.values.deltas[i]);
}