Crypto Rates Widget

An embeddable crypto price ticker — live price + 24h change, auto-refreshing — backed by a small Go caching proxy over CoinGecko's free API.

Live demo

The widget below is rendered by the same widget.js you would embed:

Embed it

Drop one <script> tag onto any page:

<script src="https://YOUR-HOST/widget.js"
        data-coins="bitcoin,ethereum"
        data-currency="usd"
        data-interval="30"></script>

All three data-* attributes are read at load time: data-coins (comma-separated CoinGecko IDs, max 20, from the allowlist), data-currency (e.g. usd, eur), and data-interval (poll seconds).

API

MethodPathResponse
GET/this page
GET/widget.jsthe embeddable widget script
GET/api/rates?coins=&currency=snake_case rates envelope (HTTP 200)
GET/healthzok
GET/api/healthzok

Rates are cached in-memory with a 30s TTL and served through a rate-limit resilient proxy. Data by CoinGecko.