Inspiration
Trading desks like Optiver's price one instrument off another and react within milliseconds. We wanted to see how close a team of 4 could get to that in one weekend, starting from zero on a live simulated exchange.
What it does
BuyHighSellLow is a trading bot for Optibook, Optiver's simulated exchange, trading 8 AI-infrastructure stocks against other teams' bots:
How we built it
As a team of 4, we split the work into three loops:
- Research: reading papers on market making, mean reversion and lead-lag, and testing each idea on recorded exchange data before trusting it.
- Coding: a modular Python engine (shared risk, execution and market data, with plug-in strategies), written with Claude and covered by offline tests against a fake exchange.
- Watching the live market: studying the leaderboard, trade ticker and other teams' positions, then adjusting our strategies to what the market and the exchange's rules actually allowed.
Challenges we ran into
- One connection per team: any second login silently kicks the running bot.
- Faster teams taking the obvious trades before us, which forced the "second wave" timing.
- Sudden market-wide drops that wiped out gains, and making risk controls react in time.
- Strategies that looked great in backtests (like market making) losing money live.
Accomplishments that we're proud of
- A live bot that ranked in the top 3 at several points.
- Finding a real, measurable lead-lag effect in the data, and deciding what to drop based on evidence rather than gut feeling.
- A clean, tested, modular codebase built under hackathon time pressure.
What we learned
- Backtests lie when you ignore competitors and latency; live markouts are the truth.
- Position size and risk management matter as much as the signal.
- AI-assisted coding lets a small team move fast, but understanding the market is still on us.
What's next for BuyHighSellLow
- A longer fair-value anchor across all 8 stocks.
- Avoiding buying into a market that's falling across the board.
- Fixing the position-cap and reconnect issues we found during practice.