Skip to Content
Symmio Trading-SDK — the SDK surface for builders on Arbitrum
CoreUnified QuotestoGroupCloseCandidates

toGroupCloseCandidates

Build the candidate list planGroupClose plans over.

Only children that can actually receive a close order qualify: anchored on-chain, status OPENED (a child with a close already in flight is excluded), and open size left. Each candidate carries its contract min-remainder, derived from the symbol’s minAcceptableQuoteValue — the dust floor a partially closed child must keep.

import { toGroupCloseCandidates, planGroupClose } from "@symmio/trading-core"; const candidates = toGroupCloseCandidates(group.quotes, market.minAcceptableQuoteValue); const plan = planGroupClose(candidates, parseUnits("2.8", 18));

Parameters

The group’s child quotes.

minAcceptableQuoteValuebigintrequired

The symbol’s minAcceptableQuoteValue, wei.

Returns

GroupCloseCandidate[]
Candidates in input order.
Last updated on