Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreSYMMIO ContractgetSubAccountQuotes

getSubAccountQuotes

Read a subaccount’s full quote picture across every account that holds it. Lowcap positions are isolated into Virtual Accounts (VAs), so a subaccount’s quotes are spread across its VAs rather than the subaccount itself. This unions the VAs, fetches the off-chain pending instant-opens / instant-closes, and merges everything into one de-duplicated, lifecycle-tagged list.

import { getSubAccountQuotes } from "@symmio/trading-core"; const { quotes, accounts } = await getSubAccountQuotes(config, { subAccount, });

Parameters

subAccountAddressrequired

The subaccount whose full quote picture to assemble.

includeVirtualAccountsbooleandefault true

Union the subaccount’s existing on-chain Virtual Accounts (VAs) into the read. In lowcap, each isolated position lives under a VA, so this is required to see the full picture.

extraAccountsreadonly Address[]optional

Extra accounts to read quotes across (e.g. VAs already known to the consumer).

baseUrlstringoptional

Hedger base URL for the off-chain instant-open / instant-close reads. Defaults to the chain config’s solver.url.

chainIdnumberoptional

Optional chain override.

Returns

GetSubAccountQuotesReturnType

The merged, de-duplicated, lifecycle-tagged quote rows for the subaccount.

accountsAddress[]

The on-chain partyA accounts the quotes were read across (subaccount + VAs + extras).

Query options

import { getSubAccountQuotesQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getSubAccountQuotesQueryOptions(config, { subAccount }));
Last updated on