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

Metadata

Release files for led-ticker-crypto 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for led-ticker-crypto 0.2.1
File Size Uploaded Provenance
led_ticker_crypto-0.2.1.tar.gz 36.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for led-ticker-crypto 0.2.1
File Interpreter ABI Platform
led_ticker_crypto-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.1 kB

Release files / led_ticker_crypto-0.2.1.tar.gz

Download URL led_ticker_crypto-0.2.1.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cbeeef839c5117f7f5ff652f4e1cb5027ebccbe127635e3fef94e70668df9b00
BLAKE2b-256 checksum
How to use checksums
8d608754b5782d6a4725c2476d5bf8a6ce5f8983a2c8a630495be59bb69e4757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.

Transparency log

Release files / led_ticker_crypto-0.2.1-py3-none-any.whl

Download URL led_ticker_crypto-0.2.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2dd5b5a6ba46f605eceb59e3f4c3bd75fd09d42f55d275a1984b4e700735b78
BLAKE2b-256 checksum
How to use checksums
d03da29442bd5a5a7b676c71ce86a2a38a496505763d6daed3756c5962214230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.

Transparency log

Security for led-ticker-crypto 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for led_ticker_crypto-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

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