Skip to main content

led-ticker-crypto

A cryptocurrency price ticker plugin for led-ticker, backed by the free CoinGecko v3 API. It contributes a crypto.coingecko Container widget that cycles one scrolling price line per configured coin — configure one coin for a single ticker, or a list to cycle through several.

Each line shows the coin symbol, current price (adaptive precision — sub-dollar tokens never collapse to 0.0000), and 24-hour percent change. The change value is trend-colored: green for positive, red for negative, gray for neutral — readable at a glance on any panel.

crypto.coingecko cycling BTC, ETH, and SHIB (note the sub-cent SHIB price)

Prerequisites

  • A working led-ticker install.
  • Internet access on the Pi (the widget calls the CoinGecko public API).

Install

The widget auto-registers via the led_ticker.plugins entry point — once the package is installed, no [plugins] config change is needed.

Into a containerized led-ticker (recommended): add this package to config/requirements-plugins.txt (copy it from config/requirements-plugins.example.txt, which already lists it), then rebuild:

# in your led-ticker checkout
cp config/requirements-plugins.example.txt config/requirements-plugins.txt
docker compose up -d --build

That example file lists every first-party plugin — trim the live copy to just the ones you want. The crypto line is:

led-ticker-crypto

Standalone (a venv that already has led-ticker):

pip install led-ticker-crypto

See the led-ticker Plugins docs for the constraint-based install the Docker image uses.

Configuration

Reference the widget in a playlist section by type = "crypto.coingecko". Three coin-spec styles are supported — choose the one that fits your workflow:

Single coin (legacy style)

[[playlist.section.widget]]
type = "crypto.coingecko"
symbol = "BTC"
symbol_id = "bitcoin"
currency = "USD"

Multiple coins by explicit CoinGecko id

[[playlist.section.widget]]
type = "crypto.coingecko"
symbol_ids = ["bitcoin", "ethereum", "dogecoin"]
currency = "USD"

Each id in symbol_ids is also used as the on-panel label (uppercased). Use symbol_ids when you know the exact CoinGecko ids and want to skip the startup lookup.

Multiple coins by ticker symbol (auto-resolved)

[[playlist.section.widget]]
type = "crypto.coingecko"
symbols = ["BTC", "ETH", "SOL"]
currency = "USD"

symbols are resolved at startup against CoinGecko's /coins/list endpoint. Resolution is unique-or-error: if a symbol matches more than one CoinGecko id, the widget fails at startup and lists the candidate ids — use symbol_id or symbol_ids to disambiguate.

You can combine all three styles in one widget; duplicates (by coin id) are silently dropped, keeping the first occurrence.

New to led-ticker configs? The first-config tutorial walks through the overall structure — the blocks above show just the crypto-specific keys.

Finding symbol_id

symbol_id is CoinGecko's internal coin identifier (e.g. "bitcoin", "ethereum", "solana", "dogecoin"). It's the id field in CoinGecko's /coins/list endpoint and appears in a coin's page URL: coingecko.com/en/coins/<id>.

Use symbol_id (or symbol_ids) when:

  • You want to skip the startup /coins/list lookup that symbols triggers.
  • A symbol is ambiguous — the startup error lists the candidates and tells you which ids to use.

Options

Option Type Default Description
symbol string Single-coin label shown on the panel (e.g. "BTC"). Requires symbol_id.
symbol_id string Single-coin CoinGecko id (e.g. "bitcoin"). Requires symbol.
symbols list of strings Ticker symbols auto-resolved to CoinGecko ids at startup (e.g. ["BTC", "ETH"]). Unique-or-error.
symbol_ids list of strings CoinGecko ids used directly, uppercased as panel labels (e.g. ["bitcoin", "ethereum"]).
currency string "USD" Fiat currency code (e.g. "USD", "EUR").
update_interval int 300 Seconds between CoinGecko fetches (5 min default).
center bool true Center the ticker on the canvas when it fits; scroll when it overflows.
padding int 6 Horizontal spacing (logical px) between the symbol, price, and change segments.
hold_time float 0.0 Seconds to hold each coin's ticker before the engine cycles to the next.
bg_color [r,g,b] none Background fill behind the ticker.
font_color [r,g,b] / string / table yellow (255,255,0) Color for the symbol and price. Accepts any led-ticker color provider (e.g. "rainbow", {style="shimmer", ...}). The 24h change color is always trend-colored and ignores this field.

At least one of symbol+symbol_id, symbols, or symbol_ids must be specified — the widget fails at config validation otherwise.

Rate limits & API key

CoinGecko's keyless free tier allows roughly 5 requests per minute. For a single low-frequency widget at the default 5-minute interval this is plenty; if you add more coins or shorten update_interval, you may hit HTTP 429. When that happens the widget logs the rate-limit clearly and lets its monitor loop back off — it will not show stale garbage.

To raise the limit, create a free account at coingecko.com and get a Demo API key (no credit card required). Supply it via the COINGECKO_API_KEY environment variable (the only supported path — config-file secrets are intentionally not accepted):

export COINGECKO_API_KEY="CG-xxxxxxxxxxxxxxxxxxxx"

The key is sent as the x-cg-demo-api-key request header.

Development

led-ticker isn't on PyPI, so this plugin resolves it from a sibling checkout. Clone both side by side:

~/projects/.../led-ticker
~/projects/.../led-ticker-crypto
uv sync --extra dev      # resolves led-ticker from ../led-ticker
uv run pytest -q
uv run ruff check src tests

Note: tests that need a headless canvas obtain one via HeadlessBackend(...).create_canvas() from led_ticker.plugin — the software backend shipped in led-ticker-core ≥ 2.1. No rgbmatrix test stub or PYTHONPATH plumbing is required.

The plugin imports only the public led_ticker.plugin surface — tests/test_import_purity.py enforces it.

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

led_ticker_crypto-0.2.1.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

led_ticker_crypto-0.2.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file led_ticker_crypto-0.2.1.tar.gz.

File metadata

  • Download URL: led_ticker_crypto-0.2.1.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for led_ticker_crypto-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cbeeef839c5117f7f5ff652f4e1cb5027ebccbe127635e3fef94e70668df9b00
MD5 4895a89f2d1e3717ac5ea25933eb8961
BLAKE2b-256 8d608754b5782d6a4725c2476d5bf8a6ce5f8983a2c8a630495be59bb69e4757

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_crypto-0.2.1.tar.gz:

Publisher: publish.yml on JamesAwesome/led-ticker-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file led_ticker_crypto-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for led_ticker_crypto-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2dd5b5a6ba46f605eceb59e3f4c3bd75fd09d42f55d275a1984b4e700735b78
MD5 bad56522735d712090b76d022978f0a0
BLAKE2b-256 d03da29442bd5a5a7b676c71ce86a2a38a496505763d6daed3756c5962214230

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_crypto-0.2.1-py3-none-any.whl:

Publisher: publish.yml on JamesAwesome/led-ticker-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page