all templates
APIs & Data

Crypto Price Ticker

Live coin prices that refresh themselves every few seconds.

A little price board for Bitcoin, Ethereum and friends that updates on its own. You'll learn polling — re-fetching on a timer — plus formatting money and coloring gains green and losses red.

What's inside

  • Live prices with 24h change, up or down
  • Auto-refresh on a timer (polling)
  • Green / red change indicators
  • Keeps the last good values if a refresh is rate-limited
  • Free API, no key required

Quickstart

$ curl -LO https://devai.io/downloads/crypto-ticker.zip$ unzip crypto-ticker.zip && cd crypto-ticker$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as the zip ships it.

loading…
Download .zip
loading tree…

about this tutorial

A devai.io starter tutorial — keeping data fresh by polling on an interval.