Open interest
Series details
The value of all open contracts on the market, in USD, every hour. Rising open interest means new positions are being opened; falling, that they are being closed.
Source: The exchange you trade on
Markets: perp
Exchanges: Binance, Bybit, Bitget, OKX, KuCoin, MEXC, Gate, BingX, Kraken
Min tf: 1h
Use in workbenchCoverage
First stored dates describe the database, not a guarantee of complete history for every market.
- Binance · Perpetual futures · 2026-10-01 · 1h and above · Hourly
- Bybit · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- Bitget · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- OKX · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- KuCoin · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- MEXC · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- Gate · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- BingX · Perpetual futures · 2026-10-14 · 1h and above · Hourly
- Kraken · Perpetual futures · First stored date unavailable · 1h and above · Hourly
Candle alignment
On hourly and longer code candles, open interest uses the final hourly observation inside the candle. Missing observations remain unavailable; the value is a level, not a sum over the candle.
Python example
open_interest = market_data.open_interest
oi_average = indicator.sma(open_interest, 24)
trend = indicator.ema(close, 50)
# New money in the market: open interest above its daily average.
def enter_long():
return close > trend and open_interest > oi_average * 1.02
def exit_long():
return close < trend
Open in workbenchPine example
//@version=6
strategy("Trend with rising open interest", initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)
openInterest = market_data.open_interest
oiAverage = ta.sma(openInterest, 24)
trend = ta.ema(close, 50)
// New money in the market: open interest above its daily average.
if close > trend and openInterest > oiAverage * 1.02
strategy.entry("Long", strategy.long)
if close < trend
strategy.close("Long")
Open in workbenchLLM prompt example
Open interest now is {market_data.open_interest.current}; its last values: {market_data.open_interest.full}. A move in {candles} on rising open interest has new money behind it; a move on falling open interest is positions closing.Open in workbenchCheck market support, historical coverage and timeframe alignment before comparing a backtest with current robot inputs. Missing data is not a zero observation.
Data coverage and backtest windows
Reload this page if interactive controls could not load.