Aqua0
API ReferenceVaults

Get all of an LP's positions on a chain in one call (batched multicall)

Returns every vault position for one LP on one chain, each with its freePrincipal reconciled against the vault's own on-chain value. Use this instead of one call per vault.

GET
/api/vaults/positions/{chainId}/{lp}

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

chainId*string

Numeric ID of the chain to query or act on.

lp*string

The liquidity provider's wallet address.

Response Body

application/json

curl -X GET "https://example.com/api/vaults/positions/string/string"
{  "positions": [    {      "chainId": 0,      "vault": "string",      "lp": "string",      "principal": "string",      "credit": "string",      "deployed": "string",      "frontHeld": "string",      "asyncHeld": "string",      "realizedLossDeployLeg": "string",      "realizedLossReturnLeg": "string",      "freePrincipal": "string",      "asset": "string",      "possiblyStale": true    }  ],  "fleetLive": true,  "reconciliations": [    {      "vault": "string",      "matched": true,      "onChainFreePrincipal": "string",      "indexedFreePrincipal": "string",      "driftAbs": "string"    }  ],  "rpcDegraded": true,  "indexerStaleness": {    "lagSeconds": 0,    "lagBlocks": 0,    "indexedBlockNumber": "string",    "chainHeadBlockNumber": "string",    "stale": true,    "thresholdSeconds": 0,    "reason": "string"  }}