@somnia-chain/markets-sdk / index / CreateOrderParams
Interface: CreateOrderParams
Defined in: unified/exchange.ts:59
The optional trailing params bag of SomniaMarkets.createOrder — time-in-force, market-order slippage, and (binary only) builder-fee attribution. Everything here has a working default.
Properties
timeInForce?
optionaltimeInForce?:"GTC"|"IOC"|"FOK"|"PO"
Defined in: unified/exchange.ts:61
"IOC" | "FOK" | "PO" (post-only). Default GTC (rest).
postOnly?
optionalpostOnly?:boolean
Defined in: unified/exchange.ts:63
Alias for timeInForce: "PO".
slippage?
optionalslippage?:number
Defined in: unified/exchange.ts:65
Market-order slippage bound vs the best opposite level (default 0.01 = 1%).
builder?
optionalbuilder?:`0x${string}`
Defined in: unified/exchange.ts:71
BINARY only — routing/builder frontend to attribute the order to. Requires a
prior client.createTrader().approveBuilder(...) opt-in on the pool, else a
non-zero builderFeeBpsTimes1k reverts. Ignored on spot/perp.
builderFeeBpsTimes1k?
optionalbuilderFeeBpsTimes1k?:bigint
Defined in: unified/exchange.ts:76
BINARY only — per-order builder/routing fee in the pool's native bps×1000 unit (must not exceed the effective approval / the pool's max builder fee).