@somnia-chain/markets-sdk


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

Variable: SELF_MATCHING_OPTION

const SELF_MATCHING_OPTION: object

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

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. Defaults to 0 everywhere in this SDK.

Type Declaration

CANCEL_TAKER

readonly CANCEL_TAKER: 0 = 0

0 — cancel the remaining taker quantity, leave the maker resting.

CANCEL_MAKER

readonly CANCEL_MAKER: 1 = 1

1 — cancel the full maker order, let the taker continue.