Skip to main content
WSS
Real-time price bars and market-cap bars use the same WebSocket Protocol v2 as other Snekfun services: JSON text frames, subscribe / unsubscribe envelopes, and DefaultOutgoingMessage responses. Auth: Public

Connection

  • Public URL (typical): wss://charts.snek.fun/v1/websocket/ws (reverse proxy adds /websocket before /ws).
  • Application route: the server binds WebSocket at path /ws on the charts WS port.
Open the socket, then send Connect (optional depending on client) and Subscribe messages as JSON.

Topics

Subscribe (client → server)

  • pair.base / pair.quote: Cardano asset ids; ADA may be ".", "ADA", or "0x" on input.
  • interval: min1 | min5 | hour1 | day1 | week1 | month1.
For MCapBar, set "topic": "MCapBar" with the same data shape.

Unsubscribe

Server → client

Envelope:
MCapBarUpdate events carry mCap instead of OHLCV fields.

HTTP fallback

Use Charts HTTP for historical ranges and initial snapshots if WebSocket is unavailable.
Charts bar update
type:object
Subscribe
type:object

Charts subscribe

Unsubscribe
type:object