@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / CancelAllOrdersOptions

Interface: CancelAllOrdersOptions

Defined in: packages/sdk/src/trade.ts:706

Options for Trader.cancelAllOrders — the kill switch that pulls every resting order the signer holds on one pool.

Properties

source?

optional source?: "chain" | "live"

Defined in: packages/sdk/src/trade.ts:718

Where the resting ids come from.

  • "chain" (default): one eth_call to the pool's own getOwnOpenOrders. Complete, and correct on a pool the live tail does not watch.
  • "live": the live store, so the cancel costs NO read at all. Needs an active watch covering the pool; without one this throws instead of reporting a false empty.

Default

ts
"chain"

gas?

optional gas?: bigint

Defined in: packages/sdk/src/trade.ts:724

Gas ceiling for the cancel tx.

Default

TraderConfig.gas (10,000,000)