Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreUnified QuotesshouldAccelerateQuotePolling

shouldAccelerateQuotePolling

Decide whether quote polling should run at the accelerated interval. Returns true while any row is mid-transition — the open stages OPTIMISTIC / PRICE_FILLED / WRITE_ONCHAIN, or the close stages OPTIMISTIC_CLOSE / CLOSE_PRICE_FILLED / WRITE_ONCHAIN_CLOSE / CLOSING. Those rows are waiting on a change the SDK can only observe by re-reading, so the consumer should shorten its refetchInterval until everything settles, then fall back to the idle interval.

For the narrower “should the on-chain reads specifically retry” question — the RPC-lag case — use shouldAccelerateOnchainReads, which excludes the purely off-chain stages.

import { shouldAccelerateQuotePolling } from "@symmio/trading-core"; const interval = shouldAccelerateQuotePolling(result) ? 1_500 : 10_000;

Parameters

resultReconcileQuotesResultrequired

The latest reconciliation result from reconcileQuotes.

Returns

boolean
true when at least one transitioning row exists.
Last updated on