Stream real-time prices for an asset
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,
"block_timestamp": 1789721700,
"token_price": 1789721706
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}API Reference
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
GET
/
sse
/
prices
Stream real-time prices for an asset
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,
"block_timestamp": 1789721700,
"token_price": 1789721706
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}{
"message": "asset not found",
"error": "preview_only",
"param": "<string>",
"expected": "<string>",
"allowed": [
"<string>"
],
"violations": [
{
"in": "query",
"param": "<string>",
"error": "unknown_param",
"expected": "<string>"
}
],
"tier": "keyless",
"links": {}
}Tutorial: Your first stream
Live token prices over SSE in a few minutes, no key for the showcase tokens.
Query Parameters
Response
SSE stream established.
- Option 1
- Option 2
- Option 3
- Option 4
Price update payload. Delivered on the token_price event channel.
Was this page helpful?