PROTECTED SOURCE SCRIPT
Aggiornato

Universal Premium Monitor(X: 0x664_)

214
You can use this indicator to compare price differences—between exchanges, trading pairs, stable-coins, or even spot vs. futures markets—making it handy for arbitrage and for gauging buying and selling pressure across venues.

1. What the indicator does
It displays the real-time premium (spread) between two trading pairs. The indicator subtracts Pair 2’s price from Pair 1’s price. If the two pairs are quoted in different stable-coins, it first converts Pair 2’s price using the live exchange rate between the two stable-coins, so the premium remains as accurate and useful as possible.

2. How to use it
① Use the built-in pair selector
The script includes seven exchanges, three base coins, and four stable-coins. Mix and match to suit your needs.

Example: You want to see the premium between OKX BTC/USDT (spot) and Binance BTC/USDC (perpetual futures).

Pair 1 settings

- Exchange: OKX

- Base coin: BTC

- Stable-coin: USDT

Pair 2 settings

- Exchange: BINANCE

- Base coin: BTC

- Stable-coin: USDC

- Tick “Futures contract”

The indicator automatically converts Pair 2 into USDT at the current USDT/USDC rate, then compares it with Pair 1 to output the live premium.

② Enable “Custom Pair Mode” for anything else
Tick “Enable custom pair mode” and type full TradingView symbols (e.g., BINANCE:BTCUSDT.P, where “.P” denotes a futures contract; omit it for spot).

Example: Compare Binance XRP/USDT (spot) with Coinbase XRP/USD (spot).

Tick “Enable custom pair mode.”

Pair 1 full symbol: BINANCE:XRPUSDT   | Stable-coin: USDT

Pair 2 full symbol: COINBASE:XRPUSD   | Stable-coin: USD

The indicator converts Pair 2 via the USDT/USD rate, then outputs the real-time premium versus Pair 1.

Notes
Liquidity for stable-coins other than USDT, USDC, USD, and DAI is extremely poor (DAI isn’t great either). Even if you enter a pair quoted in another stable-coin, the script cannot fetch reliable data or perform conversions for it.

When entering symbols manually, be sure the “Stable-coin” field matches the quote currency of your symbol; otherwise the conversion will fail.


你可以用它查看不同交易所、不同交易对、不同稳定币或者是期货和现货的差价。方便套利以及观察各交易所期现买卖强度。

1. 指标作用:

可根据用户需求查看两个交易对的实时溢价,使用交易对1减去交易对2得出价差,如果两个交易对使用不同的稳定币记价,则会将交易对2的价格按照两个稳定币当前的汇率自动转换,尽可能保证溢价的真实性和实用性。

2. 使用方法:

①使用指标内嵌的交易对,本指标内嵌了7个交易所,3个主币种,4个稳定币,可根据自己的需求自行选择。

- 例:我想查看OKX的BTCUSDT现货和BINANCE的BTCUSDC合约之间的溢价。

在交易对1设置里选择

交易所:OKX
主币种:BTC
稳定币:USDT

在交易对2设置里选择

交易所:BINANCE
主币种:BTC
稳定币:USDC
勾选上"是否合约"

指标会自动将交易对2的价格与USDTUSDC汇率对进行换汇,再将换汇后的价格与交易对1进行对比,得出实时溢价。


②如果有其它想看的交易所/币种/稳定币组合,也可勾选上"启用自定义交易对模式"后,在"完整交易对付号"中自行输入想查看的两个交易对全称,(格式例=BINANCE:BTCUSDT.P,".p" 为合约格式,非合约无需输入)。

- 例:我想查看BINANCE的XRPUSDT现货和COINBASE的XRPUSD之间的溢价。

首先勾选"启用自定义交易对模式",在交易对1设置中的"完整交易对符号"里输入:BINANCE:XRPUSDT,并将稳定币选为USDT。
在交易对2设置中的"完整交易对符号"里输入:COINBASE:XRPUSD,并将稳定币选为USD。

指标会自动将交易对2的价格与USDTUSD汇率对进行换汇,再将换汇后的价格与交易对1进行对比,得出实时溢价。

注1:由于除USDT/USDC/USD/DAI以外,其它稳定币交易深度都非常糟糕(其实DAI也不咋样),所以即使手动输入的是其它稳定币的交易对,也无法检测并执行其它稳定币的换汇行为。

注2:当手动输入时,请一定将"稳定币"栏对应上你输入的交易对的稳定币,否则无法正常换汇。
Note di rilascio
Now the table color can be customized.

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.