Yield Pool Ranking
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/yield/rankingimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/yield/ranking"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/yield/ranking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"apy": 123,
"apy_base": 123,
"apy_reward": 123,
"pool_address": "<string>",
"project": "<string>",
"symbol": "<string>",
"token_address": "<string>",
"tvl_usd": 123,
"version": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseYieldRankingItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Onchain
Yield Pool Ranking
GET
/
gateway
/
v1
/
onchain
/
yield
/
ranking
Yield Pool Ranking
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/yield/rankingimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/yield/ranking"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/yield/ranking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"apy": 123,
"apy_base": 123,
"apy_reward": 123,
"pool_address": "<string>",
"project": "<string>",
"symbol": "<string>",
"token_address": "<string>",
"tvl_usd": 123,
"version": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseYieldRankingItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}