This script track most important Bitcoin Perpetual Swaps vs SPOT (Coinbase).
When strong green color emerge implies that Swaps are trading at premium to spot.
When strong red color emerge implies that Swaps are trading at discount to spot.
These information is useful because it give leading information towards where funding rates are heading.
When trading at premium it will push towards Positive Funding Rates (Longs pay Shorts)
When trading at discount it will push towards Negative Funding Rates (Shorts pay Longs)
It's can also be used to give identify potential local tops or bots when values get too extreme.