Contracts
Contracts · Flow

Positions

Discover a subaccount's virtual accounts, then read its open positions and pending quote ids, and inspect any quote by id. partyA is the virtual account.

Wallet
Not connected

getVirtualAccount
read
Read a Virtual Account's detail: parent subaccount, market symbolId, isolation type, metadata.

Browse the connected wallet's subaccounts and pick a VA — or paste an address directly.

Pick or paste a VA address and read.
getVirtualAccountsAddressesOfSubAccount
read
List a subaccount's Virtual Account (VA) addresses — the partyA values for VibeCaps quote reads.
Run the read to see VA addresses.
getVirtualAccountsOfSubAccount
read
List a subaccount's Virtual Accounts (VAs) with their market, isolation type and status in one call.

Optional. Defaults to 0.

Optional. Defaults to 200.

Run the read to see the subaccount’s virtual accounts.
getVirtualAccountsCountOfSubAccount
read
Count a subaccount's Virtual Accounts (VAs) — what to page the VA lists by past their default 200.
Enter a subaccount address and read.
getActiveVirtualAccountByKey
read
Read the Virtual Account (VA) a subaccount has active for one isolation key — market and isolation type — or none.

How the VA groups positions. isolationTypeForSide(side) gives a trade side’s.

Pick a subaccount, an isolation type and a market, then read.
getPartyAOpenPositions
read
Read a partyA's open positions (virtual account, lowcap).
Run the read to see open positions.
getPartyAOpenPositionsBatch
read
Read the open positions of many partyAs — any mix of subaccounts and VAs — in chunked multicalls, one result per account.

Pick or paste accounts one at a time — each joins the list below, and results come back in that order.

Pick accounts and run the read.
isPartyALiquidated
read
Whether a partyA's liquidation is in progress — true from the moment a liquidator starts it until it is finalized.
Run the read to see the liquidation flag.
getPartyAPendingQuotes
read
List a partyA's pending quote ids (PENDING / LOCKED / CANCEL_PENDING). Hydrate each with getQuote.
Run the read to see pending quote ids.
getQuote
read
Read a single quote by id. Resolves to ‘not found’ when no quote has that id.
Run the read to see the quote.
getFundingFeesOfPartyB
read
Read the accumulated-funding state a solver (partyB) keeps for one symbol: current and average per-epoch rates, epoch tracking and carried-over fee snapshots.

Leave empty to use the Enigma solver 0x0420…445c.

Pick a market and run the read to see the pair’s funding state.
getQuoteEventsByType
read
A quote's price history from the analytics subgraph, via useQuotePriceHistory — settle-uPnL open-price recomputes and funding-rate ticks, newest first. Enter a quote id to read it.
Enter a quote id to read its price history.