Inspiration

Optiver's challenge put us on Optibook, a simulated exchange with eight stocks (AMD, AVGO, CRWV, MU, NBIS, NVDA, SNDK, VRT) and over 60 competing teams. The only information available to start our research process is the order book and the trade tape. We wanted to find out what actually moves these prices, and turn that into a market maker that earns the spread without getting run over.

How we built it

  • alpha-dash: a recorder that writes every book event and trade to CSV, plus a web dashboard showing order books, trades, our own fills and lead–lag between stocks. It can also start backtests and restart the live bot from the browser.
  • Backtester: an event-driven replay of our recordings. It models order latency, the exchange's limit of 25 order updates per second and queue position for passive fills. It also removes our own quotes from the data, so the replay never trades against our past selves.
  • Trading system (Python, Optibook SDK): a market maker whose fair value is the microprice, shifted by lead–lag signals and public trade flow, with a volatility-based spread and an inventory skew. One shared sender ranks orders by priority under the rate limit. After a reconnect, recovery cancels everything and rebuilds state before trading resumes.
  • Research: notebooks on lead–lag, jumps, forecasting and competitor behaviour. Every finding was fitted on one period and checked on a later one.

Challenges

  • Milliseconds matter. We cut fill polling from up to 200 ms to 20 ms, tuned Python's GIL switch interval, and reserved rate-limit slots so cancels still get through when the update window is full.
  • Exchange restarts emptied our account or left behind positions from killed runs (one cost us 379 in ten minutes). The bot now flattens all positions before it starts trading.
  • Trusting our own numbers. Since overfitting was easy, we had to double-check every result. So we stripped our quotes from the data, rebuilt PnL from our own fills and kept a hold-out period untouched.

Built With

Share this project:

Updates

Submission history