Speaking with Jump Trading, we learned how much they value creative approaches to stress-testing market-making strategies, and how hard it is to find a strategy’s weaknesses before real money is at risk.
Our solution, RedShift, works like a sparring partner that fights dirty: an automated “Predator” that reacts to price changes a few milliseconds faster than your strategy, picks off your stale quotes, and shows you exactly where your market-making strategy breaks.
Using an Arduino UNO Q and a Raspberry Pi 4, we simulated a live market driven by real-time Bitcoin data. On top of it, we built the Predator, which trades against your market-making strategy and exploits stale quotes the way a faster, better-informed trader would. You can adjust the Predator’s latency and choose from six textbook strategies to test. After each run, an LLM hosted on Vultr writes a security report explaining where your strategy leaked money and suggesting a fix, which we test on the same market before recommending it. We built the project with Claude Code: we wrote a detailed spec of the system, and Claude Code turned it into working code phase by phase, from the market-data recorder and exchange simulator to the dashboard and the Arduino firmware.
We had to overcome a range of hardware issues: soldering for the first time, figuring out all the wiring, getting the Raspberry Pi onto our network, and syncing data between three machines on a private network.
Our working prototype gives detailed, real-time feedback on a market-making strategy, and we checked that its results hold up: a Predator with no speed advantage earns about $0, and every run’s profits and losses add up exactly. Despite the setbacks, we connected all the hardware and got it running the way we needed, with the Pi, the Arduino and the laptop exchanging live data in real time.
We learned a lot about hardware, from soldering, flashing SD cards and networking several machines together to debugging small components on a breadboard. We also learned how to turn AI output into useful, trustworthy information, and how to use agentic AI to build faster.
With more time and funding, RedShift can become a powerful tool for evaluating market-making strategies. A stronger AI model could find and exploit far more subtle, situation-specific weaknesses. Better hardware would let us model latency across different data routes more precisely and test strategies in more extreme scenarios. The interface could also become a learning tool for beginners in quantitative trading, both for understanding how markets work and for improving their own strategies.
Built With
- arduino
- asyncio
- c++
- claude-code
- coinbase
- css3
- fastapi
- git-bundle
- html
- http
- javascript
- json
- kraken
- lightgbm
- numpy
- pandas
- python
- raspberry-pi
- scikit-learn
- sqlite
- uvicorn
- vscode
- vultr
- websockets