---
title: "Vault redemption queue"
description: "View the redemption queue of a vault you manage, highest priority first."
---

> Only for vault managers. Other accounts get error 1001.

Fetches the redemption queue for a vault, ordered by descending priority.

**Urgent** redemption requests, defined as having been pending >90% of the manager-defined maximum redemption period, have top priority (following insertion order).

**Non-urgent** redemption requests are otherwise prioritized by insertion order, **unless** they are >5x the size of the smallest redemption request.

E.g., If FIFO ordering (all non-urgent) is 1k -> 50k -> 100k -> 20k -> 10k -> 25k, then priority ordering is 1k -> 10k -> 50k -> 20k -> 100k -> 25k.

Only displays redemption requests that are eligible for automated redemption, i.e., have been pending for the manager-defined minimum redemption period.

| | |
|---|---|
| SDK | `client.vault_redemption_queue(...)` |
| HTTP | `POST https://trades.<domain>/full/v1/vault_view_redemption_queue`, or `/lite/v1/vault_view_redemption_queue` for [lite names](../../guides/environments.md#encoding-full-or-lite) (the SDKs' default) |
| WebSocket | method `v1/vault_view_redemption_queue` on `wss://trades.<domain>/ws/full`, or `/ws/lite` for lite names |
| Auth | Session required ([Authentication](../../guides/authentication.md)) |
| Retries | Read: the SDKs retry retryable errors ([rules](../../guides/errors-and-retries.md)) |
| Contract id | `vault.vault_redemption_queue` (`RPCVaultRedemptionQueueV1`) |

## Request

Body type `ApiVaultViewRedemptionQueueRequest`. Fields the server fills are left out.

- `vault_id` · lite `vi` · string (uint64) · required — The unique identifier of the vault to fetch the redemption queue for.

## Response

Body type `ApiVaultViewRedemptionQueueResponse` (the same object is the JSON-RPC `result` over WebSocket).

- `redemption_queue` · lite `rq` · object VaultRedemptionRequest[] · required — Outstanding vault redemption requests, ordered by descending priority. Excludes requests that have not yet aged past the minimum redemption period.
- `redemption_queue[].request_time` · lite `rt` · string (int64 unix ns) · required — Set by the server. Time at which the redemption request was received by Grvt in unix nanoseconds
- `redemption_queue[].num_lp_tokens` · lite `nl` · string · required — The number of shares to redeem
- `redemption_queue[].max_redemption_period_timestamp` · lite `mr` · string (int64 unix ns) · required — Set by the server. Time in unix nanoseconds, beyond which the request will be force-redeemed.
- `redemption_queue[].age_category` · lite `ac` · enum VaultRedemptionReqAgeCategory · required — Age category of this redemption request.
  Values: `NORMAL`, `URGENT`, `OVERDUE`, `PRE_MIN` ([details](../enums.md#vaultredemptionreqagecategory)).
- `redemption_queue[].is_manager` · lite `im` · bool · optional — `true` if this request belongs to the vault manager, omitted otherwise.
- `redemption_queue[].eligible_for_auto_redemption_timestamp` · lite `ef` · string (int64 unix ns) · required — Set by the server. Time in unix nanoseconds, beyond which the request will be eligible for automated redemption.
- `redemption_queue[].from_currency` · lite `fc` · string · required — The currency the vault pays: the vault's investment currency.
- `redemption_queue[].to_currency` · lite `tc` · string · required — The currency paid into the investor's funding account. Equal to `from_currency` when the request does not convert.
- `redemption_queue[].exchange_rate` · lite `er` · string · required — The signed rate the request is paid at, `to_currency` per unit of `from_currency`. 1 when the request does not convert.
- `pending_redemption_token_count` · lite `pr` · string · required — Number of shares eligible for automated redemption (held in queue for at least the minimum redemption period).
- `urgent_redemption_token_count` · lite `ur` · string · required — Number of shares nearing the maximum redemption period (>= 90% of maximum redemption period).
- `auto_redeemable_balance` · lite `ar` · string · required — Amount available for automated redemption request servicing (in USD).
- `share_price` · lite `sp` · string · required — Current share price (in USD).
- `pre_min` · lite `pm` · object PreMinRedemptions · required — Dedicated section for requests yet to wait at least the minimum redemption period.
- `pre_min.requests` · lite `r` · object VaultRedemptionRequest[] · required — Pre-minimum-age redemption requests, ordered by age (first element is the oldest request that is pre-minimum-age).
  Fields: same as `redemption_queue[]` above.
- `pre_min.token_count` · lite `tc` · string · required — Number of shares in the pre-minimum-age section of the vault's redemption queue.

## Errors

Errors come back as `{"code", "message", "status"}` (lite `{"c", "m", "s"}`) with the HTTP status. Codes this call can return, as code, name (HTTP status) ([all error codes](../errors.md)):

`1000` Unauthorized (401) · `1001` Forbidden (403) · `1002` InternalServer (500) · `1003` InvalidRequest (400) · `1006` RateLimit (429, retryable) · `1008` IPNotWhitelisted (401) · `7000` InvalidVaultID (400)

## Example

```python
import os

from grvt import Grvt

with Grvt(
    env=os.environ.get("GRVT_ENV", "testnet"),
    api_key=os.environ["GRVT_API_KEY"],
) as client:
    resp = client.vault_redemption_queue(
        vault_id="3477045127917224",
    )
    print(resp)
```

Raw HTTP (set `GRVT_DOMAIN`, see [Environments](../../guides/environments.md); `GRVT_COOKIE` and `GRVT_ACCOUNT_ID` come from [login](../../guides/authentication.md)):

With full field names:

```sh
curl -sS "https://trades.$GRVT_DOMAIN/full/v1/vault_view_redemption_queue" \
  -H "Content-Type: application/json" \
  -H "Cookie: gravity=$GRVT_COOKIE" \
  -H "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \
  --data @- <<EOF
{
  "vault_id": "3477045127917224"
}
EOF
```

With lite field names:

```sh
curl -sS "https://trades.$GRVT_DOMAIN/lite/v1/vault_view_redemption_queue" \
  -H "Content-Type: application/json" \
  -H "Cookie: gravity=$GRVT_COOKIE" \
  -H "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \
  --data @- <<EOF
{
  "vi": "3477045127917224"
}
EOF
```
