OPEN-SOURCE SCRIPT
Aggiornato Aggregated Perpetual Futures Open Interest

Purpose
Aggregates perpetual futures open interest across Binance, Bybit, and OKX for the base currency of the asset loaded in your tradingview window.
How It Works
Symbol detection: The script grabs syminfo.basecurrency (e.g., “BTC”) from whatever market is on screen.
Ticker mapping: It constructs the three perp-OI feeds that TradingView publishes in the form EXCHANGE:<BASE>USDT.P_OI
Data request: For each feed it fetches the full OHLC candle (request.security) on the chart’s timeframe. If a venue doesn’t list that perp, the request simply returns na.
Aggregation: The script adds the opens, highs, lows, and closes of all non-na feeds to produce a single aggregated OI candle.
General Notes
The status line shows each venue’s individual OI close.
Aggregates perpetual futures open interest across Binance, Bybit, and OKX for the base currency of the asset loaded in your tradingview window.
How It Works
Symbol detection: The script grabs syminfo.basecurrency (e.g., “BTC”) from whatever market is on screen.
Ticker mapping: It constructs the three perp-OI feeds that TradingView publishes in the form EXCHANGE:<BASE>USDT.P_OI
Data request: For each feed it fetches the full OHLC candle (request.security) on the chart’s timeframe. If a venue doesn’t list that perp, the request simply returns na.
Aggregation: The script adds the opens, highs, lows, and closes of all non-na feeds to produce a single aggregated OI candle.
General Notes
The status line shows each venue’s individual OI close.
Note di rilascio
PurposeAggregates perpetual futures open interest across Binance, Bybit, and OKX for the base currency of the asset loaded in your tradingview window.
How It Works
Symbol detection: The script grabs syminfo.basecurrency (e.g., “BTC”) from whatever market is on screen.
Ticker mapping: It constructs the three perp-OI feeds that TradingView publishes in the form EXCHANGE:<BASE>USDT.P_OI
Data request: For each feed it fetches the full OHLC candle (request.security) on the chart’s timeframe. If a venue doesn’t list that perp, the request simply returns na.
Aggregation: The script adds the opens, highs, lows, and closes of all non-na feeds to produce a single aggregated OI candle.
Coin denominated OI: Determined by using a contract multiplier (in all cases 1 contract != 1 coin).
General Notes
The status line shows each venue’s individual OI close.
In this update we added optionality to display coin denominated OI. Additionally, some of the language above was updated.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.