getCoolDownsOfMA
Read the protocol cooldown periods (coolDownsOfMA) as a 4-tuple of seconds:
[withdrawCooldownPeriod, forceCancelCooldown, forceCancelCloseCooldown, forceCloseFirstCooldown];Index 1 is the force-cancel cooldown — the delay after a quote enters CANCEL_PENDING before forceCancelQuote becomes eligible. These values rarely change, so a long staleTime is appropriate at the call site.
import { getCoolDownsOfMA } from "@symmio/trading-core";
const coolDowns = await getCoolDownsOfMA(config);
const forceCancelCooldown = coolDowns[1]; // secondsParameters
chainIdnumberoptionalOptional chain override.
Returns
readonly [bigint, bigint, bigint, bigint]The four cooldown periods in seconds: (withdrawCooldownPeriod, forceCancelCooldown, forceCancelCloseCooldown, forceCloseFirstCooldown). Index 1 (forceCancelCooldown) gates
forceCancelQuote.
Query options
import { getCoolDownsOfMAQueryOptions } from "@symmio/trading-core";
import { useQuery } from "@tanstack/react-query";
useQuery(getCoolDownsOfMAQueryOptions(config));Related
- forceCancelQuote — gated by index 1 of this read.
- React
useCoolDownsOfMA— the hook wrapper.
Last updated on