Learning objectives
- Apply a stated self-match prevention policy to an incoming order.
- Distinguish prevented matching from actual executed volume.
Prerequisites: Understand resting orders, incoming orders and matching identifiers.
Mechanism and interpretation
Self-match prevention can stop orders sharing a configured identifier from executing against each other. The available policies and ownership scope are venue-specific. A policy may cancel the resting order, cancel the incoming order or use another documented treatment. The prevented quantity is not an execution and must not be added to trade volume or signed delta.
This lesson uses an explicit cancel-resting policy:when an incoming order would match an opposite order with the same prevention identifier, the resting order is canceled and processing continues against eligible other orders. That policy changes visible depth and possible fills. Observers should not mistake the cancellation for an aggressive trade simply because the best quote disappeared.
Worked case · synthetic data
A synthetic ask queue has 60 units from identifier X at 100.00 and 40 from Y at 100.00. An incoming buy 80 with identifier X reaches the venue. Under the stated policy, the resting X60 is canceled, then 40 executes against Y. The incoming buy retains 40 unfilled under the assumed resting instruction. Executed volume is 40, not 100 or 140; the canceled 60 did not trade.
Failure modes and context
Matching identifiers and account ownership are not publicly inferable from ordinary anonymous depth. Self-match prevention is a control, not proof that every prevented encounter was manipulative or that all problematic activity is eliminated. Venue exceptions and implied-order treatment can matter. Review current specifications and retain cancellation reasons where the participant is entitled to receive them.
Practice assignment
Resting bids are 30 from A and 50 from B at 50.00. An incoming sell 60 with identifier A uses cancel-resting prevention. Calculate canceled quantity, executed quantity and unfilled incoming quantity. How would a cancel-incoming policy change this toy result?
Worked answer
Cancel-resting removes A30; the sell executes 50 against B and leaves 10. Under a cancel-incoming policy applied at the first same-ID encounter, the incoming 60 would be canceled before any execution in this stated queue sequence, and resting orders remain. Different policies therefore produce different volume and depth outcomes; the policy name must accompany the simulation.
Check your understanding
Question 1
How much case volume actually executes?
- 140
- 40
- 100
Reveal answer and reasoning
B. 40
Only the match with Y is an execution; the X quantity is canceled.
Question 2
Does a disappearing best quote prove a trade?
- No, it may have been canceled
- Yes, every removal is volume
- Only when prices move
Reveal answer and reasoning
A. No, it may have been canceled
Book reductions can result from cancellation or matching and need event-type evidence.
Question 3
What must be fixed before simulating prevention?
- The desired profit
- Only the candle close
- The exact venue policy and queue sequence
Reveal answer and reasoning
C. The exact venue policy and queue sequence
Cancel-resting and cancel-incoming rules can produce different outcomes from the same quantities.
