FABRKNT
← All courses
Training Mission · DIY Perp
DIY PerpEXPERT365 min800 XP

Build OpenHL CLOB — adding the matching engine

Build the openhl matching engine in Rust — a central limit order book on top of the Reth substrate. Thirteen lessons across six modules including 9 hand-traced unit tests + 3 proptest invariants on 768 random scenarios.

Course as operating doctrine · Source as primary text

Mission brief

This course is structured as a working assignment, not a content feed. Move through the lessons in order, accumulate the vocabulary, then carry the pattern back into the rest of the stack.

Start the course →13 lessons · native player
Difficulty
EXPERT
Workload
365 minutes
Reward
800 XP
Orientation
  1. 01Build OpenHL CLOB — adding the matching engine on top of the Reth substrate15 min · 50 XP
CLOB types
  1. 01Lesson 1 — CLOB newtypes, Side, OrderType25 min · 60 XP
  2. 02Lesson 2 — Order, Fill, FillResult20 min · 50 XP
Matching engine
  1. 01Lesson 3 — The Book struct and the Reverse<Price> trick30 min · 60 XP
  2. 02Lesson 4 — submit for Limit orders + match_at_level45 min · 80 XP
  3. 03Lesson 5 — submit_market — orders that take any price25 min · 60 XP
  4. 04Lesson 6 — cancel — pulling an order off the book20 min · 50 XP
Testing
  1. 01Lesson 7 — 9 hand-traced unit tests35 min · 70 XP
  2. 02Lesson 8 — 3 proptest invariants: 768 random scenarios40 min · 80 XP
Bridge integration
  1. 01Lesson 9 — LiveRethEvmBridge gets a CLOB + submit_order40 min · 70 XP
  2. 02Lesson 10 — build_payload drains pending fills25 min · 50 XP
  3. 03Lesson 11 — clob_fills_flow_into_payload — the milestone test30 min · 70 XP
Capstone
  1. 01Lesson 12 — What you built, what's still stub, where to go next15 min · 50 XP