Skip to main content
getVaultBalance() returns the protocol vault balance in USDC: the liquidity backing trader PnL. It is the input to the exposure-limit check, which is why the SDK exposes it.
The value is cached for 60 seconds, so calling it per-keystroke in an order ticket costs nothing after the first read.

Response

Promise<number> — USDC, as a plain number.

Why it matters

A pair group can only hold a share of vault liquidity as collateral. That ceiling is what withinExposureLimit on previewOpenTrade() and limits.groupCollateral on getMaxCollateral() are measured against. Both read the vault for you — call this directly only if you are computing exposure yourself.