Skip to main content
WSS
/
v1
/
ws
Messages
X-Api-Key
type:httpApiKey

Your Prism API key. You can get one for free in the Prism Dashboard.

Subscribe Wallets
type:object

Subscribe to swap updates for a list of wallets.

Unsubscribe Wallets
type:object

Unsubscribe from swap updates for a list of wallets.

Subscribe Tokens
type:object

Subscribe to swap updates for a list of tokens.

Unsubscribe Tokens
type:object

Unsubscribe from swap updates for a list of tokens.

Wallet Swap Message
type:object

Message containing the swap data for the subscribed wallets.

Token Swap Message
type:object

Message containing the swap data for the subscribed tokens.

To keep the connection alive, you need to send a ping message every less than 60 seconds.
You can subscribe and unsubscribe to any amount of topics you want on a single connection. Incoming messages will include a topic field that you can use to filter.
solana.dex.profile.wallet
solana.dex.profile.token
solana.dex.profile.position
solana.dex.swap.wallet
solana.dex.swap.token
solana.dex.trade.wallet
solana.dex.trade.token
solana.dex.price
When subscribing, you can leave the array field of the params object empty to subscribe to all entries.
When unsubscribing, you can leave the array field of the params object empty to unsubscribe from all entries.