@somnia-chain/markets-sdk / index / CreateOrderParams
Interface: CreateOrderParams
Defined in: packages/sdk/src/unified/exchange.ts:68
The optional trailing params bag of SomniaMarkets.createOrder — time-in-force, market-order slippage, and builder-fee attribution. Everything here has a working default.
Properties
timeInForce?
optionaltimeInForce?:"GTC"|"IOC"|"FOK"|"PO"
Defined in: packages/sdk/src/unified/exchange.ts:70
"IOC" | "FOK" | "PO" (post-only). Default GTC (rest).
postOnly?
optionalpostOnly?:boolean
Defined in: packages/sdk/src/unified/exchange.ts:72
Alias for timeInForce: "PO".
slippage?
optionalslippage?:number
Defined in: packages/sdk/src/unified/exchange.ts:74
Market-order slippage bound vs the best opposite level (default 0.01 = 1%).
builder?
optionalbuilder?:`0x${string}`
Defined in: packages/sdk/src/unified/exchange.ts:80
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. Works on binary, spot and perp.
builderFeeBpsTimes1k?
optionalbuilderFeeBpsTimes1k?:bigint
Defined in: packages/sdk/src/unified/exchange.ts:85
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).