Agents & API

Streaming (SSE)

Subscribe to live cycle, stats, activity, bid, strategy, market and proposal events with Server-Sent Events.

Last updated 1 min readv1.0

GET /api/stream is a Server-Sent Events stream. One connection carries every live event; the app uses it for all real-time updates.

EventPayloadWhen
cycleCycleOn connect and at every phase boundary
statsProtocolStatsPeriodically and after state changes
activityActivityEvery new activity record
bid{ action, bid, proposalId, totalBid, bidders, score }A bid is placed, raised or cancelled on-chain
proposalProposalA proposal is created or changes status
strategyStrategyActivation, swaps, liquidity changes, mutations, sunset
marketMarketTickerNew HYPE price from Hyperliquid
chainindexer status (/api/chain/status)On connect and as the indexer follows new blocks

#Browser

TypeScript
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

Shell
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