---
title: "Vault manager investment history"
description: "List the investor history of a vault you manage."
---

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

| | |
|---|---|
| SDK | `client.vault_manager_investment_history(...)` |
| HTTP | `POST https://trades.<domain>/full/v1/vault_manager_investor_history`, or `/lite/v1/vault_manager_investor_history` for [lite names](../../guides/environments.md#encoding-full-or-lite) (the SDKs' default) |
| WebSocket | method `v1/vault_manager_investor_history` 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_manager_investment_history` (`RPCVaultManagerInvestmentHistoryV1`) |

## Request

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

- `vault_id` · lite `vi` · string (uint64) · required — The unique identifier of the vault to filter by
- `only_own_investments` · lite `oo` · bool · required — Whether to only return investments made by the manager
- `start_time` · lite `st` · string (int64 unix ns) · optional, default `0` — Optional. Start time in unix nanoseconds
- `end_time` · lite `et` · string (int64 unix ns) · optional, default `now()` — Optional. End time in unix nanoseconds

## Response

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

- `result` · lite `r` · object ApiVaultInvestorHistory[] · required — The list of vault investor history belong to the manager
- `result[].event_time` · lite `et` · string (int64 unix ns) · required — Time at which the event was emitted in unix nanoseconds
- `result[].off_chain_account_id` · lite `oc` · string · required — The off chain account id of the investor, only visible to the manager
- `result[].vault_id` · lite `vi` · string (uint64) · required — The unique identifier of the vault.
- `result[].type` · lite `t` · enum VaultInvestorAction · required — The type of transaction that occurred. List of types: vaultInvest, vaultBurnLpToken, vaultRedeem
  Values: `UNSPECIFIED`, `VAULT_INVEST`, `VAULT_BURN_LP_TOKEN`, `VAULT_REDEEM` ([details](../enums.md#vaultinvestoraction)).
- `result[].price` · lite `p` · string · required — The price of the vault LP tokens at the time of the event.
- `result[].size` · lite `s` · string · required — The amount of Vault LP tokens invested or redeemed.
- `result[].realized_pnl` · lite `rp` · string · required — The realized PnL of the vault.
- `result[].performance_fee` · lite `pf` · string · required — The performance fee of the vault.
- `result[].token_currency` · lite `tc` · string · required — The vault leg's currency: the vault's investment currency, which the vault received or paid. Empty on a burn, which moves no tokens.
- `result[].num_tokens` · lite `nt` · string · required — The vault leg: the tokens of tokenCurrency the vault received on an invest or paid on a redemption. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.
- `result[].from_currency` · lite `fc` · string · required — The currency that left its owner: on an invest the investor's source currency (the user leg), on a redemption tokenCurrency. A row without conversion has the vault leg's currency. Empty on a burn.
- `result[].from_num_tokens` · lite `fn` · string · required — The tokens of fromCurrency that left their owner: on an invest what the investor paid (the user leg), on a redemption numTokens. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.
- `result[].to_currency` · lite `tc1` · string · required — The currency that reached its owner: on a redemption the investor's payout currency (the user leg), on an invest tokenCurrency. A row without conversion has the vault leg's currency. Empty on a burn.
- `result[].to_num_tokens` · lite `tn` · string · required — The tokens of toCurrency that reached their owner: on a redemption what the investor received (the user leg), on an invest numTokens. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.
- `result[].conversion_fee_num_tokens` · lite `cf` · string · required — The conversion fee in toCurrency: the difference between the two legs of a converting invest or redemption. 0 without conversion.
- `result[].from_sub_account_id` · lite `fs` · string (uint64) · required — The trading sub-account an invest was paid from. 0 for the funding account and on other rows.
- `result[].from_wallet_type` · lite `fw` · enum WalletType · required — The wallet an invest was paid from: FUNDING for the funding account, otherwise SPOT or FUTURES. Unspecified on redemptions and burns.
  Values: `FUNDING`, `SPOT`, `FUTURES` ([details](../enums.md#wallettype)).
- `result[].request_time` · lite `rt` · string (int64 unix ns) · required — On a redemption, when its redemption request was made, in unix nanoseconds. 0 when unknown and on other rows.

## 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) · `1014` GatewayTimeout (504, retryable) · `1015` ServiceUnavailable (503, retryable)

## 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_manager_investment_history(
        vault_id="2312134",
        only_own_investments=True,
    )
    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_manager_investor_history" \
  -H "Content-Type: application/json" \
  -H "Cookie: gravity=$GRVT_COOKIE" \
  -H "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \
  --data @- <<EOF
{
  "vault_id": "2312134",
  "only_own_investments": true
}
EOF
```

With lite field names:

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