k256.xyz
WSWebSocketRESTREST
v1WebSocket

Channels

Token Prices
Fee Market
Blockhash
Pool Updates
Streaming Quotes
0 / 5 selectedIdle
Raw JSON0 msgs

No channels selected

Click the circle icon next to a channel to subscribe before connecting.

Token Prices

K2 Data

Real-time USD prices for selected tokens.

wss://gateway.k256.xyz/v1/ws?apiKey=***
/docs/ws/contracts/k2/prices

Token Prices

Real-time USD price updates for selected tokens.

Subscription

Subscribe with a list of token mint addresses and a threshold in basis points. Updates are emitted when a price changes by more than the threshold.

Client Messages

  • subscribe_price — Start receiving price updates
  • unsubscribe_price — Stop receiving price updates
  • Server Messages (JSON mode)

  • price_update — Single token price change
  • price_batch — Batch of price updates
  • price_snapshot — Full price snapshot on subscribe
  • Notes

  • Auth via X-API-Key header or ?apiKey= query param
  • Binary mode uses SDK client; JSON mode uses raw WebSocket