Get metadata for multiple markets
curl --request GET \
--url https://api.kamino.finance/markets/batch/metadataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/batch/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/batch/metadata"
response = requests.get(url)
print(response.text)false{
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF": {
"reserves": [
"d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q"
],
"name": "SOL/BTC Market",
"description": "Primary market on mainnet",
"isCurated": false
}
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Kamino Lend Markets
Get metadata for multiple markets
Get metadata (name, description, curation status, and reserve public keys) for Kamino Lend markets. When market is omitted, all configured markets are returned. The response is keyed by market public key; unknown markets are omitted.
GET
/
markets
/
batch
/
metadata
Get metadata for multiple markets
curl --request GET \
--url https://api.kamino.finance/markets/batch/metadataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/batch/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/batch/metadata"
response = requests.get(url)
print(response.text)false{
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF": {
"reserves": [
"d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q"
],
"name": "SOL/BTC Market",
"description": "Primary market on mainnet",
"isCurated": false
}
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Query Parameters
Market public keys, provided as comma-separated or repeated query parameters (max 100); defaults to all configured markets when omitted
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
KLend program ID
Example:
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
Response
OK
Market metadata keyed by market public key. Unknown markets are omitted.
Show child attributes
Show child attributes