WebSocket
Subscribe to Polaris Market Data over WebSocket.
Endpoint:
wss://data.polarislab.xyz/wsQuery parameters:
| Parameter | Meaning |
|---|---|
feed | swaps, liquidity_book, quote_surface, or depth |
pair | Pair label such as SOL-USDC |
pool | Exact pool address where supported |
source | Swap source where supported |
profile | fast or dense where supported |
WebSocket streams require approved API access. Subscriptions may request multiple feeds as a
comma-separated feed value when those feeds share the same authorization scope and filters.
Example:
wss://data.polarislab.xyz/ws?feed=liquidity_book&pair=SOL-USDC&profile=densePass API keys from server-side code only. Request access to apply for endpoint access.