Get Kamino oracle prices
curl --request GET \
--url https://api.kamino.finance/oracles/pricesconst options = {method: 'GET'};
fetch('https://api.kamino.finance/oracles/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/oracles/prices"
response = requests.get(url)
print(response.text)false[
{
"price": "1234.56789",
"mint": "So11111111111111111111111111111111111111112",
"maxAgeInSeconds": "120",
"timestamp": "1763568282",
"name": "SOL"
}
]{
"error": "An internal error occurred"
}Prices
Get oracle prices
Fetches all oracle prices for all public Klend Market assets
GET
/
oracles
/
prices
Get Kamino oracle prices
curl --request GET \
--url https://api.kamino.finance/oracles/pricesconst options = {method: 'GET'};
fetch('https://api.kamino.finance/oracles/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/oracles/prices"
response = requests.get(url)
print(response.text)false[
{
"price": "1234.56789",
"mint": "So11111111111111111111111111111111111111112",
"maxAgeInSeconds": "120",
"timestamp": "1763568282",
"name": "SOL"
}
]{
"error": "An internal error occurred"
}Query Parameters
Controls which market set to query. 'main': select oracle prices from SOL/BTC Market assets, 'all': select oracle prices from all public klend market assets.
Available options:
main, all Example:
"main"
Response
OK
- Option 1 · object[]
- Option 2 · object[]
Price value of the asset
Example:
"1234.56789"
Valid base58-encoded address of the token mint
Example:
"So11111111111111111111111111111111111111112"
Maximum allowed age of the price feed in seconds
Example:
"120"
Epoch Unix timestamp in seconds
Examples:
"0"
"1"
"100"
"-1"
Name of the token
Example:
"SOL"