Skip to main content
GET
/
readyz
cURL
curl --request GET \
  --url https://api.pegana.xyz/readyz
{
  "db": true,
  "redis": true,
  "sources": {
    "hylo_secs": 123,
    "jupiter_secs": 123,
    "pyth_secs": 123,
    "sanctum_secs": 123
  },
  "status": "<string>",
  "last_snapshot_age_secs": 123
}

Response

All downstream deps healthy

db
boolean
required

SELECT 1 on Postgres succeeded.

redis
boolean
required

PING on Redis returned PONG.

sources
object
required

Per-source freshness so /status can render each row with its own honest age instead of mirroring the global discount timestamp.

status
string
required

"ready" if all downstream deps are healthy; "not_ready" otherwise.

last_snapshot_age_secs
integer<int64> | null

Seconds since the most recent discount_snapshots.ts. None if no snapshots exist yet.