@somnia-chain/markets-sdk


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

Interface: SpotOrderRequest

Defined in: packages/sdk/src/trade.ts:373

One order inside a Trader.placeSpotOrders batch — the per-order fields of PlaceSpotOrderParams, minus everything the batch supplies once (pool, token/decimals context, gas).

Properties

isBid

isBid: boolean

Defined in: packages/sdk/src/trade.ts:375

True = buy the base asset (pay quote); false = sell base (pay base/native).


price

price: bigint

Defined in: packages/sdk/src/trade.ts:380

Limit price — raw quote units per whole base token. For a MARKET order pass a crossing price (best opposite level ± slippage); it bounds the escrow.


quantity

quantity: bigint

Defined in: packages/sdk/src/trade.ts:382

Base quantity, raw base units.


orderType?

optional orderType?: number

Defined in: packages/sdk/src/trade.ts:384

0 limit (default) or 2 market (IOC). See ORDER_TYPE.


expireTimestampNs?

optional expireTimestampNs?: bigint

Defined in: packages/sdk/src/trade.ts:386

Order expiry in ns. Defaults to ~50y (GTC).


userData?

optional userData?: bigint

Defined in: packages/sdk/src/trade.ts:388

Opaque 64-bit tag carried on the order — for market-maker bookkeeping.