Get metadata for a market
curl --request GET \
--url https://api.kamino.finance/markets/{marketPubkey}/metadataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/{marketPubkey}/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/{marketPubkey}/metadata"
response = requests.get(url)
print(response.text)false{
"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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Kamino Lend Markets
Get metadata for a market
Get metadata (name, description, curation status, and reserve public keys) for a single Kamino Lend market.
GET
/
markets
/
{marketPubkey}
/
metadata
Get metadata for a market
curl --request GET \
--url https://api.kamino.finance/markets/{marketPubkey}/metadataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/{marketPubkey}/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/{marketPubkey}/metadata"
response = requests.get(url)
print(response.text)false{
"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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Path Parameters
Kamino Lend market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Query Parameters
KLend program ID
Example:
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
Response
OK
Public keys of all reserves in the market
Valid base58-encoded address
Example:
[ "d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q" ]
Market name
Example:
"SOL/BTC Market"
Market description
Example:
"Primary market on mainnet"
Whether this market is curated
Example:
false