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

requestToCancelQuote

Cancel a pending quote — how a partyA cancels a resting LIMIT order. The core requestToCancelQuote(quoteId) must be attributed to the subaccount, so it is encoded and routed through AccountLayer._call(account, …); the connected wallet must be the subaccount’s owner (no session key).

A PENDING (unlocked) quote cancels instantly. A LOCKED quote (a partyB is committed) enters CANCEL_PENDING and waits out the force-cancel cooldown before it can be finished with forceCancelQuote.

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

Parameters

accountAddressrequired

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

quoteIdbigintrequired

The on-chain id of the quote to cancel.

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 { requestToCancelQuoteMutationOptions } from "@symmio/trading-core"; import { useMutation } from "@tanstack/react-query"; useMutation(requestToCancelQuoteMutationOptions(config));
Last updated on