Volume Ball

API reference

Live stream

Server-sent events for drops, rounds, deposits, registrations and the index pulse.

Connect#

GET/api/stream
bash
curl -N https://volumeball.dev/api/stream
js
const es = new EventSource("https://volumeball.dev/api/stream");
es.onmessage = (m) => {
  const { type, data, at } = JSON.parse(m.data);
  if (type === "drop") console.log(data.length, "new drops");
};

Each message is one JSON object { type, data, at } where at is a Unix time in milliseconds. The server sends retry: 3000 and a comment ping every 20 seconds.

Event types#

typedata
dropAn array of verified drops from one batch, same shape as /api/drops rows
round{ mint, symbol, number, status, planned, reached }
deposit{ mint, symbol, sol, kind }
coin{ mint, symbol, status }
pulse{ tradesPerMin, indexed, eligible, recent }
configChanged public settings

The pulse#

Every 3 seconds while the worker runs: trades seen in the last minute, the index size and eligible count (refreshed each minute), and up to 16 wallets that just traded.