@somnia-chain/markets-sdk / index / CancelStopOrderParams
Interface: CancelStopOrderParams
Defined in: packages/sdk/src/trade.ts:888
Inputs to Trader.cancelStopOrder and Trader.cancelPerpStopOrder — cancel a pending (untriggered) stop order on its registry.
Shared by both venues because the cancel takes nothing venue-specific: an id and the registry that issued it. Which registry that is follows from the method you call, so pass the SpotStopOrderRegistry to the spot cancel and the PerpStopOrderRegistry to the perp one — ids are per-registry and mean nothing on the other.
Properties
registry
registry:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:890
The stop-order registry holding the pending order — spot or perp, per the method.
orderId
orderId:
string|bigint
Defined in: packages/sdk/src/trade.ts:892
The pending order's id on the registry (decimal string or bigint).
gas?
optionalgas?:bigint
Defined in: packages/sdk/src/trade.ts:894
Gas ceiling for this tx.
Default Value
TraderConfig.gas (10,000,000)