Skip to main content
POST
/
sse
/
prices
Stream real-time prices for multiple assets
curl --request POST \
  --url https://streaming.dexpaprika.com/sse/prices \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "chain": "ethereum",
    "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
    "request_id": 2147483647,
    "filter": {}
  }
]
'
{
  "address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
  "chain": "ethereum",
  "price": "3456.78",
  "timestamp": "2024-05-08T10:00:00Z",
  "timestamp_price": "2024-05-08T09:59:58Z",
  "token_price": "2024-05-08T09:59:58Z"
}

Query Parameters

limit
integer

Close the stream after this many total events. Omit for an indefinite stream.

Required range: x >= 1

Body

application/json
Maximum array length: 25
chain
string
required

Blockchain network identifier.

Example:

"ethereum"

address
string
required

Token smart contract address.

Example:

"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"

method
enum<string>
required

Streaming method. Only token_price is accepted on /sse/prices.

Available options:
token_price
request_id
integer

Optional identifier echoed on each event for this subscription. Defaults to the array index if omitted.

Required range: 0 <= x <= 4294967295
filter
object

Response

Multiplexed SSE stream established.

Price update payload. Delivered on the token_price event channel.

address
string

Token smart contract address.

Example:

"0x7a250d5630b4cf539739df2c5dacb4c659f2488d"

chain
string

Blockchain network identifier.

Example:

"ethereum"

price
string

Token price in USD.

Example:

"3456.78"

timestamp
string

Server ingestion timestamp (ISO 8601).

Example:

"2024-05-08T10:00:00Z"

timestamp_price
string

On-chain or oracle price timestamp (ISO 8601).

Example:

"2024-05-08T09:59:58Z"

token_price
string

Alias for timestamp_price.

Example:

"2024-05-08T09:59:58Z"