Solana WebSocket API use-case guides
Use the SolanaStreaming WebSocket API to receive parsed Solana DEX events in real time. These JavaScript guides show how to subscribe to new liquidity pools, identify token migrations, and follow swaps that report price changes on Pump.fun, PumpSwap, Bonk.fun, Stonk.fun, Raydium, Raydium LaunchLab, and Meteora.
Examples use Node.js and the ws package. Create an API key in the
dashboard, install the package with npm install ws, and review
WebSocket API authentication before connecting to
wss://api.solanastreaming.com:443/.
Send newPairSubscribe to receive newPairNotification messages and
swapSubscribe to receive swapNotification messages. Pool creation and swap
events use confirmed commitment. Swap notifications describe individual observed trades;
they are not aggregated candles or a continuously calculated pool price.
- Pump.fun API — new launches, Pump.fun migrations, and bonding-curve swaps.
- PumpSwap API — new pools, migrated tokens, and pool swaps.
- Bonk.fun API — LaunchLab pools and swaps identified by sub-exchange.
- Stonk.fun API — LaunchLab pools and swaps identified by sub-exchange.
- Raydium API — Raydium pools, LaunchLab migrations, and swaps.
- Raydium LaunchLab API — LaunchLab launches, migrations, and swaps.
- Meteora API — Meteora pools and swaps.
params.include use OR matching. When a filter includes both an exchange and a
migration, it may match either condition; check the event's pair.sourceExchange,
pair.subExchange, and pair.migration fields in your client when you need a more
specific combination. There can be at most one new-pair and one swap subscription on each WebSocket
connection.
For the full list of supported exchange values, parameters, and response fields, see newPairSubscribe and swapSubscribe.
Frequently asked questions
How do I stream new Solana token pools?
Connect to the WebSocket API with your API key and send a newPairSubscribe request. Add
params.include.sourceExchange or params.include.subExchange to filter by DEX or
launchpad.
How do I receive live token price changes?
Send a swapSubscribe request. Each swapNotification includes observed swap data,
including quotePrice; use the event's slot and block time to handle ordering and freshness.
Can one filter match both a DEX and a migration?
Yes, but include fields use OR matching. Inspect pair.sourceExchange,
pair.subExchange, and pair.migration in your application to separate the
matching event types.