@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?
optionaloperatorRegistry?:`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?
optionallimitPrice?: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?
optionalbaseIsNative?:boolean
Defined in: trade.ts:330
True when the base asset is native SOMI (sell stops pre-load the pool vault).
somiPayment?
optionalsomiPayment?:bigint
Defined in: trade.ts:333
SOMI to fund the reactivity subscription gas. Read from registry.somiPaymentPerOrder() if omitted.
skipOperatorApproval?
optionalskipOperatorApproval?: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?
optionalautoApprove?:boolean
Defined in: trade.ts:338
Approve the ERC-20 escrow token to the pool if allowance is short (default true).
gas?
optionalgas?:bigint
Defined in: trade.ts:339