Skip to main content
This recipe shows you how to build a token page that shows what a token is worth, who holds it, and what is trading now. You fill each section from one set of REST requests, then keep the page live with two stream subscriptions.

1. Subscribe

Open the stream and subscribe before you read the snapshot, so that no change is missed between the request and the subscription. Wait for both acks; each ack always arrives before the first update of its subscription. See Initial snapshot.

2. Read the snapshot

Read the token object and the latest trades in parallel.

3. Apply updates

Streamed trades include flags and platforms when they are present, so you can show wallet badges on live trades immediately.

4. Render the sections

Show the native value next to the USD value for traders who think in SOL, ETH or BNB.

Holders and risk

You choose the thresholds. Every Pct field uses a 0–100 scale, and the glossary defines each holder group.

Security

Launchpad status

  • While graduatedAt is null and bondingCurvePct is set, show a progress bar based on bondingCurvePct.
  • Once graduatedAt is set, show the DEX the token graduated to from graduatedToDex.
metadata.website, metadata.twitter, metadata.telegram and metadata.discord can each be null. Hide any link that is null.

Next steps