A trading terminal for Robinhood Chain has the same job as one for any other chain: show the token a user picked, keep it current, and never show stale or missing data as if it were fresh. The difference is in the details. Addresses are 0x hex, risk arrives as verdict rechecks, candles can be revised, and the full trade tape is a wide broadcast rather than a per-token feed.
This guide lays out an architecture for that: one REST snapshot per token, then WebSocket events that decide what to read again. The code uses watchTokenIntelligence() from robinhood-chain-x402 0.21.0, released on 2026-10-10, which implements the whole loop for you. A diagram of the same flow is on the trading terminal solution page, and you can watch a working screen built this way in the live terminal demo.
Updated 2026-11-11: holder count and holder status on Robinhood Chain are served now (see the holders section below), and the channel count changed.
Why not poll
The combined endpoint GET /api/v1/rhc/tokens/{address}/intelligence?include=... is a bounded first paint: you name up to 5 modules, total cost at most 8, and every read counts as one API call. Calling it on a timer for every open panel multiplies source reads and quota for data that mostly did not change. Prices change far more often than locks or risk inputs, so treating them the same is the expensive mistake.
The RHC modules and their costs:
| Module | Cost | Notes on Robinhood Chain |
|---|
snapshot | 2 | Price and market snapshot |
risk | 2 | Risk verdict |
flow | 3 | Buy and sell flow |
buyer_quality | 2 | Buyer scoring |
top_traders | 2 | Largest traders |
kol | 1 | KOL consensus |
locks | 1 | Locks and vesting |
holders | 3 | Indexed holder list, opt-in, REST snapshot only |
holder_count | 1 | Holder count from our own Transfer-log index; ready only when reconciled against totalSupply() |
Each module returns its own status (ready, partial_history, unverified, unavailable or timeout), reason, as_of and provenance. The response also states chain_id 4663 and native_asset ETH, and the address is canonicalised to lowercase.
The event map
All of this rides the main stream, wss://madeonsol.com/ws/v1/stream, which carries more than 30 channels across Solana and Robinhood Chain (the current list is on the streaming page). There is no rhc:token_intelligence channel. The helper subscribes the existing ones with filters.addresses:
| Module | Channel | Events | Plan |
|---|
snapshot | rhc:token_prices | rhc:token_price (live overlay, no REST read) | Pro and up |
risk | rhc:token_risk | rhc:risk_verdict, rhc:risk_verdict_changed | Pro and up |
locks | rhc:token_locks | rhc:token_lock, rhc:token_unlock_upcoming, rhc:token_unlock_available | Pro and up |
flow, buyer_quality, top_traders | rhc:token_candles | rhc:candle_closed, rhc:candle_revised | Pro and up |
flow, buyer_quality, top_traders | rhc:dex_trades | rhc:dex_trade, only with includeRhcFirehose: true | Ultra and up |
kol | rhc:kol_trades | rhc:kol_trade, only with includeKolBroadcast: true | Pro and up |
holders, holder_count | rhc:token_holders (separate from the helper) | Snapshot per token on subscribe, then the changed balances per committed fold; resume with filters.cursors | Pro and up |
Two of those rows deserve a warning. rhc:kol_trades is a roster broadcast, not filtered to your token. And rhc:dex_trades is not filtered by address at the server: with the opt-in you receive the whole attributed RHC tape on that socket, and the helper filters it client-side only to decide which module to mark stale. That is useful for a busy desk on Ultra. For a light terminal, leave it off and let candle closes drive the refresh.
The loop, step by step
- Subscribe and wait. The panel sends a named
subscribe (its own sub_id) on the shared socket and waits for the ACK naming that sub_id and every channel. A partial or refused ACK puts the view in phase: "degraded" with incomplete: true.
- Snapshot once. After the ACK, one include-scoped REST read.
- Overlay prices.
rhc:token_price ticks go to view.live.snapshot. They never rewrite the REST snapshot and never trigger a read. A late tick never replaces a newer one.
- Re-read selectively. A risk, lock, KOL or candle event marks only its module stale. Refreshes are debounced (750 ms by default), each module waits at least 15 seconds between reads by default (1 second to 10 minutes allowed), and no read exceeds 5 modules or cost 8. Quiet stream, zero reads.
- Reconnect honestly. The SDK re-subscribes, the helper takes a fresh snapshot after the re-ACK, and any reported replay gap keeps
incomplete: true until you reconcile it yourself.
Runnable example: one RHC panel in Node
npm install [email protected]
MADEONSOL_API_KEY=msk_... RHC_TOKEN_ADDRESS=0x... node rhc-panel.mjs
// rhc-panel.mjs (Node 22+). Key mode only: a keyless x402 client throws
// token_intelligence_requires_api_key. x402 pay-per-call never opens a WebSocket.
import { RobinhoodChainX402 } from "robinhood-chain-x402";
const client = new RobinhoodChainX402({ apiKey: process.env.MADEONSOL_API_KEY });
const stream = client.stream(); // one shared socket for every panel
const view = client.watchTokenIntelligence(process.env.RHC_TOKEN_ADDRESS, {
stream,
subId: "rhc_panel_main",
tier: "PRO",
include: ["snapshot", "risk", "flow"], // cost 7 of 8
onChange(v) {
console.log("phase", v.phase, "stale", v.stale, "no_push", v.no_push, "incomplete", v.incomplete);
for (const [name, m] of Object.entries(v.snapshot?.modules ?? {})) {
console.log(" ", name, m.status, m.reason ?? "", m.as_of ?? "");
}
},
onLive(frame, module) {
if (module === "snapshot") console.log("price overlay", frame.data);
},
});
process.once("SIGINT", () => { view.dispose(); stream.close(); });
On an Ultra plan, a desk that wants finer flow refreshes can add includeRhcFirehose: true and set tier: "ULTRA". Measure the bandwidth first: you are subscribing to the chain's whole attributed tape.
Several panels and a browser front end
Each panel is one named subscription on the same socket: 5 per connection on Pro, 10 on Ultra, 20 on Business. The price, candle and risk channels also cap the addresses one connection watches (25 on Pro, 100 on Ultra, 250 on Business), and a subscribe over the cap is rejected rather than truncated.
For a browser terminal, keep the msk_ key on your server. robinhood-chain-x402 exports the controller (createTerminalTokenView) and terminalStreamPort, so the page can use a RobinhoodChainStream whose getToken calls your backend, and a read that calls your backend's proxy of the intelligence GET:
// browser, no API key
import { RobinhoodChainStream, terminalStreamPort, createTerminalTokenView } from "robinhood-chain-x402";
const stream = new RobinhoodChainStream({
getToken: () => fetch("/api/my/rhc-stream-token", { credentials: "include" }).then((r) => r.json()),
});
export function mountRhcPanel(el, address, subId) {
const view = createTerminalTokenView({
chain: "robinhood-chain", address, tier: "PRO", subId,
include: ["snapshot", "risk", "locks"],
stream: terminalStreamPort(stream),
read: (include) =>
fetch("/api/my/rhc-intel/" + address + "?include=" + include.join(","), { credentials: "include" })
.then((r) => { if (!r.ok) throw new Error("intel_" + r.status); return r.json(); }),
onChange: (v) => { el.dataset.phase = v.phase; el.dataset.incomplete = String(v.incomplete); },
});
view.start();
return () => view.dispose(); // close the shared stream when the last panel unmounts
}
On the backend, those two routes call client.getStreamToken() and client.tokenIntelligence(address, { include }) with your key, behind your own login. A stream token opens your account's stream, so never serve it to anonymous visitors. Displaying the data to your own end users needs the Business embed licence; see pricing.
Beyond the intelligence modules
A full terminal has panes the composite does not cover. Keep them on their own routes and channels: the chart history from GET /api/v1/rhc/tokens/{address}/candles merged with rhc:token_candles, and the trade list from GET /api/v1/rhc/tokens/{address}/trades. A one-minute candle stream is not a trade-by-trade feed, so a tape pane on Pro is a REST view, and a live tape is the Ultra rhc:dex_trades channel with the bandwidth caveat above. Tiers per route are listed in the API docs.
Holders come two ways: a REST read and, since 2026-11-11, a WebSocket channel. GET /api/v1/rhc/tokens/{address}/holders returns the ranked holder list and concentration.holder_count: addresses with a positive balance, with and burn addresses excluded. The balances are rebuilt from every ERC-20 Transfer log on our own node and follow the chain within about 15 seconds. A newly tracked token gets its full history folded once, and only when that history adds up to the on-chain .