Finance Study Path Restructure — Design

Date: 2026-04-14 Status: Approved via brainstorming session

Problem

The Finance learning path has several issues:

  1. Notes are too long for 15-20 minute focused reading sessions.
  2. Reading order is wrong — DeFi concepts come before TradFi fundamentals, so the reader learns AMMs before understanding what an order book is.
  3. No settlement or market fundamentals — the path assumes the reader knows what markets are, how trades settle, and who the participants are.
  4. Monolith notesoptions-payoffs.md combines basics + Greeks, volatility.md combines concept + LP connection, order-books-and-venues.md combines data structures + institutional design.
  5. ASCII art diagrams — several notes (especially matching-engine-system-design.md and options-payoffs.md) use ASCII art instead of proper SVGs.
  6. No second track for deep market microstructure content (Kyle, Ho-Stoll, spread decomposition) — these exist but aren’t organized into a coherent reading path.

Design

Two-Track Structure

Track A — Main Path (18 steps, 6 phases) The primary learning sequence. Each step is a 15-20 minute focused read. TradFi fundamentals first, then DeFi, then the connections between them.

Track B — Market Microstructure Deep Dive Academic models and interview-prep material. Can be read after Track A Phase 1b, or interleaved. Longer, more mathematical sessions.

Track A: Main Path

Phase 1a: Market Fundamentals (2 steps)

StepNoteStatusCovers
1market-fundamentalsNEWWhat is a market, asset classes (equity, fixed income, derivatives, crypto), market participants (buy-side, sell-side, exchanges, clearinghouses), why markets exist
2settlement-and-clearingNEWTrade lifecycle (execution → clearing → settlement), T+1/T+2, DvP, CCP role, netting, fails. Connects later to DeFi’s atomic settlement.

Phase 1b: Market Structure (4 steps)

StepNoteStatusCovers
3trading-fundamentalsEXISTS (244 lines, keep as-is)Bid-ask spread, maker/taker, adverse selection, market maker P&L, historical context
4volatilitySPLIT (keep concept half)What vol is, realized vs implied, annualizing, VRP, rolling windows, volatility clustering, estimators. Remove LP connection → lp-as-short-vol. ~150 lines.
5order-booksSPLIT from order-books-and-venuesCLOB structure, matching engine mechanics, order types, quoted vs effective spread, depth/resilience, queuing theory. ~175 lines.
6glosten-milgrom-modelEXISTS (208 lines, keep as-is)Formal adverse selection model

Phase 2: Options (2 steps)

StepNoteStatusCovers
7options-basicsEXISTS (162 lines, already created)What an option is, calls/puts, payoff diagrams, buying vs selling, straddles, LP-as-short-straddle preview
8the-greeksNEW (from split of options-payoffs)Delta, gamma, theta/vega/rho overview, gamma P&L formula, IL-gamma connection (), short straddle vs LP comparison table. SVG diagrams for delta/gamma curves. ~175 lines.

Phase 3: DeFi Mechanics (3 steps)

StepNoteStatusCovers
9constant-product-ammEXISTS (353 lines, keep as-is)xy=k invariant, marginal/execution price, price impact, fees, geometry. Borderline length but tightly coupled math.
10bonding-curvesEXISTS (272 lines, keep as-is)General framework, curve shapes, virtual AMM, Pump.fun lifecycle
11impermanent-lossTRIM (378 → ~300 lines)Core derivation stays. Trim “Connection to Options” and “IL Is an Adverse Selection Cost” sections to 2-3 sentence pointers → lp-as-short-vol and microstructure notes handle those connections.

Phase 4: LP Economics (2 steps)

StepNoteStatusCovers
12lp-profitabilityEXISTS (246 lines, keep as-is)Fee income model, break-even formula, profitability quadrant, dynamic considerations, market-maker analogy
13lp-as-short-volNEW (from split of volatility + impermanent-loss + options-payoffs)The IL↔σ² connection, break-even vol as LP’s implied vol, full short-straddle mapping table, when fees beat IL as a vol question. ~100 lines.

Phase 5: MEV (3 steps)

StepNoteStatusCovers
14blockchain-transaction-lifecycleTRIM (348 → ~270 lines)Steps 1-5 lifecycle, Ethereum vs Solana comparison. Move MEV bot pseudocode (lines 171-248) to mev-fundamentals.
15mev-fundamentalsEXISTS + GROW (192 → ~270 lines)MEV taxonomy + MEV bot pseudocode (moved from lifecycle note)
16sandwich-attacksEXISTS (276 lines, keep as-is)Plain English + formal math + Pump.fun vulnerability

Phase 6: Capstone (1 step)

StepNoteStatusCovers
17pump-fun-economyTRIM (448 → ~350 lines)Remove duplicate AMM/LP explanatory sections (reader already knows these). Replace with 2-3 sentence summaries + wikilinks. Keep microstructure analysis, revenue model, net flow analysis, structural insights.

Venue Landscape (1 step, after Phase 1b)

StepNoteStatusCovers
18trading-venuesSPLIT from order-books-and-venuesDark pools, internalizers/PFOF, RFQ, venue landscape tables (TradFi, crypto, on-chain). ~175 lines. Optional — can be read after step 5 or skipped.

Track B: Market Microstructure Deep Dive

Prerequisite: Track A through Phase 1b (steps 1-6).

StepNoteStatusCovers
B1kyle-lambdaEXISTS (190 lines)Kyle’s 1985 model, price impact, informed trading intensity
B2ho-stoll-inventory-modelEXISTS (170 lines)Inventory-based spread model
B3spread-decompositionEXISTS (151 lines)Huang-Stoll decomposition of the spread
B4matching-engine-system-designEXISTS (555 lines)System design interview walkthrough. Longer session by design.
B5almgren-chrissFUTUREOptimal execution under market impact
B6maker-taker-economicsFUTUREFee models, rebate structures, incentive design

Note Splits Summary

OriginalBecomesAction
order-books-and-venues.md (348)order-books.md (~175) + trading-venues.md (~175)Split at line 165 (dark pools boundary)
options-payoffs.md (338)options-basics.md (162, exists) + the-greeks.md (~175)options-basics already created. Write the-greeks from Greeks section of old note.
volatility.md (266)volatility.md (~150) + lp-as-short-vol.md (~100)Keep concept half, move LP connection to new note

Note Trims Summary

NoteFromToWhat moves out
blockchain-transaction-lifecycle.md348~270MEV bot pseudocode → mev-fundamentals
impermanent-loss.md378~300Options connection + adverse selection connection → pointers to lp-as-short-vol + microstructure notes
pump-fun-economy.md448~350Duplicate AMM/LP explanatory sections → wikilink summaries

New Notes to Create

NoteLocationContent source
market-fundamentalsmarket-microstructure/NEW content — research prompt needed
settlement-and-clearingmarket-microstructure/NEW content — research prompt needed
the-greeksderivatives-pricing/Extracted from options-payoffs.md Greeks section + new SVG diagrams
lp-as-short-voldefi-markets/Extracted from volatility.md + impermanent-loss.md + options-payoffs.md LP connection sections
order-booksmarket-microstructure/Extracted from order-books-and-venues.md first half
trading-venuesmarket-microstructure/Extracted from order-books-and-venues.md second half

Visual Strategy

Every math-heavy note gets at least one static chart showing the key shape, so the reader never has to imagine a curve from a formula alone. Notebooks provide interactive exploration (sliders, simulations). Manim animations are reserved for multi-step processes where seeing the transition builds understanding a still frame cannot.

Four categories of visuals:

Category 1: Architecture Diagrams — SVG in notes only

Static boxes-and-arrows. No animation adds value. Rendered by graphviz or svgwrite scripts in docs/diagrams/.

DiagramNoteTool
High-level architecture (Gateway → Sequencer → Engine → outputs)matching-engine-system-designgraphviz
Data flow between stages (ring buffers, journal, consumer cursors)matching-engine-system-designgraphviz
Order book data structure (SortedDict + deque layout)matching-engine-system-designsvgwrite
Instrument partitioning (Sequencer → Partitioner → N engines)matching-engine-system-designgraphviz
Failover (primary/standby + journal replication)matching-engine-system-designgraphviz
Market data feeds (L1 vs L2/L3, snapshot + incremental)matching-engine-system-designgraphviz
Transaction lifecycle flow (wallet → mempool → block producer → chain)blockchain-transaction-lifecyclegraphviz
Sandwich attack pool state (3 steps with reserve changes)sandwich-attackssvgwrite

Count: 8 SVGs

Category 2: Function Shape Charts — static SVG in note + interactive in notebook

The note shows the shape (matplotlib render script → SVG). The notebook lets the reader drag sliders. The note should not require opening the notebook to understand the concept.

ChartNoteNotebookWhat it shows
Hockey stick payoffs (call + put)options-basicscode/options-basics/Flat then linear — the fundamental option shape
Short straddle P&L (inverted V)options-basicscode/options-basics/Max profit at strike, losses both directions
Delta curve (S vs Δ for call and put)the-greekscode/the-greeks/Sigmoid, ATM ≈ 0.5, deep ITM → 1, deep OTM → 0
Gamma curve (S vs Γ)the-greekscode/the-greeks/Peaked at ATM, near zero deep ITM/OTM
IL vs short straddle overlaylp-as-short-volcode/the-greeks/Where analogy holds (near strike) and diverges (tails)
IL curve (r vs IL%)impermanent-losscode/defi-impermanent-loss/The sech shape, symmetric in log-price
Break-even frontier (σ vs V_d/L)lp-profitabilitycode/defi-lp-profitability/Boundary between profitable and unprofitable zones
Constant-product hyperbola with tangent/secantconstant-product-ammcode/defi-constant-product-amm/xy=k curve; tangent = marginal price, secant = execution price
Price impact: AMM vs Kyle linearconstant-product-ammcode/defi-constant-product-amm/α/(1+α) vs α — the concavity
Bonding curve shapes overlaidbonding-curvescode/defi-bonding-curves/Linear, quadratic, exponential, virtual AMM

Count: 10 SVGs (rendered by matplotlib scripts in docs/diagrams/)

Category 3: Manim Animations — for multi-step processes

Rendered as MP4 in animations/, embedded or linked from notes. Reserved for concepts where watching the transition builds understanding.

AnimationNoteWhy animation helps
Market order walking the bookorder-booksDepth levels consumed one-by-one; reader sees why effective spread > quoted spread
Reserve rebalancing as price movesimpermanent-lossArbitrageurs trade as external price shifts; X shrinks, Y grows. The mechanism, not just the formula.
Delta shifting with pricethe-greeksTangent line on payoff curve slides as S moves. Delta is the slope; watching it change makes gamma visceral.
Sandwich attack sequencesandwich-attacks3-beat: (1) initial pool state, (2) bot front-runs → reserves shift → price rises, (3) victim buys at worse price, (4) bot back-runs → profit extracted
Bonding curve lifecyclebonding-curvesTokens minted along curve, SOL accumulating in reserve, then graduation → transition to AMM pool. Two phases as one continuous motion.
Fee vs IL racelp-profitabilityPrice path over time with two counters: cumulative fees (climbing steadily) vs cumulative IL (spiking on big moves). The race plays out live.

Count: 6 manim animations

Category 4: Notebook-only interactive charts

Value is in dragging sliders, not looking at a fixed image. No static SVG or manim version needed.

  • Break-even calculator (fee/volume/TVL sliders) → code/defi-lp-profitability/
  • Profitability heatmap (σ × V_d/L) → code/defi-lp-profitability/
  • Rolling volatility window explorer → code/volatility/
  • GBM price path simulator → code/defi-lp-profitability/
  • Fee accumulation over trade sequence → code/defi-constant-product-amm/

Visual totals

CategoryToolCountLocation
Architecture diagramsgraphviz/svgwrite8docs/diagrams/ → note diagrams/ subdirs
Function shape chartsmatplotlib10docs/diagrams/ → note diagrams/ subdirs
Process animationsmanim6animations/
Interactive explorationAltair/Plotly in notebooks~5code/*/notebook.py (existing or new)
Total~29

Study Guide Rewrite

Rewrite 2 - Areas/Finance/study-guide.md to reflect the new two-track structure. Include:

  • Track A overview with 6 phases, 18 steps
  • Track B overview with prerequisites and reading order
  • Per-step: note link, notebook link (if any), estimated time, focus points, “you’re ready when” checkpoints
  • Tips section (read note first then notebook, use sliders, skip math on first pass)

After splits:

  • All references to [[order-books-and-venues]] in other notes need updating to [[order-books]] or [[trading-venues]] depending on context
  • All references to [[options-payoffs]] need updating to [[options-basics]] or [[the-greeks]]
  • The reading order callout in constant-product-amm.md needs rewriting for the new path
  • code/index.md needs updating for any new/renamed notebooks
  • derivatives-pricing/_index.md needs updating

Old Files to Delete

After all content is migrated:

  • order-books-and-venues.md (replaced by order-books.md + trading-venues.md)
  • options-payoffs.md (replaced by options-basics.md + the-greeks.md)

Implementation Order

  1. Note splits — mechanical extraction, low risk
    • order-books-and-venuesorder-books + trading-venues
    • options-payoffs → verify options-basics + write the-greeks
    • volatility → trim to concept + write lp-as-short-vol
  2. Note trims — remove duplicate content, add wikilinks
    • blockchain-transaction-lifecycle — move MEV bot pseudocode out
    • impermanent-loss — trim options/adverse-selection connections
    • pump-fun-economy — replace duplicate AMM/LP sections with links
  3. New content (research prompts needed for first two)
    • market-fundamentals — research prompt → write
    • settlement-and-clearing — research prompt → write
    • the-greeks — extracted + new SVG diagrams
    • lp-as-short-vol — extracted + IL-vs-straddle overlay chart
  4. Architecture diagrams (8 SVGs, graphviz/svgwrite)
    • Matching engine: HLA, data flow, order book structure, partitioning, failover, market data feeds
    • Blockchain lifecycle: transaction flow
    • Sandwich attacks: pool state sequence
  5. Function shape charts (10 SVGs, matplotlib)
    • Options: hockey sticks, straddle P&L, delta curve, gamma curve
    • DeFi: IL curve, hyperbola with tangent/secant, price impact, bonding curve shapes, break-even frontier
    • Connection: IL vs short straddle overlay
  6. Manim animations (6 animations)
    • Market order walking the book
    • Reserve rebalancing (IL mechanism)
    • Delta shifting with price (gamma visualization)
    • Sandwich attack sequence
    • Bonding curve lifecycle (mint → graduate → AMM)
    • Fee vs IL race
  7. Study guide rewrite — depends on all notes existing
  8. Wikilink cleanup — final pass after all renames/splits
  9. Delete old files — after verifying all content migrated
    • order-books-and-venues.md
    • options-payoffs.md

Sharpe Ratio

Skipped. One-paragraph concept that fits as a sidebar in the volatility note. Adding a dedicated step would slow the path without adding value. If a portfolio theory track is needed later, that’s a separate concern.