curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queueconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queue"
response = requests.get(url)
print(response.text)false{
"reserves": [
{
"reserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"market": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"liquidityMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"issuanceEnabled": true,
"redemptionEnabled": true,
"cancellationEnabled": true,
"nextIssuedTicketSequenceNumber": "0",
"nextWithdrawableTicketSequenceNumber": "0",
"queuedLiquidityAmount": "1234.56789",
"queuedUsdValue": "1234.56789",
"availableLiquidity": "1234.56789",
"tickets": [
{
"ticket": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"sequenceNumber": "0",
"owner": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"kvault": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"queuedCollateralAmount": "0",
"queuedLiquidityAmount": "1234.56789",
"queuedUsdValue": "1234.56789",
"createdOn": "2023-11-07T05:31:56Z",
"invalid": true,
"position": 123,
"liquidityAhead": "1234.56789",
"usdAhead": "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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Get the live withdraw queue of a KVault
Returns the on-chain withdraw queue of every allocation reserve of a Kamino Earn Vault: market ticket flags, queue counters, queued and available liquidity, and the open withdraw tickets of every owner on the reserve, not only those issued through this vault. Fully redeemed tickets are closed on-chain and do not appear; use /kvaults/vaults/:pubkey/enqueued-withdraw-transactions for history. wallet filters the returned tickets only, position and the amounts ahead always count the whole reserve queue. Returns 404 when the vault does not exist.
curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queueconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/{pubkey}/withdraw-queue"
response = requests.get(url)
print(response.text)false{
"reserves": [
{
"reserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"market": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"liquidityMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"issuanceEnabled": true,
"redemptionEnabled": true,
"cancellationEnabled": true,
"nextIssuedTicketSequenceNumber": "0",
"nextWithdrawableTicketSequenceNumber": "0",
"queuedLiquidityAmount": "1234.56789",
"queuedUsdValue": "1234.56789",
"availableLiquidity": "1234.56789",
"tickets": [
{
"ticket": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"sequenceNumber": "0",
"owner": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"kvault": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"queuedCollateralAmount": "0",
"queuedLiquidityAmount": "1234.56789",
"queuedUsdValue": "1234.56789",
"createdOn": "2023-11-07T05:31:56Z",
"invalid": true,
"position": 123,
"liquidityAhead": "1234.56789",
"usdAhead": "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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Path Parameters
Valid base58-encoded address
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
Query Parameters
Only return tickets owned by this wallet. Queue positions are still computed over every ticket on the reserve.
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
Response
OK
Withdraw queue of each vault allocation reserve
Show child attributes
Show child attributes