@somnia-chain/markets-sdk / index / PlaceSpotOrdersParams
Interface: PlaceSpotOrdersParams
Defined in: packages/sdk/src/trade.ts:381
Inputs to Trader.placeSpotOrders — place several orders on ONE SpotPool in a single transaction.
Properties
pool
pool:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:383
SpotPool address every order in this batch targets.
orders
orders:
SpotOrderRequest[]
Defined in: packages/sdk/src/trade.ts:385
The orders to place, in the order the results come back.
baseDecimals
baseDecimals:
number
Defined in: packages/sdk/src/trade.ts:387
Base-token decimals (for the buy-side escrow math).
quoteToken
quoteToken:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:389
Quote token (approved once for the batch's total buy-side escrow).
baseToken
baseToken:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:391
Base token (approved once for the batch's total sell-side quantity).
baseIsNative?
optionalbaseIsNative?:boolean
Defined in: packages/sdk/src/trade.ts:398
True when the base asset is native SOMI. Batch writes are NON-payable, so a
native-base sell here funds from the pool's vault balance — pre-deposit native
to the vault first (the batch cannot send msg.value, and nothing is approved
for a native base).
autoApprove?
optionalautoApprove?:boolean
Defined in: packages/sdk/src/trade.ts:400
Approve the escrow tokens if allowance is short (default true).
gas?
optionalgas?:bigint
Defined in: packages/sdk/src/trade.ts:402
Gas ceiling for this tx.
Default Value
TraderConfig.gas (10,000,000)