curl --request GET \
--url https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawalsconst options = {method: 'GET'};
fetch('https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawals"
response = requests.get(url)
print(response.text)false{
"result": [
{
"createdOn": "<string>",
"tx": "<string>",
"rawInstructionId": "<string>",
"eventOrdinal": 123,
"wallet": "<string>",
"obligation": "<string>",
"market": "<string>",
"tokenMint": "<string>",
"withdrawnTokenAmount": "<string>",
"withdrawnUsd": "<string>",
"share": "<string>",
"estimatedTokenAmount": "<string>",
"estimatedUsd": "<string>",
"tagged": true
}
],
"paginationToken": "<string>"
}{
"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": "Not authorized for this request. Please include the basic auth headers."
}{
"metadata": "Account could not be found"
}{
"error": "<string>"
}{
"error": "An internal error occurred"
}{
"error": "<string>"
}Estimated share of a memo code in each KLend withdrawal, newest first
KLend only. Estimate of the part of each withdrawal that is this code’s money, including withdrawals without a memo. Per position (obligation and token), each deposit goes to the bucket of its transaction’s code (or to no code); a withdrawal with a code takes from its own bucket first, the rest is split pro-rata over all buckets; a withdrawal of the whole recorded balance empties every bucket, and the part above it goes to no code. share is this code’s part (0..1); estimatedUsd = share x withdrawnUsd. Computed from token amounts by a consumer job that runs every 15 minutes: a withdrawal usually appears within about 20 minutes of its block time, later when a run fails. Liquidations shrink the buckets but are not listed. Totals and each group are rounded to 6 decimals on their own, so the groups can differ from the totals in the last decimal. Counts, walletCount and the withdrawal list include only rows with share > 0 (a tagged withdrawal from an empty bucket of its own code has share 0). estimatedTaggedWithdrawUsd is the estimated part of the withdrawals that carried this code, not their full value (that is outflowUsd on /summary). Unpriced withdrawals are left out of USD sums and counted in unpricedWithdrawalCount. groupBy kind is rejected (every row is a withdrawal). newWalletsOnly and minDepositUsd do not apply. A UTC start and end are required (at most 90 days); unknown parameters are ignored. Load protection: 120 requests a minute per credential (429), and database queries wait up to 5 s for a free slot (503 with Retry-After when they cannot start or hit the timeout; a timed-out request is answered with 503 for 60 s). Private (authorized) API access only, please add a basic auth header to your request.
curl --request GET \
--url https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawalsconst options = {method: 'GET'};
fetch('https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/klend/distributors/{code}/estimated-withdrawals"
response = requests.get(url)
print(response.text)false{
"result": [
{
"createdOn": "<string>",
"tx": "<string>",
"rawInstructionId": "<string>",
"eventOrdinal": 123,
"wallet": "<string>",
"obligation": "<string>",
"market": "<string>",
"tokenMint": "<string>",
"withdrawnTokenAmount": "<string>",
"withdrawnUsd": "<string>",
"share": "<string>",
"estimatedTokenAmount": "<string>",
"estimatedUsd": "<string>",
"tagged": true
}
],
"paginationToken": "<string>"
}{
"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": "Not authorized for this request. Please include the basic auth headers."
}{
"metadata": "Account could not be found"
}{
"error": "<string>"
}{
"error": "An internal error occurred"
}{
"error": "<string>"
}Path Parameters
Query Parameters
/wallets only: add firstRecordedFlows, each wallet's first recorded flow per product. It reads the wallet's whole flow history, so limit is at most 25. Also accepts other truthy/falsy strings such as "1"/"0", "yes"/"no", "on"/"off".
true, false