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, variants
Theme
Layout

Integration

Include the script once per page. Use any method below — all render the same widget.

1

Inline chip

The fastest way in: add the script once, then place a chip anywhere in your markup. The price refreshes on its own.

HTML
<!-- 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>
2

Auto render

Add attributes to the script tag and it renders a widget right after itself — no wrapper element required.

HTML
<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>
3

JavaScript API

Full control from JS — pick the target, layout, size and link behaviour programmatically. Call .refresh() to re-fetch prices.

HTML + JS
<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.

AttributeValuesDefaultDescription
data-cwcoin slug or symbol—Coin for an inline chip, e.g. btc, bitcoin or Bitcoin. Only used on inline spans.
data-coinscomma-separated listbtc,ethCoins to display. Accepts slugs, symbols or names: btc,ethereum, Solana.
data-themelight | darklightColour palette used by the widget.
data-layoutinline | row | grid | tickerinlineinline sits inside text, row wraps horizontally, grid uses data-cols columns, ticker scrolls continuously.
data-sizesm | md | lgmdChip font size and padding.
data-cols1–63Column count — only used when data-layout is grid.
data-icontrue | falsetrueShow the coin logo.
data-nametrue | falsetrueShow the full coin name under the symbol.
data-changetrue | falsetrueShow the 24h change pill.
data-linktrue | falsetrueWrap each chip in a link to its Bubblenexus coin page. Links always open in a new tab.
data-hrefURL—Custom link URL for each chip. Defaults to the coin's Bubblenexus page.
targetselector | element (JS API only)auto-createdWhere 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.