@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?
optionalsource?:"chain"|"live"
Defined in: packages/sdk/src/trade.ts:718
Where the resting ids come from.
"chain"(default): oneeth_callto the pool's owngetOwnOpenOrders. 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?
optionalgas?:bigint
Defined in: packages/sdk/src/trade.ts:724
Gas ceiling for the cancel tx.
Default
TraderConfig.gas (10,000,000)