Overview
Self Match Prevention (SMP) is a mechanism that prevents orders from matching with each other when they originate from the same member AND share the same SMP token. SMP helps prevent accidental self-trading and allows for more granular control over order matching behavior. SMP uses three components to control order matching:- SMP Mode
- SMP Token
- Member
SMP mode determines which order is cancelled when a self-match is detected:
The SMP mode should be specified for each order. A default SMP mode can be configured via the WebSocket API
private/set_self_trading_config method, and users can change their default setting.SMP Mode Selection: When a self-match is detected, the SMP mode from the aggressing order (the incoming order) will be used to determine which order is cancelled.