curl --request GET \
--url https://api.kamino.finance/klend/distributors/{code}/summaryconst options = {method: 'GET'};
fetch('https://api.kamino.finance/klend/distributors/{code}/summary', 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}/summary"
response = requests.get(url)
print(response.text)false{
"totals": {
"inflowUsd": "<string>",
"outflowUsd": "<string>",
"netUsd": "<string>",
"flowCount": 123,
"walletCount": 123,
"newWallets": 123,
"unpricedFlowCount": 123
}
}{
"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>"
}Totals of the tagged KLend flows of a memo code
KLend only. A capital flow counts for a code only when its own transaction carried that code as a memo (same rule as KVault distributors). USD is the capital flow value at transaction time (Multiply netting kept); unpriced flows are left out of sums and counted in unpricedFlowCount. newWalletsOnly and newWallets mean no recorded capital flow on any product before the first tagged flow (historyStatus no-prior-recorded). 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}/summaryconst options = {method: 'GET'};
fetch('https://api.kamino.finance/klend/distributors/{code}/summary', 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}/summary"
response = requests.get(url)
print(response.text)false{
"totals": {
"inflowUsd": "<string>",
"outflowUsd": "<string>",
"netUsd": "<string>",
"flowCount": 123,
"walletCount": 123,
"newWallets": 123,
"unpricedFlowCount": 123
}
}{
"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