Skip to content
ChartDeck ChartScript docs Account Open the terminal

oi

Open interest: the chart’s venue (oi.close, oi.delta, oi.usd), the coin’s Binance perpetual on any chart (oi.ref) and every perpetual venue summed (oi.agg). ChartDeck data.

#Variables

#oi.aggvariable

Open interest summed over every perpetual venue with OI history, in coins (the Aggregated open interest study). Pro and Elite.

oi.agg: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.agg

Since ChartScript 1

#oi.agg_usdvariable

Aggregated open interest in USD: oi.agg × close, per coin. Pro and Elite.

oi.agg_usd: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.agg_usd

Since ChartScript 1

#oi.closevariable

Open interest of the chart’s market, in coins: the last sample in force at each bar’s end (a step series, never interpolated; the Open interest study). na on a spot market or a venue that publishes none.

oi.close: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.close

Since ChartScript 1

#oi.deltavariable

Change in open interest on the bars where a new sample landed, in coins (the OI delta study); na on bars between two samples.

oi.delta: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.delta

Since ChartScript 1

#oi.refvariable

Open interest of the coin’s Binance perpetual (USDT-margined), on any chart: a MEXC or BloFin chart reads Binance’s figure (the Open interest study run on Binance; the last sample in force at each bar’s end). In the units Binance counts (a 1000PEPE contract is one unit). On a Binance chart it equals oi.close. na when Binance lists no perpetual of the coin.

oi.ref: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.ref

Since ChartScript 1

#oi.ref_usdvariable

oi.ref in USD: the Binance units × the chart’s close, per coin (a 1000PEPE unit counts 1,000 coins).

oi.ref_usd: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.ref_usd

Since ChartScript 1

#oi.usdvariable

Open interest of the chart’s market in USD: oi.close × close, per coin (a 1000PEPE or kPEPE market counts 1,000 coins per unit).

oi.usd: float

Type series float.

Example

ChartScriptFragmentOpen in editor
const v = oi.usd

Since ChartScript 1

#Not available yet

#oi.highvariable

Not available yet.

oi.high (later version: the open-interest routes serve one sample per bar, the last; use oi.close).

Since ChartScript 1

#oi.lowvariable

Not available yet.

oi.low (later version: the open-interest routes serve one sample per bar, the last; use oi.close).

Since ChartScript 1

#oi.openvariable

Not available yet.

oi.open (later version: the open-interest routes serve one sample per bar, the last; use oi.close).

Since ChartScript 1

The ChartScript documentation is in English for now; translations will follow.