OPEN-SOURCE SCRIPT

BTC Coinbase Premium

ที่อัปเดต:
This script is designed to compare the price of Bitcoin on two major exchanges: Coinbase and Binance. It helps you see if there’s a difference in the price of Bitcoin between these two exchanges, which is known as a “premium” or “discount.”

Here’s how it works in simple terms:

Getting the Prices:

The script first fetches the current price of Bitcoin from Coinbase and Binance. It looks at the closing price, which is the price at the end of the selected time period on your chart.

Calculating the Difference:

It then calculates the difference between these two prices. If Bitcoin is more expensive on Coinbase than on Binance, this difference will be positive, indicating a “premium.” If it’s cheaper on Coinbase, the difference will be negative, indicating a “discount.”

Visualizing the Difference:

The script creates a visual chart that shows this price difference over time. It uses green bars to show when there’s a premium (Coinbase is more expensive) and red bars to show when there’s a discount (Coinbase is cheaper).

Optional Table Display:

If you choose to, the script can also show this price difference in a small table at the top right corner of your chart. The table displays the words “Coinbase Premium” and the exact dollar amount of the premium or discount.

Why does it matter?


Traders and investors have spotted a correlation between bullish strength on BTC and a strong Coinbase premium along with the inverse of a strong Coinbase discount and BTC price weakness.



เอกสารเผยแพร่
*UPDATING INDICATOR NAME*

The "coinbase premium" for BTC is actually just the basis of USDT/USD pairing

Let me explain:

When USDT/USD trades ABOVE $1 (Premium):
-USDT buys more BTC on Binance -> Binance price looks cheaper
-Coinbase price looks higher

When USDT/USD Trades BELOW $1 (Discount):
-USDT buys less BTC on Binance -> Binance price looks expensive
-Coinbase price looks lower

Example with BTC = $50,000

USDT at $1.01:
Binance -> $49,504
Coinbase -> $50,000 (premium?)

USDT at $0.99:
Binance → $50,505
Coinbase → $50,000 (discount?)

Takeaway:
Coinbase premium means USDT is inflated
Coinbase discount means USDT is weaker
binanceBitcoin (Cryptocurrency)BTCBTCUSDBTCUSDTcoinbasediscountpremiumstatisticsVolatility

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?


Follow me on twitter! twitter.com/traderview2
และใน:

คำจำกัดสิทธิ์ความรับผิดชอบ