getPendingQuotes
Read a PartyA’s resting LIMIT orders as full Quote structs. A pending quote is one that has not opened yet — in practice a limit order waiting to fill, since a market order never rests here. It reads the pending ids with getPartyAPendingQuotes, then hydrates each with getQuote bundled into multicalls of batchSize (default 10) — one round-trip per batch instead of one per id.
import { getPendingQuotes } from "@symmio/trading-core";
const limitOrders = await getPendingQuotes(config, { partyA: "0xsub…" });Parameters
partyAAddressrequiredThe partyA (subaccount, majors / cross-margin) whose limit orders to read.
batchSizenumberoptionalgetQuote reads per multicall batch. Defaults to 10.
chainIdnumberoptionalOptional chain override.
Returns
Quote[]The hydrated resting limit orders, empty when the partyA has none.
Query options
import { getPendingQuotesQueryOptions } from "@symmio/trading-core";
import { useQuery } from "@tanstack/react-query";
useQuery(getPendingQuotesQueryOptions(config, { partyA }));Related
- React
useLimitOrders— reconciles this on-chain read with the off-chain hedger feed + notifications into one live limit-order list. - getPartyAPendingQuotes — the ids-only read this hydrates.
Last updated on