Aqua0
API ReferenceVaults

Get an LP's position in an asset vault

Returns an LP's full position in one asset vault as a set of buckets (free, deployed, locked) plus withdrawability, so the UI never offers a withdraw the vault would refuse. By default the free principal is reconciled against the vault's own on-chain value and both numbers are reported.

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

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

chainId*string

Numeric ID of the chain to query or act on.

asset*string

The vault's underlying asset, as a token contract address (0x-prefixed).

lp*string

The liquidity provider's wallet address.

Query Parameters

reconcile?boolean

Optional, defaults to true. When true, the reported free-principal balance is cross-checked against a live on-chain read, and set to false to skip the extra read.

Response Body

application/json

curl -X GET "https://example.com/api/vaults/positions/string/string/string"
{  "position": {    "chainId": 0,    "vault": "string",    "lp": "string",    "principal": "string",    "credit": "string",    "deployed": "string",    "frontHeld": "string",    "asyncHeld": "string",    "realizedLossDeployLeg": "string",    "realizedLossReturnLeg": "string",    "freePrincipal": "string"  },  "fleetLive": true,  "reconciliation": {    "matched": true,    "onChainFreePrincipal": "string",    "indexedFreePrincipal": "string",    "driftAbs": "string"  },  "rpcDegraded": true}