Performance attribution
∞structuralWhere did the P&L actually come from: spread, signal, rebate, or luck? Attribution splits a market maker’s return into its sources so you fix the right thing.
The idea
What this shows. The net +3.7 bps says "fine, keep going"; the decomposition says where to work. Gross spread is healthy at +9.0, but more than half is given back to adverse selection (−5.5), so the highest-value fix is a better fair value and faster cancels, not more spread. Slice the same net by hour and a −1.5 bp toxic midday hides inside a profitable day – gate it off and net rises toward +5 bps with no new signal.
What is performance attribution and why does it matter?
Performance attribution splits total P&L into the sources that produced it. A single P&L figure cannot be diagnosed; a decomposition can. "We made £40k" becomes "we earned £90k of spread, leaked £35k to adverse selection and £15k to our own impact", and each leak suggests a fix.
The same net P&L can come from healthy spread capture with light leakage, or from huge spread capture almost entirely eaten by adverse selection. Those two books need opposite interventions, and only the line items tell them apart.
The idea comes from portfolio management. Brinson and Fachler (1985) and Brinson, Hood and Beebower (1986) split a fund's return into allocation and selection effects. Trade-level HFT attribution borrows the logic but decomposes by fill rather than by sector: where did each fill earn or lose money, and why? It is the step that turns measuring a strategy into improving it. A profitable book can hide a loss-making venue, symbol or hour behind the winners, and only decomposition surfaces it.
What are the sources of a market-making book's P&L?
A passive book's P&L splits into spread capture (revenue), adverse selection (the main cost), the market impact of your own aggressive trades, signal alpha and fees net of rebates.
The real-world benchmark is Menkveld (2013), who followed one large HFT firm trading Dutch index stocks on Euronext and Chi-X. It was passive on four of every five trades, earned on the spread and lost on its inventory positions. Working-paper figures put the spread profit net of fees at about €1.55 a trade, against a positioning loss of about €0.68, for roughly €0.88 net. That is this decomposition in miniature.
Spread capture is gross revenue: when a passive order fills, you earn the gap between fill price and the mid at that moment, roughly half the spread, measured as . Adverse selection is the counterpart. Glosten and Milgrom (1985) explain why the spread must cover losses to better-informed traders, and Glosten and Harris (1988) estimate how much of the spread is that component. Your passive order fills because someone informed is hitting it, and the price then moves against your new position. The standard estimator is the mark-out, the mid at the fill compared with the mid a short horizon later (100ms, 1s, 10s; report several). For a market maker, spread capture minus adverse selection is the real revenue. The deeper treatment is in spread vs adverse selection and adverse selection.
Own market impact is different: when you cross the spread or post aggressively, your order moves the price. Attribute it by comparing the VWAP of aggressive fills with the pre-trade mid (see market impact). Signal alpha is what a predictive signal added over a signal-off baseline, the counterfactual P&L of the same fills without the signal-driven skew. Stoikov's (2018) micro-price and the order-flow imbalance of Cont, Kukanov and Stoikov (2014) are typical signals of this kind. The baseline separates "did the model help?" from "did we earn the spread anyway?". Fees and rebates are the explicit costs from transparent costs. On a rebate-capture book the line is revenue; on an aggressive book it is pure cost. Net them and attribute per venue, since fee schedules differ by venue.
How do you separate adverse selection from your own market impact?
Condition on whether you were maker or taker on each fill. Adverse selection is the price moving against your passive fills because the counterparty knew something; own impact is the price moving against your aggressive orders because you consumed liquidity. Both look like adverse price movement after a fill, but the cause, and so the fix, differs.
Tag every fill with its liquidity flag. On maker fills the post-fill mark-out measures adverse selection: someone chose to trade against your resting order, and the drift afterwards is the information they carried. On taker fills the gap between your execution VWAP and the pre-trade mid, plus the post-trade mark-out, measures your own impact, temporary and permanent (see market impact).
The fixes run in opposite directions. High adverse selection on maker fills means quotes that are too passive, too slow or priced off a poor fair value: improve the estimate (microprice), cancel faster or skew wider. High own impact on taker fills means you are trading too aggressively or too large: schedule the execution (Almgren–Chriss) or use smaller clips. A caveat remains. At HFT horizons the two blur, since an aggressive order can trigger informed responses, and the mark-out horizon is a modelling choice. Treat the split as a well-founded estimate, not an identity.
Flow toxicity gives a third angle. Easley, López de Prado and O'Hara (2012) proposed VPIN as a real-time toxicity measure, though the measure is contested: Andersen and Bondarenko (2014) re-examined it around the 2010 flash crash. Use it as an input to attribution, not a verdict.
How do you slice attribution by symbol, venue, hour and signal?
Decompose the same P&L along each operational axis. Per symbol finds the names that lose money, per venue the exchanges where fees or fills are toxic, per hour the times when the edge inverts, and per signal the predictors that actually pay. Each slice localises a leak you can fix.
Per symbol. A profitable book can have a handful of names bleeding. Rank symbols by net P&L and by P&L per unit of risk; the losers are candidates to drop, re-parameterise or quote wider, usually the fastest win on offer. Per venue. Fills, fees and adverse selection differ sharply across exchanges. A venue with a generous rebate but toxic flow can be a net loser, and only per-venue attribution shows it; see market fragmentation and maker-taker.
Per hour. Intraday seasonality is large. Wood, McInish and Ord (1985) documented elevated returns and volatility near the open and close of the NYSE session, and a market maker's spread and toxicity move with them. A 24/7 crypto venue has no open or close, but it has the same effect in session form: European morning, US afternoon and the thin overnight hours behave differently. A strategy can earn its whole edge in a few hours and lose money in the lull; a per-hour heatmap reveals it, and the fix is to trade only when the edge exists. Per signal. With several modules, attribute P&L to each by switching one off in replay and measuring the difference. Signals decay independently (alpha decay), so per-signal attribution gives early warning that a predictor has stopped paying. Real leaks are usually multi-dimensional (one symbol, on one venue, in one hour), and a one-dimensional summary hides them.
Why is attribution how you actually improve a book?
Because improvement needs a target. Attribution converts a P&L number into a ranked list of leaks, each with a concrete intervention: this venue is toxic, that symbol bleeds, this hour loses money, this signal has died.
The loop is simple. Attribute, find the largest negative line (say adverse selection on maker fills for symbol X), hypothesise a cause, make one targeted change (skew wider, change the fair-value model, drop the venue, gate by hour), then re-attribute to confirm that the line shrank without another growing. It is the day-to-day work of a quant running a live book, and what separates a deployed strategy from a one-off backtest.
Attribution also disciplines research. A new signal is worth deploying only if attribution shows it adds P&L over the existing book, the signal-off counterfactual, rather than merely showing that the book is profitable with it on. That feeds the research-to-production pipeline and stops a desk collecting signals that look additive but re-earn the same spread. As individual signals commoditise, much of the lasting advantage moves to the attribute-and-fix discipline around them (a view, not a measured result): two desks with the same signal diverge on who finds and plugs leakage fastest.
Worked example: a crypto market-making day
A crypto market-making book on one venue over one day, with illustrative figures in basis points of notional traded. It posted passively and earned roughly half-spreads on its maker fills.
Reading the lines: gross spread captured is +9.0 bps. Adverse selection (maker mark-outs) is −5.5 bps, more than half the gross spread given back, because many fills came from informed flow that moved the price against the new inventory within seconds. It is the dominant cost and the first target. Own market impact (taker fills) is −1.2 bps, from crossing the spread to manage inventory. Signal alpha (microprice skew against a signal-off baseline) is +1.8 bps, evidence that skewing quotes toward microprice-implied fair value rather than the mid earns its place. Fees and rebates net to −0.4 bps.
Adverse selection at −5.5 is by far the largest line, so the best work is a better fair-value estimate and faster cancels, not chasing more spread. Now slice by hour. The +3.7 bps net hides a +6.0 bps morning, a −1.5 bps midday (adverse selection spikes and spread is thin) and a +4.0 bps close (the desk's last block of the day, the US afternoon); the three average to +3.7 only when weighted by volume, with the busier morning and close counting for more. Gating the book off during the toxic midday window lifts the daily net toward +5 bps, somewhere between the two good windows, without a single new signal. Per-symbol attribution then shows that one altcoin pair accounts for most of the midday loss: drop it or widen it. The total said "fine, keep going". The attribution said the gross is healthy, adverse selection is the real cost, and one pair in one window is dragging the whole book.
Sources
- Menkveld, A. J. (2013). "High frequency trading and the new market makers". Journal of Financial Markets 16(4), 712–740. link
- Glosten, L. R. and Milgrom, P. R. (1985). "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders". Journal of Financial Economics 14(1), 71–100. link
- Glosten, L. R. and Harris, L. E. (1988). "Estimating the components of the bid/ask spread". Journal of Financial Economics 21(1), 123–142. link
- Brinson, G. P., Hood, L. R. and Beebower, G. L. (1986). "Determinants of portfolio performance". Financial Analysts Journal 42(4), 39–44. link; Brinson, G. P. and Fachler, N. (1985). "Measuring non-US equity portfolio performance". Journal of Portfolio Management 11(3), 73–76. link
- Cont, R., Kukanov, A. and Stoikov, S. (2014). "The price impact of order book events". Journal of Financial Econometrics 12(1), 47–88. link
- Stoikov, S. (2018). "The micro-price: a high-frequency estimator of future prices". Quantitative Finance 18(12), 1959–1966. link
- Wood, R. A., McInish, T. H. and Ord, J. K. (1985). "An investigation of transactions data for NYSE stocks". Journal of Finance 40(3), 723–739. link
- Easley, D., López de Prado, M. and O'Hara, M. (2012). "Flow toxicity and liquidity in a high-frequency world". Review of Financial Studies 25(5), 1457–1493. link; Andersen, T. G. and Bondarenko, O. (2014). "VPIN and the flash crash". Journal of Financial Markets 17, 1–46. link