OPEN-SOURCE SCRIPT
Funding Rate Aggregated (Lite)

Funding Rate Aggregated (Lite) provides traders with a consolidated view of perpetual futures funding rates across multiple major exchanges. Instead of monitoring each market individually, the script aggregates the available data into a single, average funding rate series—streamlining analysis and helping identify market-wide positioning imbalances.
The indicator supports Binance, Bybit, OKX, Bitget, and Coinbase, with user-controlled toggles to enable or disable specific venues. For exchanges offering multiple quote currencies (e.g., USDT, USD, or USDC pairs) inclusion is based on whether their trading activity (volume) is relevant (determined manually, not via code). Each available rate is checked and included in the calculation only if valid, ensuring the average reflects actual market conditions.
From a technical standpoint, the script:
Retrieves real-time funding rate data directly via request.security for the current symbol’s base currency.
Applies standard formatting similar to TradingView's official indicator.
Visualizes the average funding rate with color-coded plotting (green for positive, red for negative), alongside a neutral zero reference line.
Why it is useful:
Funding rates are a direct measure of long/short market bias in perpetual swaps. Persistently high positive rates often indicate overcrowded longs, while negative rates can reveal excessive shorting.
By combining multiple exchanges into one metric, traders gain a more robust signal, reducing noise from isolated exchange-specific anomalies.
This aggregated perspective can assist in timing contrarian trades, spotting funding-driven inefficiencies, and gauging overall market sentiment.
Applications in trading include:
Sentiment analysis: Assess whether perpetual futures traders are leaning heavily long or short.
Cross-exchange confirmation: Ensure that extreme funding isn’t confined to a single venue.
Risk management: Identify periods of elevated funding costs that may erode profitability in longer-term positions.
Strategy filters: Integrate the aggregated rate as a condition for entries/exits, or to adjust position sizing during extremes.
The Lite designation emphasizes simplicity and efficiency: the indicator avoids unnecessary visual and data-driven clutter and focuses on delivering one clear, aggregated signal that can be adapted to a wide range of trading styles.
The indicator supports Binance, Bybit, OKX, Bitget, and Coinbase, with user-controlled toggles to enable or disable specific venues. For exchanges offering multiple quote currencies (e.g., USDT, USD, or USDC pairs) inclusion is based on whether their trading activity (volume) is relevant (determined manually, not via code). Each available rate is checked and included in the calculation only if valid, ensuring the average reflects actual market conditions.
From a technical standpoint, the script:
Retrieves real-time funding rate data directly via request.security for the current symbol’s base currency.
Applies standard formatting similar to TradingView's official indicator.
Visualizes the average funding rate with color-coded plotting (green for positive, red for negative), alongside a neutral zero reference line.
Why it is useful:
Funding rates are a direct measure of long/short market bias in perpetual swaps. Persistently high positive rates often indicate overcrowded longs, while negative rates can reveal excessive shorting.
By combining multiple exchanges into one metric, traders gain a more robust signal, reducing noise from isolated exchange-specific anomalies.
This aggregated perspective can assist in timing contrarian trades, spotting funding-driven inefficiencies, and gauging overall market sentiment.
Applications in trading include:
Sentiment analysis: Assess whether perpetual futures traders are leaning heavily long or short.
Cross-exchange confirmation: Ensure that extreme funding isn’t confined to a single venue.
Risk management: Identify periods of elevated funding costs that may erode profitability in longer-term positions.
Strategy filters: Integrate the aggregated rate as a condition for entries/exits, or to adjust position sizing during extremes.
The Lite designation emphasizes simplicity and efficiency: the indicator avoids unnecessary visual and data-driven clutter and focuses on delivering one clear, aggregated signal that can be adapted to a wide range of trading styles.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.