StpType

Self-trade prevention strategies.

Metadata

  • Underlying type: u8

Values

KeyValueDescription
None0Allow self-trades
Simple1Where a self-trade would otherwise occur, do not withdraw either order i.e. the order book can become crossed.
WithdrawNew2Where a self-trade would otherwise occur, withdraw the order being entered.
WithdrawResting3Where a self-trade would otherwise occur, withdraw the order that is resting in the order book.
WithdrawBoth4Where a self-trade would otherwise occur, withdraw both the new and resting orders.

Referenced by

Tables

TableFieldDescription
MarketSelfTradePreventType