{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: PlaceSpotStopOrderParams

Defined in: trade.ts:306

Properties

registry

registry: `0x${string}`

Defined in: trade.ts:308

SpotStopOrderRegistry address (the per-pool registry).


pool

pool: `0x${string}`

Defined in: trade.ts:311

The SpotPool the registry trades on — needed for the operator-auth check, the ERC-20 escrow approval, and the native vault pre-load math.


operatorRegistry?

optional operatorRegistry?: `0x${string}`

Defined in: trade.ts:314

Shared OperatorPermissionsRegistry where the one-time global approval is granted. Resolved from the live config (addresses.operatorPermissionsRegistry) if omitted.


isBid

isBid: boolean

Defined in: trade.ts:315


quantity

quantity: bigint

Defined in: trade.ts:316


triggerPrice

triggerPrice: bigint

Defined in: trade.ts:318

Mark price that arms the trigger (raw quote per whole base).


triggerOperator

triggerOperator: 0 | 1

Defined in: trade.ts:320

0 = GTE (trigger when mark ≥ triggerPrice), 1 = LTE (mark ≤ triggerPrice).


stopOrderType

stopOrderType: 0 | 1

Defined in: trade.ts:322

0 = LIMIT (uses limitPrice), 1 = MARKET (slippage-bounded).


limitPrice?

optional limitPrice?: bigint

Defined in: trade.ts:324

Limit price for a LIMIT stop order (raw quote per whole base).


quoteToken

quoteToken: `0x${string}`

Defined in: trade.ts:326

Quote token — the input escrow on a buy stop.


baseToken

baseToken: `0x${string}`

Defined in: trade.ts:328

Base token — the input escrow on a (non-native) sell stop.


baseIsNative?

optional baseIsNative?: boolean

Defined in: trade.ts:330

True when the base asset is native SOMI (sell stops pre-load the pool vault).


somiPayment?

optional somiPayment?: bigint

Defined in: trade.ts:333

SOMI to fund the reactivity subscription gas. Read from registry.somiPaymentPerOrder() if omitted.


skipOperatorApproval?

optional skipOperatorApproval?: boolean

Defined in: trade.ts:336

Skip the one-time operator-approval check/tx (default false). Set true if you know the registry is already operator-approved for this owner.


autoApprove?

optional autoApprove?: boolean

Defined in: trade.ts:338

Approve the ERC-20 escrow token to the pool if allowance is short (default true).


gas?

optional gas?: bigint

Defined in: trade.ts:339