Course overview
13 modules · 44 submodules · 117 lessons · ~40.7 hours. Work top to bottom for the designed path, or jump to quant modules if you already know Rust.
Rust Foundations
BeginnerFrom zero to comfortable: mental model, printing, variables, types, functions, and control flow — with finance-flavored examples at every step.
3 submodules · 10 lessons · 3h 28m
Submodule 1.1
Getting Started
Why Rust, how programs run, and your first outputs.
- 118 min
Why Rust for Finance?
Memory safety, speed, and reliability — why quants and trading systems pick Rust over Python/C++/Java.
- 220 min
Printing & Formatting
Master println!, format!, debug {:?} prints, and numeric formatting you’ll use for prices and rates.
- 315 min
Comments, Style & Cargo Mindset
How Rust projects are organized locally, what the playground can/can’t do, and how to write readable quant code.
Submodule 1.2
Variables & Types
Immutability, scalars, inference, and casting for market data.
- 122 min
Variables, mut & Shadowing
let, mut, shadowing, and constants — immutability by default as a risk control.
- 224 min
Scalar Types Deep Dive
Integers, floats, bools, chars — choosing types for prices, sizes, and flags.
- 320 min
Tuples & Arrays Intro
Fixed-size groups of values: quote pairs, OHLC bars, and small matrices of numbers.
Submodule 1.3
Functions & Control Flow
fn, if expressions, loops, and early returns.
- 122 min
Functions & Return Values
Write reusable pricing helpers: parameters, returns, and expression-bodied functions.
- 218 min
if / else as Expressions
Branching with equal types in both arms — classify trades, regimes, and signs.
- 324 min
loop, while, and for
Iterate scenarios, days, and Monte Carlo seeds — break, continue, and ranges.
- 425 min
Module 1 Practice Lab
Capstone mini-lab: mini blotter combining variables, functions, formatting, and loops.
Ownership & Borrowing
BeginnerThe heart of Rust: moves, Clone/Copy, references, the borrow checker, and slices for market data windows.
3 submodules · 9 lessons · 3h 11m
Submodule 2.1
Ownership Core
Stack, heap, moves, and Copy types.
- 122 min
Stack, Heap & String
Where data lives, why String is different from string literals, and what Drop means.
- 224 min
Move Semantics
Assignment and function calls move non-Copy values; fix errors with clone or redesign.
- 318 min
Copy, Clone & Drop
When values duplicate cheaply, when clone is explicit, and when drop runs.
Submodule 2.2
Borrowing & References
Shared and mutable references, and the exclusive-mut rule.
- 120 min
Immutable Borrows (&T)
Read data without taking ownership — the default for helpers and metrics.
- 222 min
Mutable Borrows (&mut T)
Exclusive write access — update positions and books safely.
- 318 min
Reading Borrow Checker Errors
Hand-holding through the most common compile errors and how to fix them.
Submodule 2.3
Slices & Views
String slices and array slices for windows of prices.
- 120 min
String Slices (&str)
Views into string data — parsing symbols and message prefixes without copy.
- 222 min
Array/Slice Windows for Prices
&[T] views, slicing ranges, and SMA without copying the whole series.
- 325 min
Module 2 Lab: Quote Toolkit
Combine ownership ideas into a small quote helper library.
Structs, Enums & Pattern Matching
BeginnerModel orders, sides, and option-like states with structs, enums, match, Option, and Result — hand-held with many finance examples.
3 submodules · 9 lessons · 3h 13m
Submodule 3.1
Structs & Methods
Domain types, constructors, and methods.
Submodule 3.2
Enums & match
Alternatives, data-carrying variants, exhaustive matches.
Submodule 3.3
Result & Lab
Errors as values and a full order-ticket lab.
Data Structures for Interviews
IntermediateInterview toolkit in proper order: arrays/Vec, stdin parsing, HashMap ops, sets, sorting, stack/queue/deque, priority queues, and classic patterns.
8 submodules · 23 lessons · 7h 56m
Submodule 4.1
Arrays & Vec
Fixed arrays, dynamic Vec, indexing, and common interview ops.
- 118 min
Fixed Arrays [T; N]
Stack arrays, length in the type, and when interviews still use them.
- 222 min
Vec Interview Operations
push, pop, insert, remove, get, len, is_empty, clear — complexity and patterns.
- 320 min
Slices, windows & iteration patterns
Subarrays as slices, windows for pairs, enumerate for indices.
Submodule 4.2
Reading Input (stdin)
Ints, strings, multi-line input — competitive programming & interview I/O.
- 122 min
stdin Basics: lines & tokens
read_line, split_whitespace, parse — real stdin vs playground simulation.
- 224 min
Common Input Patterns
n then n lines; n m grid; until EOF; strings with spaces.
- 316 min
Real stdin API (copy-paste for local)
io::stdin, BufRead, fast-ish patterns you will use in contests.
Submodule 4.3
HashMap: Add, Get, Remove
The interview map — insert, update, remove, entry API, frequency maps.
Submodule 4.4
Sets: HashSet & BTreeSet
Membership, uniqueness, intersection-style problems.
Submodule 4.5
Sorting & Custom Comparators
sort, sort_by, sort_by_key, reverse, stable thinking for interviews.
Submodule 4.6
Stack, Queue & Deque
Vec as stack; VecDeque as queue and deque.
Submodule 4.7
Priority Queue (BinaryHeap)
Max-heap by default; min-heap with Reverse; top-k patterns.
Submodule 4.8
Interview Patterns Lab
Wire structures together on classic problems.
- 115 min
Structure Cheat Sheet
Which structure for which problem — memorize this table.
- 228 min
Lab: LRU Cache Sketch (HashMap + order)
Interview favorite: O(1) get/put mental model; implement a simple O(n) version then discuss O(1).
- 325 min
Lab: End-to-End Mini Problem
Parse input, count with map, sort top frequencies, use heap optional.
Collections & the Standard Library
IntermediateVec, HashMap, BTreeMap, iterators, and std tools — daily drivers for series, portfolios, and books.
3 submodules · 8 lessons · 2h 42m
Submodule 5.1
Vectors & Iterators
Dynamic arrays and iterator pipelines.
Submodule 5.2
HashMap & BTreeMap
Portfolios and ordered books.
Submodule 5.3
Collections Lab
End-to-end stats pipeline.
Error Handling, Traits & Generics
IntermediateProduction-minded errors, traits, generics, and lifetime intuition for quant APIs.
3 submodules · 8 lessons · 2h 45m
Submodule 6.1
Robust Errors
Result design and propagation.
Submodule 6.2
Traits & Generics
Shared behavior and generic functions.
Submodule 6.3
Lifetimes & Lab
Lifetime intuition and capstone.
Concurrency & Performance
AdvancedThreads, channels, Mutex/Arc, and a performance mindset for parallel Monte Carlo-style work.
3 submodules · 7 lessons · 2h 18m
Submodule 7.1
Threads & Channels
Fan-out work safely.
Submodule 7.2
Mutex & Interior Mutability
Safe shared mutation.
Submodule 7.3
Performance Lab
Mindset and practice.
Rust Ecosystem for Quants
AdvancedCargo modules, key crates map, data shapes, and testing discipline — what to use offline vs playground.
3 submodules · 7 lessons · 2h 3m
Submodule 8.1
Cargo & Modules
Project layout and modular code.
Submodule 8.2
Data & Testing
Parsing shapes and tests.
Submodule 8.3
Local Workflow
How to work offline after playground.
Quant Math Foundations
QuantReturns, volatility, covariance, correlation, RNG, and normals — pure Rust building blocks for pricing and risk.
3 submodules · 8 lessons · 2h 55m
Submodule 9.1
Returns & Volatility
From prices to risk metrics.
Submodule 9.2
Covariance & Correlation
Two-asset building blocks.
Submodule 9.3
Random Numbers
LCG and Box-Muller for teaching MC.
Derivatives Pricing in Rust
QuantNormal CDF, Black-Scholes, Greeks, and binomial trees — step-by-step with checks.
3 submodules · 7 lessons · 2h 47m
Submodule 10.1
Normals & Black-Scholes
Closed form building blocks.
Submodule 10.2
Greeks & Trees
Risk sensitivities and binomial.
Submodule 10.3
Pricing Lab
Strike sweep and parity lab.
Monte Carlo Methods
QuantGBM paths, European MC pricing, standard errors, antithetics — hand-held from first path to confidence intervals.
3 submodules · 7 lessons · 2h 32m
Submodule 11.1
GBM Simulation
Path generation under risk-neutral measure.
Submodule 11.2
Pricing & Errors
Discounted payoffs and stderr.
Submodule 11.3
Variance Reduction
Antithetics and ideas beyond.
Portfolio Construction & Risk
QuantMarks, PnL, historical VaR/ES, and two-asset mean-variance — practical risk toolkit in Rust.
3 submodules · 7 lessons · 2h 23m
Submodule 12.1
Marks & PnL
Valuation and daily PnL.
Submodule 12.2
VaR & ES
Historical risk measures.
Submodule 12.3
Mean-Variance
Two-asset frontier intuition.
Pro Systems & Capstone
QuantOrder books, pricing-engine patterns, architecture notes, and a final checklist to go pro.
3 submodules · 7 lessons · 2h 27m
Submodule 13.1
Order Book
BTreeMap-backed BBO.
Submodule 13.2
Pricing Engine
Traits and portfolio PV.
Submodule 13.3
Next Steps
Architecture and career path.