The Coinbase Index Widget enables publishers, website developers and bloggers to display the performance of Coinbase Index (CBI) in real time. This widget makes it easier to embed and share cryptocurrency data with a dynamic ticker and sparkline that moves with the market: no more out of date screenshots.
The widget makes a request to load the last 24 hours of Coinbase Index values from the Coinbase API. It also connects to the Coinbase API websocket to receive a stream of new CBI values to update the ticker in real time. Finally, when clicked, the widget will link users to the Coinbase Index webpage for more information.
To embed the Coinbase Index Widget in an iframe, use the following snippet:
<iframe scrolling='no' frameborder='false' height='160' width='290' src='https://index-am.coinbase.com/widget/index'></iframe>
To use the Coinbase Index Widget with oEmbed, use the following URL:
Optionally, max height and max width parameters can be added to the above URL like so:
This page calculates CBI once per second. For each constituent asset, it queries the Coinbase USD order book once per second to determine price, and queries a node maintained by Coinbase on the blockchain once per minute to determine supply.
The Coinbase trademark, Coinbase Index, including the website at am.coinbase.com/index, and all related tickers, widgets and APIs and the contents of this document (and all information and data contained therein and herein) are proprietary property of Coinbase, Inc., Coinbase Asset Management, Inc. and other Coinbase affiliated entities and are provided for information purposes only.
Subject to the following terms and conditions, you are hereby granted a non-exclusive, revocable, limited license to copy and redistribute this document, or publish, quote or refer to the Coinbase Index, in any medium or format for non-commercial and non-monetization purposes only and provided that you give attribution to Coinbase. If you modify Coinbase Index or this document, you may not distribute the modified material without the prior written permission of Coinbase.
For the avoidance of doubt, you may not, directly or indirectly, create or distribute any financial products, including swaps, futures, options or other derivatives or similar contracts, contracts for difference, funds or other collective investment vehicles or schemes which rely on, quote, or refer to Coinbase Index or this document, without the prior written permission of Coinbase.
Coinbase, Inc., Coinbase Asset Management, Inc., and all other Coinbase affiliated entities reserve all rights to revoke the above license on a prospective basis, and to charge license fees to use, quote or refer to Coinbase Index or this document.
Coinbase Index and this document are provided on an "as is" basis and Coinbase, Inc., Coinbase Asset Management, Inc., and all other Coinbase affiliated entities make no representations or warranties as to the quality, accuracy or suitability of Coinbase Index or this document. You acknowledge and agree that Coinbase, Inc., Coinbase Asset Management, Inc. and all other Coinbase affiliated entities are not acting as an investment advisor or portfolio management by providing access to the Coinbase Index and shall bear no responsibility or liability for any loss or damage, howsoever caused, including due to amendment of this document or the index methodology or calculations, resulting from or in connection with your use of Coinbase Index or this document for any purpose.