@somnia-chain/markets-sdk / index / CreateOrderParams
Interface: CreateOrderParams
Defined in: unified/exchange.ts:71
Properties
timeInForce?
optionaltimeInForce?:"GTC"|"IOC"|"FOK"|"PO"
Defined in: unified/exchange.ts:73
"IOC" | "FOK" | "PO" (post-only). Default GTC (rest).
postOnly?
optionalpostOnly?:boolean
Defined in: unified/exchange.ts:75
Alias for timeInForce: "PO".
slippage?
optionalslippage?:number
Defined in: unified/exchange.ts:77
Market-order slippage bound vs the best opposite level (default 0.01 = 1%).
builder?
optionalbuilder?:`0x${string}`
Defined in: unified/exchange.ts:81
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:84
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).