PROTECTED SOURCE SCRIPT
CB Spot v BN Futs Premium by Chop324

Coinbase Spot vs Binance Futures Premium Tracker
What This Indicator Does:
This indicator automatically tracks the price premium or discount between Coinbase spot prices and Binance perpetual futures for any cryptocurrency you're viewing. It works dynamically with whatever ticker you load it on - no manual configuration needed.
How It Works:
The script extracts the base currency from your current chart (BTC, ETH, SOL, etc.) and automatically constructs the corresponding tickers:
It then calculates the simple price difference: Coinbase Spot - Binance Futures
Visual Display:
The premium/discount is plotted as a histogram:
Why This Matters:
Coinbase premium is a useful market sentiment indicator, particularly for institutional/US retail activity:
Usage:
Simply load the indicator on any crypto chart (BTCUSDT, ETHUSDT, SOLUSDT, etc.) and it will automatically display the premium/discount for that asset.
Note: Requires both Coinbase spot and Binance perpetual futures data to be available for the symbol you're viewing.
What This Indicator Does:
This indicator automatically tracks the price premium or discount between Coinbase spot prices and Binance perpetual futures for any cryptocurrency you're viewing. It works dynamically with whatever ticker you load it on - no manual configuration needed.
How It Works:
The script extracts the base currency from your current chart (BTC, ETH, SOL, etc.) and automatically constructs the corresponding tickers:
- Coinbase Spot: COINBASE:[SYMBOL]USD
- Binance Perpetual Futures: BINANCE:[SYMBOL]USDT.P
It then calculates the simple price difference: Coinbase Spot - Binance Futures
Visual Display:
The premium/discount is plotted as a histogram:
- Green columns: Coinbase trading at a premium (higher than Binance)
- Red columns: Coinbase trading at a discount (lower than Binance)
- Baseline at 0: Represents price parity between exchanges
Why This Matters:
Coinbase premium is a useful market sentiment indicator, particularly for institutional/US retail activity:
- Positive premium: Often indicates strong US-based buying pressure
- Negative premium: May suggest selling pressure or capital flowing to offshore exchanges
- Extreme deviations: Can signal localized supply/demand imbalances or arbitrage opportunities
Usage:
Simply load the indicator on any crypto chart (BTCUSDT, ETHUSDT, SOLUSDT, etc.) and it will automatically display the premium/discount for that asset.
Note: Requires both Coinbase spot and Binance perpetual futures data to be available for the symbol you're viewing.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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.