Skip to content

06Research

A predictable market maker gets harvested

A market maker whose next quote or hedge can be predicted from public data trades against informed flow even when there is no news, and whether an outsider can make that prediction can be checked before launch.

Version 1.06 min read

Knowing the next quote is information

Easley, López de Prado and O'Hara define order flow as toxic when it adversely selects market makers, who may be unaware they are providing liquidity at a loss.1 The spread pays for that risk. Glosten and Milgrom showed in 1985 that traders with better information lead to a gap between bid and ask even when the market maker is risk-neutral and expects no profit.2

That better information is usually about the asset: news, or a move on another venue. A second kind needs no news. A trader who can predict a market maker's next quote, or its next hedge, has an edge against that market maker alone, and a spread set for the asset's own risk does not cover it.

What an outsider can see

Most of what a quoting bot does is public. Its quotes rest in the book, its trades print, and a few small orders show how it answers a fill. An attacker starts there and builds a model of the bot. If the model predicts the bot, an attack is possible.

Regulators have named the same moves when they target other traders' orders. In 2010 the SEC described "order anticipation" strategies that find large buyers or sellers and trade ahead of them, using pattern recognition on publicly available information or orders that "ping" trading venues.3 The EU's market abuse rules list "phishing", executing orders to uncover other participants' orders and then trading on what was found, among their indicators of manipulative behaviour.4

Four ways a readable bot is harvested

Table 1. The four attacks, and the condition behind each
AttackWhat makes it possibleWhat it costs
ProbingThe bot changes its behaviour after tiny fillsIts rules, learned with small trades and used at size
Bias harvestingAn outsider can predict the bot's next priceA small loss on many trades that each look ordinary
Hedge front-runningThe hedging is predictable and the hedge venue is thinA worse price on every hedge
A rival's hedgeThe book is the slowest or cheapest place for a rival to hedgeThe rival's risk, taken at a stale price

Probing. Each tiny fill that changes the bot's behaviour teaches the attacker one of its rules for almost nothing, and the lesson is spent later on a large order.

Bias harvesting. An outsider who knows where the bot's price goes next buys before it rises and sells after, or the reverse, again and again. One by one the fills look ordinary, which is how a market maker ends up providing liquidity at a loss without knowing it.1

Hedge front-running. An outsider who knows a hedge is coming trades first on the thin hedge venue, so the hedge fills at a worse price, then trades back against it. Brunnermeier and Pedersen showed the mechanics for a trader who has to sell: others sell too and buy back later, the price overshoots, and the forced seller receives less.5 A predictable hedge is the same kind of need, visible in advance.

A rival's hedge. Another market maker in the same asset hedges wherever the price is best, and a book that has not caught up with a move offers the best price. Nobody has to single you out. Budish, Cramton and Shim showed that in continuous markets even public information, seen by everyone at once, creates arbitrage profits against quotes not yet updated, and that these profits harm liquidity provision.6

The question before launch

A launch sharpens all four. Where the bot's quotes are most of a new book, predicting the bot comes close to predicting the price, and the book has no history yet to show where the bot leaks. What it loses in the first days comes out of the depth and the spread the launch was meant to show.

The question, then, is whether an outsider with public data only can predict your next quote or hedge. The fingerprint test asks it from the outsider's side, before an outsider does. A yes points to the habit that gives the bot away, at a stage when fixing it costs a code change rather than a loss.

The defender can also attack first. In 2020 Spooner and Savani trained an adversary to profit at a market maker's expense, standing in for the other participants who would, and trained the market maker against it. Compared with market makers trained without an adversary, the one trained against it turned more risk-averse with no rule added to make it so, scored better on standard measures with or without the adversary present, and held up better when the market differed from the model it was trained in.7 Before launch, the same contest can run against a simulated market with an attacking agent, where losing costs nothing.

What shadow mode shows

Shadow mode gives the bot a trading record before it has a real one: the fills it would have had on live data, each judged toxic or not, with no order sent. It shows which fills the bot would have regretted, and when. It can start on other venues before the launch venue's book exists, so the record is ready on the first day of trading instead of being written in losses during the first week. Because it sends nothing, it cannot show how others would react to the bot; the fingerprint test and the authorized attack cover that.

How the tests stay lawful

Every test we run is authorized in writing by the venue or firm tested. A test that sends orders runs in a sandbox, on a testnet or on agreed pairs inside agreed caps. Spoofing, layering, wash-trade and momentum-ignition patterns run only in a sandbox or on a testnet, because on a live market they break the law: the US Commodity Exchange Act bans spoofing in section 4c(a)(5)(C)8, MAR Article 12 defines market manipulation in the EU9, and MiCA Article 91 prohibits it for crypto-assets.10

What Onchain Bureau sells

Onchain Bureau makes markets on exchanges and onchain for token teams and issuers of real-world assets. It also runs a toxic flow red team: authorized tests of exchanges, market makers and trading algorithms against toxic order flow, and a framework the firm tested keeps, which scores the accounts sending that flow and acts on them, from a warning to a ban. Findings go to that firm privately.

If you are preparing a launch, the best time to find out whether an outsider can read your bot is before one tries. Book a pre-launch toxic flow red team, or talk to us.

Sources

  1. David Easley, Marcos M. López de Prado and Maureen O'Hara, "Flow Toxicity and Liquidity in a High-frequency World", The Review of Financial Studies 25(5), 2012, pp. 1457 to 1493. Read 3 November 2026. doi.org/10.1093/rfs/hhs053 (opens in a new tab)
  2. Lawrence R. Glosten and Paul R. Milgrom, "Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders", Journal of Financial Economics 14(1), 1985, pp. 71 to 100. Read 3 November 2026. doi.org/10.1016/0304-405X(85)90044-3 (opens in a new tab)
  3. US Securities and Exchange Commission, Concept Release on Equity Market Structure, Release No. 34-61358, 14 January 2010, section IV.B.1.d, order anticipation strategies. Read 3 November 2026. www.govinfo.gov/content/pkg/FR-2010-01-21/html/2010-1045.htm (opens in a new tab)
  4. Commission Delegated Regulation (EU) 2016/522, Annex II, Section 1, point 1(d), "phishing". Read 3 November 2026. www.legislation.gov.uk/eur/2016/522/annex/II/adopted (opens in a new tab)
  5. Markus K. Brunnermeier and Lasse Heje Pedersen, "Predatory Trading", The Journal of Finance 60(4), 2005, pp. 1825 to 1863. Read 3 November 2026. doi.org/10.1111/j.1540-6261.2005.00781.x (opens in a new tab)
  6. Eric Budish, Peter Cramton and John Shim, "The High-Frequency Trading Arms Race: Frequent Batch Auctions as a Market Design Response", The Quarterly Journal of Economics 130(4), 2015, pp. 1547 to 1621. Read 3 November 2026. doi.org/10.1093/qje/qjv027 (opens in a new tab)
  7. Thomas Spooner and Rahul Savani, "Robust Market Making via Adversarial Reinforcement Learning", Proceedings of IJCAI-20, 2020, pp. 4590 to 4596. Read 3 November 2026. doi.org/10.24963/ijcai.2020/633 (opens in a new tab)
  8. US Commodity Exchange Act section 4c(a)(5)(C), 7 U.S.C. 6c(a)(5)(C), spoofing. Read 3 November 2026. www.law.cornell.edu/uscode/text/7/6c (opens in a new tab)
  9. Regulation (EU) No 596/2014 (Market Abuse Regulation), Article 12, market manipulation, and Article 15, its prohibition. Read 3 November 2026. www.legislation.gov.uk/eur/2014/596/article/12/adopted (opens in a new tab)
  10. Regulation (EU) 2023/1114 (MiCA), Article 91, prohibition of market manipulation, ESMA Interactive Single Rulebook. Read 3 November 2026. esma.europa.eu, MiCA Article 91 (opens in a new tab)

In the docsThe toxic flow framework

Find out if your bot can be read before anyone tries.

Our toxic flow red team runs the fingerprint test and shadow mode on your own market maker before launch, authorized in writing, with findings delivered privately.

Onchain Bureau

Book a meeting.

30 minutes on Google Meet · Paris time

Checking the calendar…

Available dates and times will appear here.