Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.signalium.site/llms.txt

Use this file to discover all available pages before exploring further.

GET /price/0g

curl https://api.signalium.site/price/0g
Response:
{
  "symbol": "0g",
  "priceUsd": 0.557,
  "change24h": 0.182,
  "source": "coingecko",
  "fetchedAt": 1777454139365
}

How it works

  • Upstream: CoinGecko /simple/price?ids=zero-gravity&vs_currencies=usd&include_24hr_change=true.
  • Cache: SQLite row keyed by 0g, refreshed when older than 6 hours.
  • Stale fallback: if CoinGecko is unreachable but a cached row exists, the cached value is served and a warning is logged. Total upstream failures (cold cache + outage) return 502.
The web app uses this for the ≈ $X.XX display in the bet panel via the use0gPrice hook.