{s}omniamarkets

@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / CreateOrderParams

Interface: CreateOrderParams

Defined in: unified/exchange.ts:71

Properties

timeInForce?

optional timeInForce?: "GTC" | "IOC" | "FOK" | "PO"

Defined in: unified/exchange.ts:73

"IOC" | "FOK" | "PO" (post-only). Default GTC (rest).


postOnly?

optional postOnly?: boolean

Defined in: unified/exchange.ts:75

Alias for timeInForce: "PO".


slippage?

optional slippage?: number

Defined in: unified/exchange.ts:77

Market-order slippage bound vs the best opposite level (default 0.01 = 1%).


builder?

optional builder?: `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?

optional builderFeeBpsTimes1k?: 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).