@somnia-chain/markets-sdk / index / CreateOrderParams
Interface: CreateOrderParams
Defined in: packages/sdk/src/unified/exchange.ts:65
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:67
"IOC" | "FOK" | "PO" (post-only). Default GTC (rest).
postOnly?
optionalpostOnly?:boolean
Defined in: packages/sdk/src/unified/exchange.ts:69
Alias for timeInForce: "PO".
slippage?
optionalslippage?:number
Defined in: packages/sdk/src/unified/exchange.ts:71
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:77
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:82
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).