curl --request GET \
--url https://streaming.dexpaprika.com/sse/pricesimport requests
url = "https://streaming.dexpaprika.com/sse/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://streaming.dexpaprika.com/sse/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://streaming.dexpaprika.com/sse/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming.dexpaprika.com/sse/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://streaming.dexpaprika.com/sse/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://streaming.dexpaprika.com/sse/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
"chain": "ethereum",
"price": "3456.78",
"timestamp": 1789721706,
"timestamp_price": 1789721706,
"token_price": 1789721706
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}Stream real-time prices for an asset
Establishes an SSE stream for a single token’s price using query parameters.
Emitted events: token_price · ping · warning · error
curl --request GET \
--url https://streaming.dexpaprika.com/sse/pricesimport requests
url = "https://streaming.dexpaprika.com/sse/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://streaming.dexpaprika.com/sse/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://streaming.dexpaprika.com/sse/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming.dexpaprika.com/sse/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://streaming.dexpaprika.com/sse/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://streaming.dexpaprika.com/sse/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
"chain": "ethereum",
"price": "3456.78",
"timestamp": 1789721706,
"timestamp_price": 1789721706,
"token_price": 1789721706
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"tier": "keyless",
"links": {}
}Query Parameters
Streaming method. Use token_price to receive PriceResponse events.
token_price Token smart contract address.
Blockchain network identifier (e.g. ethereum, solana).
Optional identifier echoed back on each SSE event for this subscription.
0 <= x <= 4294967295Close the stream after this many events. Omit for an indefinite stream.
x >= 1Response
SSE stream established.
- Option 1
- Option 2
- Option 3
- Option 4
Price update payload. Delivered on the token_price event channel.
Token smart contract address.
"0x7a250d5630b4cf539739df2c5dacb4c659f2488d"
Blockchain network identifier.
"ethereum"
Token price in USD.
"3456.78"
Server ingestion time, Unix seconds.
1789721706
Time of the swap that set this price, Unix seconds.
1789721706
Same value as timestamp_price, sent alongside it.
1789721706
Was this page helpful?