Skip to Content
Symmio Trading-SDK — the SDK surface for builders on Arbitrum
CoreSYMMIO ContractforceCancelCloseRequest

forceCancelCloseRequest

Force-cancel a stalled pending close. Only valid once the quote is CANCEL_CLOSE_PENDING — you called requestToCancelCloseRequest and partyB never acted — and the force-cancel-close cooldown has elapsed. The quote returns to OPENED. Routed through AccountLayer._call(account, …), so the connected wallet must be the subaccount’s owner.

Eligibility: now ≥ quote.statusModifyTimestamp + getCoolDownsOfMA()[2] (forceCancelCloseCooldown).

import { forceCancelCloseRequest } from "@symmio/trading-core"; const hash = await forceCancelCloseRequest(config, { account: "0xsub…", quoteId: 42n });

Parameters

accountAddressrequired

The subaccount (partyA) that owns the quote. Routed through the AccountLayer _call proxy so the diamond sees this subaccount as the caller.

quoteIdbigintrequired

The on-chain id of the CANCEL_CLOSE_PENDING quote to force-cancel the close on.

fromAddressoptional

Override the wallet address that signs. Defaults to the account’s owner.

chainIdnumberoptional

Optional chain override.

Returns

Hash
The transaction hash.

Mutation options

import { forceCancelCloseRequestMutationOptions } from "@symmio/trading-core"; import { useMutation } from "@tanstack/react-query"; useMutation(forceCancelCloseRequestMutationOptions(config));
Last updated on