GET
/
node
/
v1
/
multi
/
stream
curl --request GET \
  --url https://{environment}.pragma.build/node/v1/multi/stream
This response does not have an example.

This is an SSE endpoint. Learn more about SSE here. You can think of SSE as an unidirectional channel from the server to the client. It is much more efficient than websocket to display real time data on a frontend and it is supported by most browsers as of today.

Query Parameters

get_entry_params
object
required

Base parameters for entry requests including interval, aggregation mode, and routing options

pairs[]
string[]
required

List of trading pairs to stream prices for (e.g. ["ETH/USD", "BTC/USD"])

historical_prices
integer | null

Number of historical price entries to fetch on initial connection (default: 100)

Required range: x >= 0

Response

200 - text/event-stream
Server-sent events stream of price entries for multiple pairs

The response is of type file.