TypeScript SDK (Recommended)
The easiest way to consume WebSocket streams is through our official SDK, which handles connection management, reconnection, and provides full type safety:Available Stream Types
| Stream Type | Description |
|---|---|
market | Market data updates |
market-details | Detailed market information |
token-details | Token information updates |
trade / fast-trade | Trade updates |
ohlcv | OHLCV candle updates |
holders | Token holder updates |
pulse-v2 | Pulse V2 data stream |
position | Position updates |
funding | Funding rate updates |
stream-evm | EVM blockchain stream |
stream-svm | Solana blockchain stream |
SDK Features
- Automatic reconnection: Connection drops are handled automatically
- Heartbeat management: Keep connections alive without manual intervention
- Connection pooling: Efficient management of multiple subscriptions
- Full type safety: TypeScript types for all stream payloads
- Easy unsubscription: Clean up resources with returned unsubscribe functions
NPM Package
View on NPM
Need Help or Examples?
Contact Mobula support for live usage examples and integration help
Direct WebSocket Connection
If you prefer to connect directly without the SDK, you can use the WebSocket endpoint: URL:wss://api.mobula.io
Example subscription message:
The SDK handles authentication, message formatting, and connection management automatically. We recommend using it for production applications.