Team 011 · Optibook v107

An event-driven C++20 trading bot built for the hackaTUM Optibook simulated exchange.

How it works

  • The bot watches large resting orders in NVDA, AVGO and MU. When those prices jump, it estimates how far SNDK, NBIS and CRWV respectively will follow. It sends a price-limited immediate-or-cancel order while the follower still offers an edge. A passive exit or timed close unwinds the position.
  • Between jumps, it quotes inside eligible house walls and adjusts inventory as prices move away from their opening anchors. Orders and acknowledgments share one event loop so the bot can react to the next update immediately.
  • The order manager accounts for pending orders, enforces a 100-lot per-stock limit and a 20-message rolling one-second budget, and monitors drawdown. Its trace records the signal, order, response and fill.

Run the local demo

Install a C++20 compiler, CMake and the Cap’n Proto compiler and development libraries. Build from this directory.

cmake -S . -B build
cmake --build build -j

In one terminal start the included mock exchange. In a second terminal run the bot.

./build/mock_exchange --jump-s 8 --seconds 75
./build/bot_v107 --seconds 60

The demo uses loopback. The bot prints trading activity and writes event logs to trace/. On an authorized Optibook competition workspace, supply its existing account configuration with --optibook-file ~/.optibook.

Built With

Share this project:

Updates

Submission history