Skip to content

Health

GET /health

Returns proxy health status including WebSocket connections, feed staleness, and blend diagnostics.

bash
curl https://mainnet.proxy.ryze.pro/health

Response 200 (status: "ok")

json
{
  "status": "ok",
  "uptime_s": 86400,
  "timestamp": "2026-04-15T12:00:00Z",
  "feeds": {
    "count": 4,
    "oldest_age_ms": 730,
    "avg_price_age_ms": 185
  },
  "websockets": {
    "connected": 3,
    "total": 3,
    "total_updates_processed": 150000,
    "total_updates_deduped": 300000,
    "avg_update_interval_ms": 500
  },
  "sse": {
    "clients": 5
  },
  "blend_prices": [
    {
      "feed_id": "2",
      "symbol": "ff61491a...",
      "token": "0x4200000000000000000000000000000000000006",
      "pyth_price": "1600250000000000000000",
      "cex_price": "1600300000000000000000",
      "blend_factor": "500000000000000000",
      "blended_price": "1600275000000000000000"
    }
  ]
}

Fields

FieldTypeDescription
statusstring"ok" or "degraded"
uptime_snumberSeconds since proxy start
feeds.countnumberNumber of active price feeds
feeds.oldest_age_msnumberAge of stalest feed in ms
feeds.avg_price_age_msnumberAverage feed age in ms
websockets.connectednumberActive upstream connections
websockets.totalnumberTotal configured connections (3)
websockets.total_updates_processednumberUnique price updates received
websockets.total_updates_dedupednumberDuplicate updates dropped
sse.clientsnumberConnected SSE subscribers
blend_pricesarrayCurrent blend state per feed

Degraded Status

The proxy reports "degraded" when:

  • No WebSocket connections are active
  • No updates received after 10 seconds of uptime
  • Any price feed is older than 10 seconds