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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.