Adversarial Trading and Market Surveillance
Financial markets are adversarial: traders compete against each other, and exchanges must ensure fair play. This creates a cat-and-mouse game between trading strategies and surveillance systems.
Manipulative Practices
Spoofing
Placing large orders on one side of the book to create a false impression of demand or supply, then canceling before execution.
Layering
Placing multiple orders at different price levels to create an artificial "wall" that other traders react to.
Wash Trading
Buying and selling to yourself to create artificial volume.
Surveillance Systems
Exchanges use market surveillance to detect these patterns:
Statistical Anomaly Detection
Normal behavior: Bid/ask ratio ≈ 1.0, order-to-trade ratio ≈ 5x
Suspicious: Bid/ask ratio = 10x (too many bids, no asks)
Suspicious: Order cancellation rate > 95%
Suspicious: Layering at round numbers (99, 100, 101)Pattern Matching
Surveillance systems flag specific patterns:
- Rapid entry/exit within milliseconds (quote stuffing)
- Large orders immediately canceled (spoofing)
- Multiple entities at the same IP placing correlated orders (layering)
- Trades between accounts with the same beneficial owner (wash trading)
Machine Learning
Modern surveillance uses ML to detect subtle patterns that rule-based systems miss:
- Behavioral baselines per trader
- Anomaly scoring in real-time
- Cross-market pattern correlation
The Arms Race
When surveillance catches a new pattern, traders adapt:
- Subtle spoofing — Place orders slightly larger than normal, cancel just before the timeout
- Distributed attacks — Multiple coordinated accounts mask the pattern
- Legitimate-looking behavior — Add real trades to disguise fake orders
- Speed as defense — Cancel orders before surveillance can detect the pattern
Regulatory Response
Regulations vary by jurisdiction but commonly require:
- Order-to-trade ratios — If you place 100 orders, at least 1 must execute
- Minimum resting times — Orders must rest for X milliseconds before cancellation
- Audit trails — All messages must be logged and attributable
Ethics in HFT
The line between "aggressive trading" and "market manipulation" is debated:
- Liquidity provision (making the market) is generally beneficial
- Latency arbitrage (trading faster than others) is legal but controversial
- Spoofing and layering are illegal
The systems perspective: building surveillance that catches real manipulation without false-positiving legitimate strategies requires deep understanding of both trading behavior and distributed systems.