Asset Chart Points
curl --request GET \
--url https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}import requests
url = "https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}', 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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}",
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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}"
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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}")
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{"DataPoints":[{"Series":[{"name":"filters","columns":["time","exchange","filter","symbol","value"],"values":[["2020-05-19T08:17:59Z",null,"MEDIR120","EOS",2.6236194301032314]]}],"Messages":null}]}
Chart Points for Graphs
Asset Chart Points
Get asset details for all exchanges.
GET
/
v1
/
assetChartPoints
/
{filter}
/
{blockchain}
/
{address}
Asset Chart Points
curl --request GET \
--url https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}import requests
url = "https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}', 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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}",
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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}"
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://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.diadata.org/v1/assetChartPoints/{filter}/{blockchain}/{address}")
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{"DataPoints":[{"Series":[{"name":"filters","columns":["time","exchange","filter","symbol","value"],"values":[["2020-05-19T08:17:59Z",null,"MEDIR120","EOS",2.6236194301032314]]}],"Messages":null}]}
Remark: Careful! Successful responses can be rather large.
Path Parameters
integer
Unix timestamp setting the start of the return array
integer
Unix timestamp setting the end of the return array
string
required
Which filter should be applied (Available options: MA120, MEDIR120, VOL120 and
MAIR120)
string
required
A valid blockchain from GET /v1/blockchains, e.g., Bitcoin
string
required
A valid asset address from GET /v1/token/:symbol, e.g.,
0x000000000000000000000000000000000000000 for BTC
Query Parameters
string
Which scale the graph points distance should have. Available options: 5m 30m
1h 4h 1d 1w
{"DataPoints":[{"Series":[{"name":"filters","columns":["time","exchange","filter","symbol","value"],"values":[["2020-05-19T08:17:59Z",null,"MEDIR120","EOS",2.6236194301032314]]}],"Messages":null}]}
As part of our migration to DIA’s next-generation oracle infrastructure, Lumina, the hosted DIA REST API is being deprecated and will be discontinued on 20 December 2026. This affects the REST endpoints under
https://api.diadata.org/v1.If your protocol relies on these, please email support@diadata.org and confirm that you are using them. We will provide you with a migration path so you can continue accessing the same data through Lumina without interruption. Integrations that don’t reach out may lose access after the deprecation date.Was this page helpful?