Get principal token yields
curl --request GET \
--url https://api.kamino.finance/yields/principal-tokensconst options = {method: 'GET'};
fetch('https://api.kamino.finance/yields/principal-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/yields/principal-tokens"
response = requests.get(url)
print(response.text)false[
{
"apy": "0.123",
"tokenMint": "So11111111111111111111111111111111111111112"
}
]{
"error": "An internal error occurred"
}Yields
Get principal token yields
Get fresh stored APYs for principal tokens with active Kamino reserves. Each value matches reserve stats underlyingApy.current for the same stored snapshot. Sources without a value from the last 48 hours are omitted; matured principal tokens with a fresh zero row report 0.
GET
/
yields
/
principal-tokens
Get principal token yields
curl --request GET \
--url https://api.kamino.finance/yields/principal-tokensconst options = {method: 'GET'};
fetch('https://api.kamino.finance/yields/principal-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/yields/principal-tokens"
response = requests.get(url)
print(response.text)false[
{
"apy": "0.123",
"tokenMint": "So11111111111111111111111111111111111111112"
}
]{
"error": "An internal error occurred"
}Response
OK