Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt

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

All error responses use this shape:
{ "error": "human-readable explanation" }
Some endpoints include extra context fields (tier, limit, hint, etc.) when useful.

HTTP status codes

CodeMeaningCommon causes
200OK
400Bad RequestInvalid query parameters, unsupported period, malformed timestamp
401UnauthorizedMissing or invalid X-API-Key
404Not FoundPath doesn’t exist OR resource doesn’t exist (e.g. unknown outcome_id)
413Payload Too LargeRequest body exceeds 20KB
429Too Many RequestsRate limit hit (per-key or global)
500Internal Server ErrorDatabase error or unexpected failure
503Service UnavailableDatabase briefly unreachable, or global ceiling hit

Examples

Missing API key

$ curl https://.../api/v1/markets
HTTP 401
{"error":"missing X-API-Key header","hint":"include header X-API-Key: hip4_live_..."}

Rate limit exceeded

HTTP 429
{
  "error": "rate limit exceeded for tier 'free' (600 req/min)",
  "tier":  "free",
  "limit": 600
}

Invalid period parameter

$ curl ".../api/v1/markets/0/candles?period=2m" -H "X-API-Key: ..."
HTTP 400
{"error":"period must be one of 1m, 5m, 15m, 1h, 4h, 1d"}

Unknown outcome

$ curl .../api/v1/markets/9999 -H "X-API-Key: ..."
HTTP 404
{"error":"outcome 9999 not found"}

Retry strategy

For 429 errors: back off based on your tier’s refill rate (free=10s/100 tokens, pro=10s/1000, enterprise=10s/10000). For 500/503: exponential backoff starting at 1s, max 30s, max 5 retries. These should be rare. Never retry 400 / 401 / 404 — those reflect client-side bugs.