WebSocket

Subscribe to Polaris Market Data over WebSocket.

Endpoint:

wss://data.polarislab.xyz/ws

Query parameters:

ParameterMeaning
feedswaps, liquidity_book, quote_surface, or depth
pairPair label such as SOL-USDC
poolExact pool address where supported
sourceSwap source where supported
profilefast 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=dense

Pass API keys from server-side code only. Request access to apply for endpoint access.