Self-Trade Prevention
Self-trade prevention can be enabled on a CLOB order.
When an incoming order would match a resting order from the same account, the resting maker order is canceled instead of executing the self-trade. The incoming order then continues matching against other eligible liquidity.
Self-trade prevention is optional and is scoped to a trading account:
- orders from the same account are treated as self-liquidity;
- orders from different subaccounts are not, even when the same wallet owns both accounts.
If self-trade prevention is not enabled, orders from the same account may match.