Reference
The toxic-flow framework
How we define toxic flow, the signals that measure it, the thresholds and tiers, the actions from warning to ban, and how authorized testing proves it.
Toxic order flow is flow that is systematically unprofitable to make a market against, or that is outright manipulative. A maker quoting two sides loses to a counterparty who trades only when the quote is stale or wrong; the spread exists partly to pay for that risk, and flow is toxic when the informed share outruns the spread. Economists call the risk adverse selection (Glosten and Milgrom, 1985) and the measure flow toxicity (Easley, Lopez de Prado and O'Hara, 2012).
This framework is a measurement-and-policy loop a venue, a maker or a protocol team runs: define the signals, calibrate the thresholds per pair, and attach graduated actions with review and appeal. Our red team proves the loop catches what it should, under written authorization, in a sandbox or on agreed pairs.
What counts as toxic
Two families. First, adverse flow: stale-quote sniping, where the fastest traders lift a maker's quote on a slower venue before it can cancel, and onchain arbitrage against a pool whose price has not caught up (loss-versus-rebalancing). This flow is legal; the question is only whether the spread or fee covers it. Second, manipulative flow, which is prohibited: spoofing and layering, quote stuffing, momentum ignition, wash and matched trades, painting the tape, marking the close. The authoritative catalogue is EU MAR Article 12 and the behaviours it names; for crypto-assets, MiCA Article 91 carries the same prohibition. The framework separates the two, because the honest answer to adverse flow is to price it, and the answer to manipulation is to stop it.
Signals, and how each is measured
Each signal is measured, calibrated per pair, and read as one input among several. No single number is a verdict.
| Signal | What it measures | How it is read |
|---|---|---|
| Markout curve | Fill price against the mid some horizons later, signed by side | Flat or positive is benign; falling further below zero at longer horizons is adverse, in basis points, averaged over many fills |
| Realized vs effective spread | What the maker kept after impact, against what the taker paid | Measured at 15-second and one-minute horizons (the SEC Rule 605 convention); a low or negative realized spread marks a toxic fill |
| Order-to-trade ratio | Orders placed against orders that trade | The EU RTS 9 definition, per account per instrument, in number and volume |
| Cancel and message ratio | How much messaging each trade costs | Cancels weighted above modifications (the CME convention), benchmarked per product |
| Flow imbalance | One-sided pressure in volume time | A VPIN-style imbalance; used as one input, since its predictive power is contested |
| Lead-lag and latency | Whether an account only trades the stale side after a faster venue moves | Cross-venue timing; the discriminator between a maker and a sniper |
| Onchain flow | Arbitrage against a stale pool, sandwiching, just-in-time liquidity | Read per block, with CEX-leads-DEX timing |
| Fake-volume screens | Fabricated activity | First-digit (Benford), size-clustering and tail tests, as a population screen before per-fill work |
Thresholds and tiers
There is no universal cutoff. A threshold that is right for a deep major pair is wrong for a thin one, and both move with the volatility regime and the time of day. Calibrating them per venue, pair and regime is the engagement work: we set them against the system's own history, not a borrowed constant. Each account carries a running score built from the signals above, and the tiers below are crossings of that score.
Actions, from warning to ban
Warn
The account is flagged, the triggering signal is recorded, and a notice goes out. No trading right is removed. This mirrors the evidence-first posture of cross-market surveillance report cards.
Throttle
Message and order rates are capped, or the account is moved to lower priority, so the cost of toxic behaviour rises while genuine trading continues.
Suspend
Quoting or trading is paused for a set window, with a recovery time, as a scored lockout does in production.
Ban
The account is removed, with the recorded reason. A ban is never silent and never permanent without review.
Each step records the signal that triggered it and leaves a recovery path. The execution side has its own controls the framework can recommend: maker-protection and dead-man switches, self-trade prevention, speed bumps and asymmetric delays, and dynamic fees that charge adverse flow more, as in our Uniswap v4 pool design: see Dynamic fees.
Review and appeal
Every sanction is appealable to a human, with the recorded reason in front of them. The whole set of thresholds is recalibrated on a schedule (at least annually, the RTS 6 Article 13 duty), measuring false positives and false negatives, so the framework does not drift into punishing honest flow or waving through new toxic patterns.
How we test it
The test is what proves the loop works, and it is the part that must stay lawful. Four rules, with no exception:
- Authorization. A signed scope names the exact systems, pairs, size caps, loss limits, time windows and the individuals authorized to run and to halt the test, before anything is sent. The pre-authorization model is SEAL's whitehat safe harbor; a trading engagement signs its own statement of work.
- Isolation. First choice is a vendor or venue sandbox or a public testnet. Separating the test from production is a legal requirement (RTS 6 Article 7, RTS 7 Article 10), and a disorderly-conditions stress scenario belongs there, not on a live book.
- Agreed pairs with caps. Where a test must touch a live market, it runs on agreed pairs with agreed size and loss limits, inside the client's own pre-trade controls and kill switch, never against third parties or other users. Spoofing, layering and wash-trade patterns never run there: they run only in a sandbox or on a testnet.
- Private disclosure. Findings go to the client privately, with time to fix them, and are never published.
This matters because the law gives no “we were only testing” exemption on a live market. EU MAR Article 12 and MiCA Article 91, the US Commodity Exchange Act Section 4c(a)(5) on spoofing and Section 4c(a)(2) on wash trades, and Securities Exchange Act Section 9(a) all judge conduct on intent and facts. Authorization and isolation are what keep an adversarial test on the right side of that line. The enforcement record (the CFTC's record spoofing penalties, and the DOJ's wash-trading charges against market makers acting for token clients) is the reason the method is strict.
FAQ
Do you need to touch our live market?
Not usually. Most of the work runs in a sandbox or on a testnet. Live pairs are used only when a signal can be proven no other way, and then inside agreed caps.
What do you hand over?
The tested framework: signals, calibrated thresholds, the action ladder, the review and appeal process, and the recalibration schedule, plus the evidence from the test.
Do you run the surveillance for us afterwards?
You run it. The framework is yours; we can review and recalibrate on a schedule if you ask.
Will you name us or publish results?
No. Findings are private to you: we never publish them, and we never name you.
Talk to us about a toxic-flow review.
Write to info@onchainbureau.com or message @onchainbureau on Telegram, our only official channels.