Skip to main content

Request what you display

Choose the endpoint or room for the result your application needs. Pulse and Trending accept filters, page size and charts. Pulse fixes each column’s ordering; Trending supports custom sorting. Set a result limit that matches your screen. Request only the metric windows and charts you display. Choose an update interval suited to the interface, such as interval_ms: 500 or 1000 for a live list. Close unused views with unsubscribe or unsubscribe_all.

Use live subscriptions for changing data

Use HTTP for a current snapshot. snapshots return a data array of pool records. If you then subscribe to live updates, replace that initial display with the first WebSocket reset.

Share a connection across rooms

A single WebSocket connection can join several rooms. Wait for room_joined before configuring each subscription. Keep state and sequence numbers separate for each room. Within a room, use unique view names. Reusing a name replaces that view; other names stay active. Resend the full desired settings on replacement, because omitted settings return to their defaults.

Apply updates completely

For Pulse and Trending, validate and apply all column, row, and chart changes in a frame before rendering. Never combine half an update with the previous result. Use column IDs for display order and require a consecutive frame sequence before applying patches; a reset starts a fresh sequence. On a gap or mismatch, keep the previous complete display, request resync, and wait for a reset. For unavailable_chains, mark retained rows stale.

Reconnect with backoff

After a disconnect, reconnect with exponential backoff and jitter, then join and resubscribe. Keep sending the connection’s JSON ping every 30 seconds while it is open. Fix credentials before retrying authentication failures. For close code 1009, reduce result limits, remove views, or disable charts before reconnecting. See errors for other close codes and HTTP failures.

Use JWT public keys in browsers

Use a pk_jwt_* public key with a valid user JWT in browsers and mobile apps. Use sk_live_* secret keys only in applications you control. Refresh JWT credentials when reconnecting. See authentication.

Handle pages and limits

Use the pagination method documented for each endpoint. discovery uses zero-based live pages, with 1–100 results per view and a page end of at most 1,000. Rows may move between pages as rankings change. Respect Retry-After when supplied and back off on 429 or temporary 5xx responses. See rate limits and pagination.
Last modified on September 27, 2026