Provider
Analytics WebSocket
Protocol v2 — pools, orders, and user history streams
WSS
The snekfun-api-provider WebSocket uses Protocol v2: JSON text frames, explicit subscribe / unsubscribe envelopes (Topics (subscribe
messageType, clientId, requestId, topic, optional data), plus connect / ping / pong for lifecycle.
Auth: Public for most topics. Restricted flows (e.g. per-address history) may require appropriate subscription data — follow product security guidance.
Connection
- Typical public URL:
wss://analytics.snek.fun/websocket/ws - Application path:
GET /wson the WebSocket server port.
DefaultOutgoingMessage with event, messageType, and optional data (JSON mirrors server code: MainPage, PoolsFeed, KOTH, LiveOrdersFeed, UserHistoryByAddress, UserHistoryByAddressAndAsset).
Topics (subscribe topic field)
PoolFeed data type is FeedByAssetData; live orders use the same shape.
Subscribe example
Unsubscribe
Connect / heartbeat
Use connect (messageType: connect) with clientId and requestId, and ping / pong (messageType: ping | pong) per the shared protocol implementation.