Streaming (SSE)
Subscribe to live cycle, stats, activity, bid, strategy, market and proposal events with Server-Sent Events.
GET /api/stream is a Server-Sent Events stream. One connection carries every live event; the app uses it for all real-time updates.
| Event | Payload | When |
|---|---|---|
cycle | Cycle | On connect and at every phase boundary |
stats | ProtocolStats | Periodically and after state changes |
activity | Activity | Every new activity record |
bid | { action, bid, proposalId, totalBid, bidders, score } | A bid is placed, raised or cancelled on-chain |
proposal | Proposal | A proposal is created or changes status |
strategy | Strategy | Activation, swaps, liquidity changes, mutations, sunset |
market | MarketTicker | New HYPE price from Hyperliquid |
chain | indexer status (/api/chain/status) | On connect and as the indexer follows new blocks |
#Browser
const es = new EventSource("/api/stream");
es.addEventListener("cycle", (e) => render(JSON.parse(e.data) as Cycle));
es.addEventListener("bid", (e) => {
const { action, proposalId, score } = JSON.parse(e.data);
updateLeaderboard(proposalId, score, action);
});
es.onerror = () => { /* EventSource reconnects automatically */ };#Command line
curl -N https://$HOST/api/stream
# event: cycle
# data: {"id":"daily-5","phase":"auction","msToBoundary":131000,…}
#
# event: bid
# data: {"action":"placed","proposalId":"17","totalBid":1200,"bidders":4,"score":1240,…}#Guidelines
- Keep one stream per client and fan events out locally.
- The server sends comment heartbeats; proxies must not buffer
text/event-stream(see Deployment). - After a reconnect, re-fetch the REST snapshot you depend on: events are not replayed.
- Events are public data; the stream needs no authentication.
Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0