Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.kamino.finance/v2/staking-yields/median
const options = {method: 'GET'}; fetch('https://api.kamino.finance/v2/staking-yields/median', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.kamino.finance/v2/staking-yields/median" response = requests.get(url) print(response.text)
false
[ { "apy": "0.2", "tokenMint": "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn" } ]
{ "error": "An internal error occurred" }
Fetches staking yields and calculates median APY over the last 10 epochs
OK
Staking APY in decimal format for the token
"0.2"
Valid base58-encoded address of the liquid staking token mint
"J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"