Welcome to Learn-Quant, your comprehensive, beginner-friendly toolkit for mastering quantitative finance, algorithmic trading, and Python programming.
A massive, curated collection of Python modules, strategies, and reference materials designed to help you:
- Master advanced strategies like Pairs Trading and Kalman Filters
- Learn high-frequency data engineering with AsyncIO
- Calculate beta, volatility, and correlation metrics
- Understand core quant concepts (Risk, Return, Derivatives, Portfolio Theory)
- Practice with realistic trading algorithms and backtesting simulators
- Learn Python from scratch: from basic loops to advanced OOP and Decorators
- Master computer science algorithms (Sorting, Searching, Graphs, DP) tailored for finance
Every folder is a self-contained lesson. Pick a topic and dive in.
UTILS - Python Basics - Numbers/— Financial math and precision.UTILS - Python Basics - Strings/— Text processing for tickers and news.UTILS - Python Basics - Control Flow/— Logic for trading rules.UTILS - Python Basics - Functions/— Building modular quant tools.
UTILS - Data Structures/— Lists, Dictionaries, Sets, and NumPy Arrays.UTILS - Algorithms - Sorting/— bubblesort, quicksort, etc.UTILS - Algorithms - Searching/— binary search, interpolation search.UTILS - Algorithms - Graph/— Shortest paths for arbitrage.UTILS - Algorithms - Dynamic Programming/— Optimization techniques.
UTILS - Advanced Python - AsyncIO/— Concurrent data fetching for high-frequency setupsUTILS - Advanced Python - OOP/— Building a scalable trading engineUTILS - Advanced Python - Decorators/— Measuring execution time and logging
UTILS - Quantitative Methods - Kalman Filter/— Dynamic hedging and noise filteringUTILS - Quantitative Methods - Statistics/— Hypothesis testing and distributionsUTILS - Quantitative Methods - Linear Algebra/— Portfolio mathUTILS - Quantitative Methods - Stochastic Processes/— Geometric Brownian MotionUTILS - Quantitative Methods - Regression/— Beta calculation and factor models
UTILS - Strategies - Pairs Trading/— Statistical arbitrage simulationUTILS - Finance - Beta Calculator/— Beta, levered/unlevered beta, upside/downside betaUTILS - Finance - Volatility Calculator/— Historical, Parkinson, Garman-Klass, EWMA volatilityUTILS - Finance - Correlation Analysis/— Pearson, rolling, EWMA, tail correlationUTILS - Black-Scholes Option Pricing/— Valuation of derivativesUTILS - Portfolio Optimizer/— Efficient Frontier and Sharpe Ratio maximizationUTILS - Monte Carlo Portfolio Simulator/— Stress testing portfoliosUTILS - Risk Metrics/— VaR, Drawdown, Sortino RatioUTILS - Technical Indicators/— RSI, MACD, Bollinger Bands implementation
UTILS - AI Development/— Chatbots and simple market predictorsUTILS - Sentiment Analysis on News/— Natural Language Processing for tradingUTILS - Websocket Connection/— Real-time exchange streaming
- Aspiring Quants: Bridge the gap between theory and code
- Students & Developers: Learn algorithms with a financial context
- Traders: Prototype strategies like Pairs Trading or Option Pricing
Clone the repo and install dependencies:
git clone https://github.com/MeridianAlgo/Learn-Quant
pip install -r requirements.txtNavigate to any folder and run the Python script. For example, to try Pairs Trading:
cd "UTILS - Strategies - Pairs Trading"
python pairs_trading.pyWe welcome contributions:
- Found a bug? Open an issue
- Want to add a strategy? Submit a Pull Request
- Learn-Quant is designed to grow with the community
Learn-Quant v1.6.0 Quantitative Finance, Algorithms, and Python Mastery. Made by MeridianAlgo