Information
curl --request GET \
--url https://api.amberdata.com/defi/dex/ohlcv/information/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/defi/dex/ohlcv/information/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/defi/dex/ohlcv/information/', 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.amberdata.com/defi/dex/ohlcv/information/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.amberdata.com/defi/dex/ohlcv/information/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.amberdata.com/defi/dex/ohlcv/information/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/defi/dex/ohlcv/information/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"description": "Successful request",
"payload": {
"data": {
"uniswapv3": {
"BCZ_WETH": {
"address": "0x0001fcbba8eb491c3ccfeddc5a5caba1a98c4c28",
"baseAddress": "0xbef81556ef066ec840a540595c8d12f516b6378f",
"baseDecimals": "18",
"baseName": "BinanceCZ",
"baseSymbol": "BCZ",
"blockchainId": "1c9c969065fcd1cf",
"endDate": "2021-07-17T00:00:00Z",
"pairName": "BCZ_WETH",
"poolFees": "0.01",
"quoteAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"quoteDecimals": "18",
"quoteName": "Wrapped Ether",
"quoteSymbol": "WETH",
"startDate": "2021-07-17T00:00:00Z"
}
}
},
"metadata": {
"next": "https://api.amberdata.com/defi/dex/ohlcv/information?cursor=H4sIAAAAAAAA_0qtSM5IzEtPtS3NyywuTywoM1YrycxNdcsvyk0ssc0szlfLT0srTi2xNVUrzqxKtTUFBAAA___rFeOJMQAAAA=="
}
},
"status": 200,
"title": "OK"
}DEX - OHLCV
Information
Retrieves information about supported exchange-pairs for ohlcv.
GET
/
dex
/
ohlcv
/
information
/
Information
curl --request GET \
--url https://api.amberdata.com/defi/dex/ohlcv/information/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/defi/dex/ohlcv/information/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/defi/dex/ohlcv/information/', 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.amberdata.com/defi/dex/ohlcv/information/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.amberdata.com/defi/dex/ohlcv/information/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.amberdata.com/defi/dex/ohlcv/information/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/defi/dex/ohlcv/information/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"description": "Successful request",
"payload": {
"data": {
"uniswapv3": {
"BCZ_WETH": {
"address": "0x0001fcbba8eb491c3ccfeddc5a5caba1a98c4c28",
"baseAddress": "0xbef81556ef066ec840a540595c8d12f516b6378f",
"baseDecimals": "18",
"baseName": "BinanceCZ",
"baseSymbol": "BCZ",
"blockchainId": "1c9c969065fcd1cf",
"endDate": "2021-07-17T00:00:00Z",
"pairName": "BCZ_WETH",
"poolFees": "0.01",
"quoteAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"quoteDecimals": "18",
"quoteName": "Wrapped Ether",
"quoteSymbol": "WETH",
"startDate": "2021-07-17T00:00:00Z"
}
}
},
"metadata": {
"next": "https://api.amberdata.com/defi/dex/ohlcv/information?cursor=H4sIAAAAAAAA_0qtSM5IzEtPtS3NyywuTywoM1YrycxNdcsvyk0ssc0szlfLT0srTi2xNVUrzqxKtTUFBAAA___rFeOJMQAAAA=="
}
},
"status": 200,
"title": "OK"
}Authorizations
Headers
Desired Endpoint Version
Available options:
2023-09-30 Query Parameters
Only return data for the specified exchange(s) (comma separated). Example: uniswapv3
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms | iso | iso8601* | hr | human_readable
The number of records per page.
Was this page helpful?
⌘I