@somnia-chain/markets-sdk / index / PlaceSpotOrdersParams
Interface: PlaceSpotOrdersParams
Defined in: packages/sdk/src/trade.ts:395
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:397
SpotPool address every order in this batch targets.
orders
orders:
SpotOrderRequest[]
Defined in: packages/sdk/src/trade.ts:399
The orders to place, in the order the results come back.
baseDecimals
baseDecimals:
number
Defined in: packages/sdk/src/trade.ts:401
Base-token decimals (for the buy-side escrow math).
quoteToken
quoteToken:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:403
Quote token (approved once for the batch's total buy-side escrow).
baseToken
baseToken:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:405
Base token (approved once for the batch's total sell-side quantity).
baseIsNative?
optionalbaseIsNative?:boolean
Defined in: packages/sdk/src/trade.ts:412
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:414
Approve the escrow tokens if allowance is short (default true).
gas?
optionalgas?:bigint
Defined in: packages/sdk/src/trade.ts:416
Gas ceiling for this tx.
Default Value
TraderConfig.gas (10,000,000)