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
/
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
⌘I

