VANTA
Docs

Developers

WebSocket

Realtime price, book and fill streams.

Subscribe

Open a socket and subscribe to one or more channels.

const ws = new WebSocket("wss://stream.vanta.trade/v1");

ws.onopen = () => ws.send(JSON.stringify({
  op: "subscribe",
  channels: ["ticker:RHC", "book:RHC", "trades:RHC"],
}));

ws.onmessage = (e) => console.log(JSON.parse(e.data));