HTTP endpoints
Get vault portfolio
Current vault share positions and PnL for an account.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| account | yes | string (hex) | Account address whose vault positions should be returned. |
| vault | yes | string (hex) | Optional vault address filter. |
Response fields
| Parameter | Required | Type | Description |
|---|---|---|---|
positions | yes | object[] | Current vault positions for the requested account. |
positions[].deposits | yes | string | Total deposits recorded for this account/vault. |
positions[].pnl | yes | string | Current vault PnL: value + withdrawals - deposits. |
positions[].shares | yes | string | Current account share balance in this vault. |
positions[].totalShares | yes | string | Current total outstanding shares for this vault. |
positions[].value | yes | string | Current value of the account’s shares. |
positions[].vault | yes | string (hex) | Vault address. |
positions[].vaultEquity | yes | string | Latest indexed vault equity. |
positions[].withdrawals | yes | string | Total withdrawals recorded for this account/vault. |
Response example
A sample 200 response body is attached to this operation as an OpenAPI example — see the Example panel on this page.
Get vault portfolio