Get integrator's collected fees data for all supported chains
curl --request GET \
--url https://li.quest/v1/integrators/{integratorId}import requests
url = "https://li.quest/v1/integrators/{integratorId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/integrators/{integratorId}', 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://li.quest/v1/integrators/{integratorId}",
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://li.quest/v1/integrators/{integratorId}"
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://li.quest/v1/integrators/{integratorId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/integrators/{integratorId}")
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{
"integratorId": "fee-demo",
"feeBalances": [
{
"chainId": 137,
"tokenBalances": [
{
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "MATIC",
"decimals": 18,
"chainId": 137,
"name": "MATIC",
"coinKey": "MATIC",
"priceUSD": "0.742896",
"logoURI": "https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd7804d357c.png"
},
"amount": 0,
"amountUsd": 0
}
]
}
]
}集成商费用信息
Get integrator's collected fees data for all supported chains
This endpoint can be used to request all integrator’s collected fees data by tokens for all supported chains.
The endpoint returns an Integrator object which contains the integrator id and an array of fee balances for all supported chains.
GET
/
v1
/
integrators
/
{integratorId}
Get integrator's collected fees data for all supported chains
curl --request GET \
--url https://li.quest/v1/integrators/{integratorId}import requests
url = "https://li.quest/v1/integrators/{integratorId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/integrators/{integratorId}', 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://li.quest/v1/integrators/{integratorId}",
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://li.quest/v1/integrators/{integratorId}"
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://li.quest/v1/integrators/{integratorId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/integrators/{integratorId}")
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{
"integratorId": "fee-demo",
"feeBalances": [
{
"chainId": 137,
"tokenBalances": [
{
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "MATIC",
"decimals": 18,
"chainId": 137,
"name": "MATIC",
"coinKey": "MATIC",
"priceUSD": "0.742896",
"logoURI": "https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd7804d357c.png"
},
"amount": 0,
"amountUsd": 0
}
]
}
]
}请求头
Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.
路径参数
Id of the integrator that requests fee balances

