bazaar-quant
I wanted to understand markets and trading. What better way than in SkyBlock? In the meantime, I could make billions of coins. The stock market can wait.
I built a market-microstructure research system for Hypixel SkyBlock’s commodity exchange: a persistent API collector, liquidity-aware signal engine, crafting-graph model and replay environment. It turns visible order-book structure into estimates of fills, exit capacity and inventory risk.
- role
- Order-book collector, multi-strategy signal engine and dashboard for manual market making.
- language
- Python, FastAPI, SQLite, zstd archives. Five dependencies, no pandas, no ML.
- scale
- API book summaries collected at a configured 10-second interval; one replay day alone is 4,240 snapshots and 3.99 million books; a 2,618-recipe craft graph.
- status
- Active.
- source
- Private repository.
- paper
- Read it below · Web version
Liquidity-aware sizing
The engine estimates competition at each side of the visible order ladder, caps positions by available exit depth and limits turnover to a feasible requote rate. Applying those constraints reduces its earlier estimated hourly edge by 5.3× on recorded data.
The API publishes a limited order-book summary. These estimates use the visible liquidity and require validation against actual fills and queue behavior.
Prices linked by production
A graph of 2,618 crafting recipes supplies one-sided constraints linking outputs to ingredient costs. A convex squared-hinge objective combines those constraints with observed prices. In the reported snapshot, 289 recipes are fully priced and 167 products are affected by active penalties.
Buyer flow and inventory
On the reported replay day, adding a demand gate and sizing to estimated buyer flow raises return per cycle from 4.13% to 13.21%, while reducing capital cycled from 81.5 billion to 27.3 billion game coins. Inventory remaining at the horizon falls from 57.5% to 39.8%.
A quote-depth sweep favors a quote 5% into the spread under both tested fill models. The result provides a candidate policy for a fresh, frozen evaluation.
Execution assumptions determine whether a quoted spread becomes a useful trading opportunity.
These are retrospective simulations with no modeled market impact. Longer chronological holdouts, timestamp reconciliation and prospective manual-fill logs are needed to establish executable performance.