Shadowell
  1. Shadowell
  2. Careers
  3. The puzzle: a priority route in

Fast trackSet 04 · Live · Self-marking

The puzzle: a priority route in

  • Careers
  • Statistics
  • Process

How this works. Solve it, email us the answer with a paragraph of working, and you skip the application review and the intro call. You go straight to the technical discussion. No CV required. No degree required. It is genuinely hard, and it is genuinely self-marking: if your numbers are right, every part comes out clean, and the second one lands on a figure you have already seen in the setup.

The setup

A venue runs a continuous double auction. You are a market maker quoting one instrument. In any given second, exactly one of three things happens:

  • With probability 0.02, an informed trader arrives. They always trade in the direction of the true value, and immediately after they trade, the mid moves 8 basis points against you.
  • With probability 0.18, an uninformed trader arrives. They buy or sell with equal probability and the mid does not move.
  • Otherwise nothing happens.

You quote a symmetric spread of s basis points around the mid, so you earn s/2 on each fill. You have infinite capacity and no inventory limit. Every arriving trader trades with you.

Part one

What is the minimum spread s at which you break even, per second, in expectation?

Part two

Now the venue introduces a queue. There are n other market makers quoting the same spread. Arriving orders fill the earliest-posted quote first. You are, on average, in the middle of the queue, so you receive a fraction 1/(n+1) of uninformed flow. Informed traders, however, are willing to sweep, so they take enough size to reach you every time. With n = 8, what is your new break-even spread?

Part three

Finally: you can pay for co-location, which puts you at the front of the queue for uninformed flow (you get all of it) but does nothing about informed sweeps. The venue charges a flat fee, quoted in basis points of the notional you trade. With n = 8 and your Part-two spread held fixed, what is the maximum fee, in basis points, at which co-location is worth buying?

What to send

Email careers@shadowell.com with the subject line Puzzle set 04 — fast track and include:

  1. Three numbers, to two decimal places.
  2. A paragraph of working. Not a derivation in LaTeX. The reasoning, in sentences.
  3. One line on where the question was ambiguous and what you assumed. This is marked.
  4. Two sentences about who you are. That is the whole application.

Ground rules, plainly

  • Use anything you like: paper, Python, a simulation, an LLM. We will ask you to reason about it live, so understand what you sent.
  • Wrong-but-well-reasoned regularly beats right-but-unexplained. We are buying the reasoning.
  • Please do not publish solutions. We rotate the set roughly every six months and we would rather keep this route open.
  • If you get stuck at part three, send parts one and two. Partial answers with good reasoning still get read by a human, and still get a reply.

A hint, because we would rather you learned something

Part three is the interesting one, and it is not really about latency. Write down your expected profit per second in both worlds as a function of the fee, and notice that the fee applies to all your flow while the benefit applies only to some of it. The answer is smaller than most people's first guess. That asymmetry is the entire reason queue position is a strategic decision rather than an engineering one, and it is exactly the calculation we ran on exhibit C.


If you want the long version of the underlying economics, read the cost of the touch first.

Terms used here

Queue position
Where your resting order sits in the priority queue at a price level. Being early is often worth more than being fast, and it is bought with modelling rather than hardware.