@radion-app/sdk package. You run it with tsx, so there is no build step. The SDK handles the X-API-Key upgrade, reconnect, heartbeat, and resubscribe for you.
Quickstart
Need a key? Make one at radion.app, then see
Authentication. Every example reads it from
RADION_API_KEY. Never hard-code it or put it in the URL.What’s included
| Example | Channel | Run |
|---|---|---|
| Mirror a wallet’s trades | trading (wallets) | pnpm run copytrade 0xWALLET |
| Wallet alerts | wallets | pnpm run wallet-alerts 0xWALLET |
| Whale trade feed | trading (min_usd) | pnpm run whales 10000 |
| Single-market monitor | markets | pnpm run market --token 0xTOKEN |
| Mempool early alerts | trading (confirmed: false) + trading | pnpm run mempool |
| Resolution watcher | oracle + resolution | pnpm run resolutions |
| Resilient client | trading | pnpm run resilient |
The SDK realtime client
Every example uses the realtime client from@radion-app/sdk. It handles the production parts once for you:
- opens the socket with the
X-API-Keyheader, - reconnects with exponential back-off,
- sends your subscriptions again after each reconnect,
- sends an app-level
ping, - reconnects on
laggedand stops onkey_revoked.