Skip to content

Stock and crypto ticker

The ticker is the default mode. It shows one symbol at a time and rotates through your list on a timer.

  • The current price, in the symbol’s currency
  • Absolute change and percent change with an up or down arrow, green for up and red for down
  • A sparkline over the selected timeframe
  • Optional extras you toggle in the Ticker tab’s “What to show” card: the name, the timeframe label, an “updated N s ago” line and rotation dots

The Change & % basis setting in the Ticker tab picks what the change measures:

  • Chart timeframe (the default) computes the change over the span the sparkline shows, live price against the first charted point, and adds the live price as the chart’s newest point. The number, arrow, colours and chart then agree
  • 1 day shows the classic change since the previous close. A stock can be up on the day but down over a longer chart, so with this basis the number and the chart can point in opposite directions

Chart timeframe has three limits. It needs chart data: with fewer than 2 chart points, a webhook that sends no spark series or a failed chart fetch, the device shows the 1-day change until the data arrives. At the 1-day timeframe the reference is the session’s first data point, so an overnight gap is not in the number. GitHub-source tickers chart the span set in the published JSON, so their change covers that span instead of the device timeframe.

Non-USD currencies show as their ISO code, for example CHF 79.73, because the built-in bitmap font has no glyph for signs like the euro.

Add up to 8 tickers in the Ticker tab. Each row has a symbol, an optional name that overrides the source’s own, and its own data source, so Yahoo, cash.ch and webhook tickers can share one rotation. Yahoo examples:

What Examples
US and global stocks and ETFs AAPL, MSFT, VOO
Swiss and European stocks NESN.SW, ROG.SW, UBSG.SW, BMW.DE
Crypto BTC-USD, ETH-EUR
FX EURUSD=X, EURCHF=X

With the cash.ch source the symbol field takes a cash.ch listing key (valor-marketId-currencyId, e.g. 123456789-246-333). This covers Swiss structured products and AMCs that Yahoo does not list. The finder in the Ticker tab turns a cash.ch link, ISIN or name into the key. Data sources has the details.

Give a ticker a qty and a per-unit cost and it becomes a position. Its page shows a P/L line (absolute and percent against your cost basis), and a portfolio summary page in the rotation has one row per position and a total per currency. The “Position P/L & portfolio page” toggle in the Ticker tab turns both off. Cost is per unit in the instrument’s own currency. Totals are kept per currency and not converted.

Two intervals, both set in the Ticker tab, control the display: how long each symbol is shown (rotation) and how often data is refreshed (poll). The default poll of 120 seconds is enough for 8 symbols.

Every symbol keeps its own schedule. After a successful fetch it waits the poll interval. A failed fetch is retried after 12 seconds, then 24, 48 and 96, and from there at the poll interval for as long as it keeps failing. A failing symbol is never dropped, and healthy symbols keep their own schedule. The ESP8266’s heap-guard skip, where a cash.ch fetch is dropped because the heap is briefly too fragmented for the handshake, counts as a failure and is retried a few seconds later. The Ticker tab’s Live data card lists what the device holds per symbol and, for failing ones, how long until the next attempt.

The price source is chosen per ticker. By default a ticker fetches Yahoo Finance directly over HTTPS with no backend. cash.ch works the same way for Swiss instruments, GitHub is a serverless cash.ch proxy you host yourself from a fork, and a webhook ticker calls your own endpoint. Data sources covers all four.