Crypto Coin Widget (Coin Chip)
The Coin Chip is a free crypto coin widget that shows a live price, 24h change and coin logo anywhere on your website. Add it with one script tag, no signup or API key needed. Use it inline in text, as a row or grid, or as a scrolling crypto price ticker.
Related: crypto widgets, top movers widget
Demo
Light / dark, variantsIntegration
Include the script once per page. Use any method below — all render the same widget.
Inline chip
The fastest way in: add the script once, then place a chip anywhere in your markup. The price refreshes on its own.
<!-- 1. Include the script once per page -->
<script src="https://cdn.bubblenexus.com/widgets/v1/coin-widgets.js?v=1.4.3"></script>
<!-- 2. Drop a chip into any sentence or element -->
<p>
Bitcoin <span data-cw="btc"></span> is trading near its weekly high.
</p>Auto render
Add attributes to the script tag and it renders a widget right after itself — no wrapper element required.
<script
src="https://cdn.bubblenexus.com/widgets/v1/coin-widgets.js?v=1.4.3"
data-coins="btc,eth,sol,ada,xrp"
data-layout="row"
data-theme="light"
data-size="md"
></script>JavaScript API
Full control from JS — pick the target, layout, size and link behaviour programmatically. Call .refresh() to re-fetch prices.
<div id="coin-chips"></div>
<script src="https://cdn.bubblenexus.com/widgets/v1/coin-widgets.js?v=1.4.3"></script>
<script>
ChipWidget.init({
target: "#coin-chips",
coins: ["btc", "eth", "sol"],
theme: "light",
layout: "grid",
cols: 3,
size: "md",
icon: true,
name: true,
change: true,
link: true
});
</script>Options
In markup use data-*attributes; in the JavaScript API drop the data- prefix.
| Attribute | Values | Default | Description |
|---|---|---|---|
data-cw | coin slug or symbol | — | Coin for an inline chip, e.g. btc, bitcoin or Bitcoin. Only used on inline spans. |
data-coins | comma-separated list | btc,eth | Coins to display. Accepts slugs, symbols or names: btc,ethereum, Solana. |
data-theme | light | dark | light | Colour palette used by the widget. |
data-layout | inline | row | grid | ticker | inline | inline sits inside text, row wraps horizontally, grid uses data-cols columns, ticker scrolls continuously. |
data-size | sm | md | lg | md | Chip font size and padding. |
data-cols | 1–6 | 3 | Column count — only used when data-layout is grid. |
data-icon | true | false | true | Show the coin logo. |
data-name | true | false | true | Show the full coin name under the symbol. |
data-change | true | false | true | Show the 24h change pill. |
data-link | true | false | true | Wrap each chip in a link to its Bubblenexus coin page. Links always open in a new tab. |
data-href | URL | — | Custom link URL for each chip. Defaults to the coin's Bubblenexus page. |
target | selector | element (JS API only) | auto-created | Where ChipWidget.init() renders: a selector like "#coin-chips" or a DOM element. Omit it and the widget creates its own element right after the script tag. No data-target attribute in markup. |
.refresh() | method (JS API only) | — | Call instance.refresh() on the object returned by ChipWidget.init() to re-fetch prices without reloading the page. |
ChipWidget.init() returns a widget instance. Call instance.refresh() to re-fetch prices without reloading the page.
Use Cases
Add a price chip next to a coin name in a blog post or news article. Show a row of top coins in a site header. Build a scrolling crypto ticker for a dashboard or landing page. Display a grid of coin prices on an exchange review or portfolio page.
Troubleshooting
If a chip does not appear, check that the script is loaded once per page and that the coin slug or symbol is valid. If your site uses a Content Security Policy, allow scripts from cdn.bubblenexus.com. Call the refresh method to re-fetch prices without reloading the page.
FAQ
Is the Coin Chip widget free?
Yes. It is free with no signup and no API key.
Which coins can I show?
Use a coin slug, symbol or name, for example btc, eth, sol or xrp.
How often do prices update?
About every 55 seconds, and you can trigger a manual update with the refresh method.
Can I change the look?
Yes. Choose light or dark theme, size (sm, md, lg), layout (inline, row, grid, ticker), and show or hide the logo, name and 24h change.
Will it break my site's styling?
No. The chip renders in a Shadow DOM, so your CSS and the widget CSS stay separate.