Skip to content

All modules

Every lesson on one page, grouped by track. The level is a rough guide, not a gate.

Python Fundamentals

Numbers, strings, functions, NumPy and pandas, using market data as the running example.

Module Level Language About
Comprehensions Beginner Python Comprehensions are Python's most elegant way to transform data—replacing loops with readable, performant one-liners.
Control Flow Beginner Python Control flow structures (if/elif/else, for, while, comprehensions, break, continue) are the foundation of all algorithms.
Dates and Times Beginner Python Markets run on a calendar, not a clock. Interest accrues over days, options expire on a date, and any backtest that miscounts trading days will quietly misreport every annualised number it produces.
Essential Libraries Beginner Python A working quant leans on a small set of libraries for almost everything.
Functions Beginner Python This utility teaches Python functions - the building blocks of modular, reusable code.
Imports and Modules Beginner Python Almost every Python program begins with a few import lines.
NumPy Beginner Python Covers the NumPy primitives that appear in virtually every quant codebase — from vectorised return calculations to portfolio variance via the quadratic form.
Numbers Beginner Python This is foundational knowledge required for all quantitative finance work.
Pandas Beginner Python Covers the Pandas patterns that power real quant research pipelines — from building a synthetic OHLCV DataFrame through rolling indicators, resampling, groupby analysis, and a simple SMA-crossover backtest.
Strings Beginner Python This beginner-friendly utility introduces Python string fundamentals through hands-on examples.

Data Structures

Arrays, lists, dicts and sets, and when each one is the right container.

Module Level Language About
Arrays Beginner Python Welcome to the comprehensive guide to NumPy arrays!
Dictionaries Beginner Python This utility provides comprehensive Python dictionary operations essential for financial data organization, lookup tables, and key-value mappings.
Lists Beginner Python Lists are Python's most fundamental data structure—ordered, mutable collections used for storing time series data, portfolio holdings, transaction logs, and any sequence of values.
Tuples and Sets Beginner Python Tuples and Sets are fundamental Python data structures that complement Lists and Dictionaries.

Algorithms

Sorting, searching, graphs and dynamic programming applied to prices and orders.

Module Level Language About
Backtracking Intermediate Python Backtracking is a general algorithmic technique for solving problems by building candidates incrementally and abandoning a candidate ("backtracking") as soon as it is determined to violate the problem constraints.
Dynamic Programming Intermediate Python Dynamic Programming (DP) is an algorithmic technique for solving problems by breaking them into overlapping subproblems, solving each subproblem once, and storing the result to avoid redundant computation.
Graph Intermediate Python Graph algorithms operate on structures composed of vertices (nodes) and edges (connections).
Machine Learning Intermediate Python This module implements fundamental machine learning algorithms from scratch using only NumPy — no scikit-learn or frameworks.
Searching Intermediate Python Searching algorithms find a target value within a data structure.
Sorting Intermediate Python A comprehensive implementation of fundamental sorting algorithms with detailed explanations, complexity analysis, and performance comparisons.
String Intermediate Python String algorithms handle efficient manipulation, searching, and analysis of text data.
Tree Intermediate Python Tree data structures organise data hierarchically to enable efficient search, insertion, and deletion.

Advanced Python

Async, OOP, multiprocessing and error handling for code that has to keep running.

Module Level Language About
AsyncIO Intermediate Python In quantitative finance, speed is edge.
Context Managers Intermediate Python Context Managers are a powerful Python feature for resource management.
Decorators and Generators Intermediate Python Decorators and Generators are powerful Python features that separate professional code from beginner scripts.
Error Handling Intermediate Python Robust error handling is what separates a script that crashes overnight from a professional trading system that runs for years.
Multiprocessing Intermediate Python Python Global Interpreter Lock prevents multiple threads from executing Python bytecode at the same time.
OOP Intermediate Python Object-Oriented Programming (OOP) is essential for building scalable, maintainable trading systems and financial applications.

Quantitative Methods

Statistics, time series, stochastic processes and numerical methods, built from scratch.

Module Level Language About
Bayesian Inference Advanced Python A strategy wins 7 of its first 10 trades.
Bootstrap Advanced Python The bootstrap estimates the sampling distribution of any statistic by resampling the observed data with replacement — no normality assumption required.
Cointegration Advanced Python Cointegration: two non-stationary series whose linear combination is stationary.
Copulas Advanced Python This module demonstrates the concept of Copulas, specifically the Gaussian Copula, used in quantitative finance to model the dependency structure between multivariate random variables.
Entropy Advanced Python Entropy measures how surprised you should expect to be.
Extreme Value Theory Advanced Python Most risk models assume returns are normally distributed.
Factor Models Advanced Python Factor models explain asset returns as a linear combination of systematic factors plus a stock-specific residual.
Fourier Analysis Advanced Python A price series is a sum of waves if you are willing to look at it that way.
GARCH Advanced Python GARCH (Generalized Autoregressive Conditional Heteroskedasticity) captures volatility clustering — high-volatility days tend to follow high-volatility days.
Hypothesis Testing Advanced Python You found an edge. The average daily return of your strategy is positive, one backtest beats another, a signal seems to predict the next move.
Interest Rate Models Advanced Python Continuous-time models for the evolution of the short (instantaneous) interest rate.
Interpolation Advanced Python Markets hand you values at scattered points and questions at the points in between.
Kalman Filter Advanced Python This module provides a pure Python implementation of a 1-Dimensional Kalman Filter.
Kernel Density Estimation Advanced Python A histogram of returns looks different every time you move the bin edges.
Linear Algebra Advanced Python Linear algebra is the mathematical foundation for portfolio optimization, risk modeling, factor analysis, and quantitative finance.
Markov Chains Advanced Python A Markov chain models a system that hops between a finite set of states where the next state depends only on the current one — never on the full history.
Monte Carlo Integration Advanced Python Some integrals have no tidy formula, and in high dimensions the grid methods of classical numerical analysis collapse under their own cost.
Numerical Methods Advanced Python Most of the formulas in finance cannot be solved with algebra.
Optimization Advanced Python Optimization is the mathematical engine behind modern finance.
Performance Analysis Advanced Python This module provides quantitative performance metrics to evaluate risk-adjusted returns and the quality of investment strategies.
Principal Component Analysis Advanced Python PCA finds the orthogonal directions that explain the most variance in a dataset.
Regime Detection Advanced Python Identifies distinct market states (bull/bear, low/high volatility) using statistical methods.
Regression Analysis Advanced Python Regression analysis is the statistical "Swiss Army Knife" of quantitative finance.
Statistics Advanced Python This utility provides comprehensive statistical analysis tools essential for quantitative finance, risk management, and investment analysis.
Stochastic Processes Advanced Python Stochastic processes are mathematical models for random systems evolving over time.
TVM Advanced Python This utility provides comprehensive Time Value of Money (TVM) calculations essential for financial analysis, investment evaluation, and capital budgeting.
Time Series Advanced Python This utility introduces core time-series techniques used in quantitative finance.

Options, Derivatives & Finance

Option pricing and Greeks, bonds and yield curves, valuation and sizing.

Module Level Language About
Advanced Options Pricing Intermediate Python This module covers advanced mathematical techniques for pricing financial derivatives.
Black-Scholes Option Pricing Intermediate Python This module lets you price basic stock options (calls and puts) using the Black-Scholes formula, a foundation of modern financial analysis.
Bond Price and Yield Intermediate Python This utility lets you calculate the fair price of a bond or estimate its yield to maturity (YTM), two of the most basic (and important!) ideas in investing.
CAPM Intermediate Python CAPM is the idea that won a Nobel Prize and still anchors how the industry thinks about return and risk.
Discounted Cash Flow (DCF) Intermediate Python This tool calculates the present value of a series of future cash flows—the basic principle behind valuing businesses, real estate, projects, and stocks!
Dividend Tracker Intermediate Python This tool lets you track upcoming dividends for a list of stocks, calculate expected income, and view a dividend calendar.
Beta Calculator Intermediate Python Beta measures how much a stock or portfolio moves compared to the overall market.
Correlation Analysis Intermediate Python Analyze correlations between financial instruments for portfolio construction and risk management.
Covariance Estimation Intermediate Python Sample covariance is noisy and often poorly conditioned with many assets.
Credit Risk Intermediate Python The Merton (1974) structural credit model treats a firm's equity as a call option on its assets.
Duration Convexity Intermediate Python Fixed income sensitivity measures that quantify how bond prices respond to changes in interest rates.
Exotic Options Intermediate Python Monte Carlo pricing for path-dependent options that have no simple closed-form solution (or where the path matters, not just the terminal price).
Expected Shortfall Intermediate Python Expected Shortfall (ES), also called Conditional Value at Risk (CVaR), measures the expected loss given that losses exceed the VaR threshold.
FX Tools Intermediate Python Core analytics for foreign exchange markets: no-arbitrage pricing, option valuation, and cross-rate calculations.
Greeks Calculator Intermediate Python The Options Greeks measure the sensitivity of an option's price to changes in underlying market parameters.
Implied Volatility Surface Intermediate Python Black-Scholes turns volatility into a price.
Kelly Criterion Intermediate Python The Kelly Criterion determines the optimal fraction of capital to allocate to maximize the long-run geometric growth rate of wealth.
Options Strategies Intermediate Python Options strategies combine multiple option legs (calls and puts at different strikes and expiries) to create specific risk/reward profiles.
Position Sizing Intermediate Python Position sizing is the most underrated skill in quantitative trading.
Transaction Cost Analysis Intermediate Python Tools for measuring execution quality and estimating market impact.
Volatility Calculator Intermediate Python Calculate various volatility metrics for financial instruments.
Yield Curve Intermediate Python The yield curve is the most closely watched chart in global finance.
Monte Carlo Simulation - JavaScript Intermediate JavaScript A pure JavaScript Monte Carlo engine for portfolio simulation and European option pricing via geometric Brownian motion (GBM).
Options Chain Simulator Intermediate Python This tool lets you simulate and explore options chains for a given stock.
Options Pricing - Binomial Tree Intermediate Python Black-Scholes hands you a price but hides the mechanics and cannot value an American option — one you may exercise before expiry.
Options Pricing - JavaScript Intermediate JavaScript A pure JavaScript implementation of the Black-Scholes European options pricing model with all five Greeks and implied volatility via bisection.
Technical Indicators Intermediate Python, JavaScript This tool lets you calculate and visualize common technical indicators (SMA, EMA, RSI, MACD) for any price series.

Risk & Performance

VaR, drawdowns and the ratios used to judge whether a track record is any good.

Module Level Language About
Calmar Ratio Intermediate Python The Sharpe ratio judges a strategy by how much its returns wobble around their average.
Information Ratio Intermediate Python When a portfolio is judged against a benchmark, what matters is how much it beat the benchmark by — and how reliably.
Jensens Alpha Intermediate Python Beta tells you how much of a portfolio's return came from simply riding the market.
Omega Ratio Intermediate Python The Sharpe ratio squeezes a whole return distribution into a mean and a standard deviation, which throws away everything interesting about its shape.
Performance Attribution Intermediate Python Brinson decomposition splits portfolio active return into allocation and selection effects — answering "did we beat the benchmark by picking the right sectors or the right stocks?"
Treynor Ratio Intermediate Python The Sharpe ratio divides excess return by total volatility, which mixes two very different kinds of risk.
Risk Metrics Intermediate Python This module gives you quick, professional stats about risk in any list or array of investment returns.
Risk Metrics - Drawdown Analysis Intermediate Python Comprehensive drawdown metrics for quantifying portfolio loss risk over time.
Risk Metrics - JavaScript Intermediate JavaScript Every number in this file answers the same question from a different angle.
Risk Metrics - Stress Testing Intermediate Python Stress tests answer: "What happens if 2008 repeats?" or "How big a shock kills the portfolio?" Required by Basel III, CCAR, and most institutional risk frameworks.
Sharpe and Sortino Ratio Intermediate Python This utility offers easy-to-use Python functions to calculate Sharpe and Sortino ratios for financial returns.
Value at Risk (VaR) Intermediate Python Value at Risk is the single most widely quoted number in financial risk management.

Portfolio Management

Mean variance, risk parity, Black Litterman and other ways to size a book.

Module Level Language About
Monte Carlo Portfolio Simulator Advanced Python This utility helps you forecast possible futures for a portfolio using random simulations—a key idea in finance, risk management, and statistics!
Portfolio Analytics - JavaScript Advanced JavaScript A portfolio is not the sum of its holdings, and the whole of portfolio theory follows from that one fact.
Portfolio Management Advanced Python This folder contains utilities for portfolio management, risk analysis, and investment optimization.
Black Litterman Advanced Python The Black-Litterman (1990) model addresses the instability of mean-variance optimization by blending market equilibrium returns with investor views using Bayesian updating.
Hierarchical Risk Parity Advanced Python Markowitz optimisation needs the inverse of the covariance matrix, and the inverse of a noisy matrix is mostly noise.
Risk Parity Advanced Python Risk parity builds a portfolio where every asset contributes the same amount of risk to the total — not the same amount of capital.
Portfolio Optimizer Advanced Python This utility helps you find the best mix of assets for a portfolio, balancing risk and return using the foundation of Modern Portfolio Theory (MPT).
Portfolio Tracker Advanced Python This utility uses the yfinance API to fetch current prices automatically.

Strategies

Signals, backtests and execution for the standard strategy families.

Module Level Language About
Order Execution Simulator Advanced Python This tool lets you simulate buy and sell orders, track a virtual portfolio, and analyze trade performance.
Backtesting Engine Advanced Python A backtest answers one question: if I had traded this rule, what would have happened? This module is a compact, honest backtester for single-asset strategies — it converts a price series and a position series into an...
Market Making Advanced Python Implementation of the Avellaneda-Stoikov (2008) continuous-time market making model.
Mean Reversion Advanced Python Mean reversion is the statistical tendency for an asset's price to return to its historical average after deviating from it.
Momentum Trading Advanced Python Momentum trading is a strategy that capitalizes on the continuance of existing trends in the market.
Optimal Execution Advanced Python A signal tells you what to own. It does not tell you how to get there.
Pairs Trading Advanced Python This module demonstrates a statistical arbitrage strategy known as Pairs Trading.
Statistical Arbitrage Advanced Python This module demonstrates a basic Statistical Arbitrage strategy, specifically pairs trading.
Trend Following Advanced Python Trend-following: ride momentum with discipline.

AI & Machine Learning

Classifiers, clustering, trees and reinforcement learning, with the leakage traps spelled out.

Module Level Language About
AI Development Advanced Python, JavaScript Command-line chatbots for Google's Gemini API, implemented in both Python and Node.js.
Learning Platform Advanced Python An all-in-one learning hub that delivers progressive Python lessons through both a guided CLI and a hostable Flask web interface.
Cross Validation Advanced Python A model scored on the data it was trained on is a student grading their own exam.
Feature Engineering Advanced Python The dirty secret of quant machine learning: the model is rarely the bottleneck.
Gradient Descent Advanced Python Gradient descent is the engine inside almost every model that learns.
K Nearest Neighbors Advanced Python Most models squeeze a training set down into a handful of parameters and then discard the data.
K-Means Clustering Advanced Python Given a few hundred stocks and their return characteristics, which ones behave alike?
Logistic Regression Advanced Python Linear regression predicts a number. Logistic regression predicts a probability — the chance an example belongs to the positive class — which is exactly the question behind "will tomorrow be an up day?", *"will this...
Naive Bayes Advanced Python Bayes' theorem tells you how to update a belief about a class label after seeing evidence.
Random Forest Advanced Python This module provides a basic implementation of a Random Forest Predictor for quantitative finance.
Support Vector Machine Advanced Python Most classifiers stop as soon as they find a line that separates the two classes.
Machine Learning Time Series Advanced Python Applying incredibly sophisticated statistical and advanced computational matrix calculating algorithms to historical sequential asset prices explicitly enables quantitative researchers to discover heavily latent non...
Reinforcement Learning Q Learning Advanced Python This module extensively covers the core mathematical algorithms necessary to construct entirely autonomous quantitative execution agents.
Sentiment Analysis on News Advanced Python This tool lets you analyze the sentiment of news headlines or short texts using a basic positive/negative word list.

Market Microstructure

Order books, spreads, liquidity and the cost of actually trading.

Module Level Language About
High Frequency Trading Advanced Python High Frequency Trading (HFT) encompasses algorithmic strategies that execute a large number of orders at extremely high speeds — typically microseconds to milliseconds.
Market Microstructure Advanced Python Market microstructure studies how trading mechanisms — the rules, protocols, and participants in a market — affect price formation, liquidity, and transaction costs.
Liquidity Measures Advanced Python Every strategy pays to trade, and the size of that bill decides whether a backtest survives contact with a real market.

Utilities & Tools

Data feeds, logging, FX conversion, calendars and other plumbing.

Module Level Language About
Core Utilities Beginner Python This folder contains core mathematical and date/time utilities that form the foundation for quantitative finance calculations.
Currency Converter Beginner Python This tool lets you convert between currencies using user-supplied exchange rates.
Data Processing Beginner Python This folder contains utilities for data processing, validation, and manipulation in financial applications.
Economic Calendar Beginner Python This tool lets you simulate and explore economic events (like FOMC meetings, CPI releases, etc.) and see how they might impact markets.
Historical Data Beginner JavaScript A Node.js script that fetches historical bars (OHLCV data) for stocks or crypto from the Alpaca Market Data API.
Logging Beginner Python, JavaScript A pair of minimal, dependency-light logging utilities implemented in both Python and JavaScript.
Market Data Beginner Python This folder contains utilities for processing, analyzing, and fetching market data for financial applications.
News Fetching Beginner JavaScript This utility provides a Google News headline scraper using the google-news-json package.
System Utilities Beginner Python This folder contains utilities for system-level operations, file management, and configuration in financial applications.
Websocket Connection Beginner Python This project provides WebSocket clients for connecting to various financial data providers, including YFLive and Finnhub.