Skip to main content
WSS
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. To update a topic subscription, you can resubscribe to the same topic with new parameters. Incoming messages will include a topic field that you can use to filter the type of message.
When subscribing, you can leave any of the array fields of the params object empty to subscribe to all entries for that field.
When unsubscribing, you can leave the topics array empty to unsubscribe from all topics.
x-api-key
type:httpApiKey

Your Prism API key. You can get one for free in the Prism Dashboard. You must include it in the x-api-key query parameter.

Subscribe Wallets
type:object

Subscribe to profile updates for a list of wallets.

Unsubscribe Wallets
type:object

Unsubscribe from profile updates for a list of wallets.

Subscribe Tokens
type:object

Subscribe to profile updates for a list of tokens.

Unsubscribe Tokens
type:object

Unsubscribe from profile updates for a list of tokens.

Subscribe Positions
type:object

Subscribe to profile updates for a list of positions.

Unsubscribe Positions
type:object

Unsubscribe from profile updates for a list of positions.

Wallet Profile Message
type:object

Message containing the profile data for the subscribed wallets.

Token Profile Message
type:object

Message containing the profile data for the subscribed tokens.

Position Profile Message
type:object

Message containing the profile data for the subscribed positions.