@somnia-chain/markets-sdk


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

Interface: CancelOrderParams

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

Inputs to Trader.cancelOrder — cancel one resting order, returning its remaining escrow to the owner. Works on spot AND binary pools.

Properties

pool

pool: `0x${string}`

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

BinaryPool (or SpotPool) address hosting the resting order.


orderId

orderId: string | bigint

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

uint128 OrderId (decimal string or bigint).


gas?

optional gas?: bigint

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

Gas ceiling for this tx.

Default Value

TraderConfig.gas (10,000,000)