Get all obligations with open borrow orders in a market
curl --request GET \
--url https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-ordersconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-orders"
response = requests.get(url)
print(response.text)false{
"obligations": [
{
"obligationPubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"owner": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"deposits": [
{
"depositReserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"depositedAmount": "1234.56789"
}
],
"debtLiquidityMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"remainingDebtAmount": "1234.56789",
"requestedDebtAmount": "1234.56789",
"filledDebtDestination": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"maxBorrowRateBps": 123,
"minDebtTermSeconds": "1234.56789",
"fillableUntilTimestamp": "1234.56789",
"placedAtTimestamp": "1234.56789",
"lastUpdatedAtTimestamp": "1234.56789"
}
]
}{
"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 Borrow Orders
Get all obligations with open borrow orders in a market
Returns all obligations in the given market that have an active (unfilled or partially filled) borrow order.
GET
/
v2
/
kamino-market
/
{pubkey}
/
obligations-with-open-borrow-orders
Get all obligations with open borrow orders in a market
curl --request GET \
--url https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-ordersconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/v2/kamino-market/{pubkey}/obligations-with-open-borrow-orders"
response = requests.get(url)
print(response.text)false{
"obligations": [
{
"obligationPubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"owner": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"deposits": [
{
"depositReserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"depositedAmount": "1234.56789"
}
],
"debtLiquidityMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"remainingDebtAmount": "1234.56789",
"requestedDebtAmount": "1234.56789",
"filledDebtDestination": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"maxBorrowRateBps": 123,
"minDebtTermSeconds": "1234.56789",
"fillableUntilTimestamp": "1234.56789",
"placedAtTimestamp": "1234.56789",
"lastUpdatedAtTimestamp": "1234.56789"
}
]
}{
"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"
}Path Parameters
Market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Query Parameters
Solana cluster environment
Available options:
mainnet-beta, devnet, localnet Example:
"mainnet-beta"
KLend program ID
Example:
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
Response
OK
Show child attributes
Show child attributes