This endpoint is only available to Growth and Enterprise plans.
Endpoint Details
- URL:
wss://api.mobula.io
- Event Type:
market-details
Subscription Formats
Themarket-details
endpoint supports subscribing to multiple pool addresses for real-time market data.
Multiple Pools Subscription (Recommended)
Subscribe to multiple pools using thepools
array format:
Parameters
Core Parameters
pools
(required): Array of pool subscription items, each containing:blockchain
(required): Blockchain identifier (e.g.,"evm:1"
,"solana"
)address
(required): Pool 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 pool addresses only. For token-specific subscriptions, use the
token-details
endpoint instead.Real-Time Updates
After the initial subscription response, you’ll receive real-time updates whenever new trades occur on the subscribed pools.Real-Time Trade Updates for Pool Subscriptions
When trades happen on subscribed pool addresses, you’ll receive updates with trade information:Unsubscribing from the Stream
Unsubscribe from All Market-Details Streams
Unsubscribe from Specific Subscription
Unsubscribe from Specific Subscription with Type
Unsubscribe from Specific Pools (Partial Unsubscription)
You can unsubscribe from specific pools while keeping others active in the same subscription:Unsubscribe from Multiple Specific Pools
Unsubscribe from Specific Pools 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 pools, leaving other pools in those subscriptions active.