Stream real-time pool reserves for multiple assets
Establishes a multiplexed SSE stream for reserve changes across multiple pools and tokens on a single connection. A batch may freely mix pool_reserves and token_reserves entries.
Stream Constraints: Maximum payload array length is 25 subscriptions. Exceeding it rejects the request with {"message": "too many subscriptions"}.
Supported Channel Events: - pool_reserves: Pool-level reserve snapshot. Schema matches PoolReservesEvent. - token_reserves: Token-level reserve snapshot. Schema matches TokenReservesEvent. - ping: Infrastructure keep-alive payload (PingEvent). - warning: System warning notifications (WarningEvent). - error: Stream-level operational exceptions (ErrorEvent).
Query Parameters
Maximum event count processing threshold before server-initiated connection teardown.
x >= 1Optional correlation ID echoed back on every message of the stream as an SSE request_id: field. Must be a non-negative integer; non-numeric values are rejected with {"message": "invalid query parameters: request_id (must be a number)"}. Defaults to 0 when omitted.
x >= 0Body
25Response
Multiplexed SSE stream successfully established.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Payload for the pool_reserves event channel. Emitted once per block in which the subscribed pool changed, carrying the full pool snapshot.
The blockchain network the pool resides on.
"ethereum"
Address of the pool the change happened in.
"0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
Block number the change was observed in (string-encoded).
"25236164"
Per-token reserve state for every token in the pool.
Total reserve value of the pool in USD.
92394235.39327304
Net USD reserve change across all tokens this block. Positive means net inflow, negative means net outflow.
28.042117388933548
Unix timestamp (seconds) when the event was emitted by the stream.
1780481297
Unix timestamp (seconds) of the block in which the change was observed.
1780481291