DEX Protocols Information
curl --request GET \
--url https://api.amberdata.com/defi/dex/information \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/defi/dex/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/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/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/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/information")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/defi/dex/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{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"blockchain": "arbitrum-mainnet",
"firstKnownTradeDate": "2024-12-06T08:37:49.000Z",
"lastKnownTradeDate": "2024-12-19T23:59:59.000Z",
"liquidityPoolAddress": "0xbb4c7c0380f13c0bb947ac08db20af18898d9cfb",
"liquidityPoolFees": 13.400999999999994,
"poolComposition": [
{
"assetAddress": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"assetDecimals": 18,
"assetSymbol": "weth"
}
],
"protocolName": "uniswap_v3"
}
]
}
}DEX - Trades
DEX Protocols Information
Retrieves information about the supported liquidity pools across blockchains and DEX protocols.
GET
/
dex
/
information
DEX Protocols Information
curl --request GET \
--url https://api.amberdata.com/defi/dex/information \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/defi/dex/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/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/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/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/information")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/defi/dex/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{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"blockchain": "arbitrum-mainnet",
"firstKnownTradeDate": "2024-12-06T08:37:49.000Z",
"lastKnownTradeDate": "2024-12-19T23:59:59.000Z",
"liquidityPoolAddress": "0xbb4c7c0380f13c0bb947ac08db20af18898d9cfb",
"liquidityPoolFees": 13.400999999999994,
"poolComposition": [
{
"assetAddress": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"assetDecimals": 18,
"assetSymbol": "weth"
}
],
"protocolName": "uniswap_v3"
}
]
}
}Authorizations
Query Parameters
Filter by date to find liquidity pools that have been active after the specified date
Examples: 2025-02-05
Filter for liquidity pools on just this network/blockchain.
Available options:
ethereum-mainnet, polygon-mainnet, arbitrum-mainnet, bnb-mainnet, optimism-mainnet, avalanche-mainnet Filter by a protocol of interest
Filter by the smart contract address of the liquidity pool
Filter by the smart contract address for an asset of interest
Filter by the short-form identifier of an asset.
We recommended using assetAddress as assets can have duplicate symbols on-chain.
Was this page helpful?