← All courses
10 lessons · ~20 hrsChinese-taught

CEX & DEX Trading System Architecture

Not a course on how to build an exchange, but on how to judge one. Ten lessons that give you a complete map of trading systems.

~20 hrs
10 recorded lessons
15
core services taken apart
3
DEX architectures and trust models
7
Perp DEX architecture decisions

Exchange knowledge is scattered. Interviews test the whole.

How do you design a fast matching engine? What happens to an order between placement and settlement? Who controls the keys? These questions look unrelated, but they all test the same skill: thinking in systems.

Most engineers understand their own module but cannot explain the whole or the trade-offs behind it. Now that AI can write a matching engine in minutes, that system-level judgment is what sets engineers apart.

AI can write you a matching engine. It will not make the judgment calls for you.

Keegan Lee

Why this course

01

Organized around decisions, not modules

Each lesson answers one question that shapes the whole system, such as why the ledger is the last line of defense.

02

The hidden flows, not just the happy path

A full lesson on reverse flows, side paths, and closing the state loop, where most real trading-system bugs live.

03

Three DEX designs, three trust models

dYdX v3, ApeX Pro, and dYdX v4 / Hyperliquid: ZK proofs, escape hatches, cross-chain rebalancing, and consensus matching.

04

Ends with a full architecture exercise

You are the new tech lead of a Perp DEX: seven decisions that form one decision tree.

Who it is for

  • Engineers who own one part of an exchange and want to understand the whole
  • Backend and smart-contract engineers moving into trading systems or Perp DEXs
  • Tech leads and architects who make system-level calls
  • Product managers and founders who need to understand exchange internals

What you will learn

  • A full map of an exchange: 15 core services and three main flows
  • Where matching, ledger, and risk sit in the system, and why they cannot be wrong
  • A way to evaluate any DEX: operator powers and user exit rights
  • The trade-offs behind multi-chain deposits and consensus matching in Perp DEXs

Syllabus

  1. 01

    An exchange is a funds system first

  2. 02

    Why matching sits at the center

  3. 03

    Why the ledger is the backstop

  4. 04

    Why risk lives inside the trade flow

  5. 05

    Wallets and on-chain custody

  6. 06

    Tracing the full lifecycle

  7. 07

    CEX to DEX: trust model and re-architecture

  8. 08

    Multi-chain deposits in a Perp DEX

  9. 09

    From off-chain to consensus matching: dYdX v4 and Hyperliquid

  10. 10

    Which layer you should own

How it works

  • 10 full recordings, watch any time
  • Complete written notes for every lesson
  • Student group for questions
Instructor

Keegan Lee

Founder of Soluno Lab. Senior software engineer and tech lead working on trading systems, financial infrastructure, and Web3 engineering, with 13 years of technical writing.

FAQ

Is the course in English?
No. Lessons and notes are in Mandarin Chinese.
What background do I need?
Backend or blockchain experience helps. You do not need to have built an exchange.