Analysis updated 2026-05-18
Study a real example of mean reversion trading strategy design
Learn how basket arbitrage and pairs trading were implemented in a simulated market
Reference a competition-tested approach to fair-value estimation and market making
| rmtf1111/imc-prosperity-4 | alicankiraz1/codexqb | crain99/worldcut-2026 | |
|---|---|---|---|
| Stars | 28 | 28 | 28 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 3/5 | 3/5 | 3/5 |
| Audience | researcher | developer | general |
Figures from each repo's GitHub metadata at analysis time.
This is a competition submission and analysis document rather than a runnable general-purpose tool.
This repository contains the trading code and strategy write-up for a team called rat_hunters that finished second place overall in IMC Prosperity 4, an algorithmic trading competition. The team earned a cumulative simulated profit of 1,459,764 units (called XIRECs), with the bulk coming from automated algorithmic strategies. The README is a detailed post-mortem explaining how each round was approached. The core recurring insight was mean reversion, the idea that when a price strays from its expected value, it tends to snap back, making it profitable to bet on that reversal. For each fictional product in the competition, the team identified a "fair value" price and entry thresholds, then programmed the bot to buy when the price dipped significantly below that value and sell when it rose above it. Later rounds introduced more sophisticated techniques: basket arbitrage (trading related products as a group when their combined price drifted), pairs trading (exploiting the price relationship between two correlated products), and lead-lag signals (one asset's price predicts another's future movement with a time delay). The team also ran basic market making, posting buy and sell quotes simultaneously to earn the spread, on products that didn't fit other strategies. The code is written in Python. This is a competition submission and strategy analysis document rather than a general-purpose tool, but it serves as a practical example of quantitative trading strategy design and backtesting within a constrained simulated market environment. The full README is longer than what was provided.
A second-place team's algorithmic trading code and strategy write-up from the IMC Prosperity 4 trading competition.
Mainly Python. The stack also includes Python.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.