@somnia-chain/markets-sdk / index / SELF_MATCHING_OPTION
Variable: SELF_MATCHING_OPTION
constSELF_MATCHING_OPTION:object
Defined in: packages/sdk/src/trade.ts:746
OrderBook SelfMatchingOption — what happens when your incoming taker order crosses your OWN resting order: 0 cancels the rest of the taker, 1 cancels the whole maker. Every placement and amend verb takes it, and every one of them encodes 0 when you omit it. That default is the SDK's own choice: the pool reads the value out of the order request and has no default to fall back on.
Type Declaration
CANCEL_TAKER
readonlyCANCEL_TAKER:0=0
0 — cancel the remaining taker quantity, leave the maker resting.
CANCEL_MAKER
readonlyCANCEL_MAKER:1=1
1 — cancel the full maker order, let the taker continue.