getPartyAOpenPositions
Read the open positions (quotes past the open anchor) for a PartyA — a Virtual Account in the lowcap flow.
import { getPartyAOpenPositions } from "@symmio/trading-core";
const open = await getPartyAOpenPositions(config, {
partyA,
start: 0n,
size: 50n,
});Parameters
partyAAddressrequiredThe partyA (virtual account, lowcap) whose open positions to read.
startbigintdefault 0nPagination offset into partyA’s open-positions list.
sizebigintdefault 200nMaximum number of positions to return from start. Clamped on-chain to the number remaining.
chainIdnumberoptionalOptional chain override.
Returns
readonly Quote[]The open-position quotes found in the scanned range — the raw on-chain quote structs. See Unified Quotes for the higher-level model.
Query options
import { getPartyAOpenPositionsQueryOptions } from "@symmio/trading-core";
import { useQuery } from "@tanstack/react-query";
useQuery(getPartyAOpenPositionsQueryOptions(config, { partyA }));Last updated on