This endpoint is only available to Growth and Enterprise plans.
Endpoint Details
- URL:
wss://api.mobula.io
- Event Type:
token-details
Subscription Formats
Thetoken-details
endpoint supports subscribing to multiple token addresses for real-time token data.
Multiple Tokens Subscription (Recommended)
Subscribe to multiple tokens using thetokens
array format:
Parameters
Core Parameters
tokens
(required): Array of token subscription items, each containing:blockchain
(required): Blockchain identifier (e.g.,"evm:1"
,"solana"
)address
(required): Direct token address
subscriptionId
(optional): Unique identifier for your WebSocket connection. Auto-generated if not providedsubscriptionTracking
(optional, default:false
): Include subscription details in response logs for debugging
Important Notes
This endpoint is specifically for subscribing to tokens only. For pool-specific subscriptions, use the
market-details
endpoint instead.Real-Time Updates
After the initial subscription response, you’ll receive real-time updates whenever new trades occur involving the subscribed tokens.Real-Time Trade Updates for Token Subscriptions
When trades happen involving subscribed tokens, you’ll receive updates with trade information:Unsubscribing from the Stream
Unsubscribe from All Token-Details Streams
Unsubscribe from Specific Subscription
Unsubscribe from Specific Subscription with Type
Unsubscribe from Specific Tokens (Partial Unsubscription)
You can unsubscribe from specific tokens while keeping others active in the same subscription:Unsubscribe from Multiple Specific Tokens
Unsubscribe from Specific Tokens in a Specific Subscription
If you didn’t provide a
subscriptionId
when subscribing, one is auto-generated. To retrieve it, set "subscriptionTracking": true
in the subscription payload.For partial unsubscriptions without subscriptionId
, the system will automatically find and modify subscriptions that contain the specified tokens, leaving other tokens in those subscriptions active.