Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Quant AI

Awesome

A curated list of awesome resources for quantitative investment and trading strategies focusing on artificial intelligence and machine learning applications in finance.


Investment Research: The Complete Map

Your edge: which layer do you understand better than consensus?

⭐ Beyond curated links, this project includes an original 11-chapter strategy guide with runnable Python implementations and research notes on regime detection and AI-agent trading.


Contents

Introduction

Quantitative investing uses mathematical models and algorithms to determine investment opportunities. This repository aims to provide a comprehensive resource for those interested in the intersection of AI, machine learning, and quantitative finance. At its core, this field addresses three pillars:

  1. Key Challenges in Quantitative Finance:

    • Efficient Market Hypothesis (EMH): Balancing the tension between market efficiency and exploitable inefficiencies through rigorous statistical testing.
    • Factor Validity: Identifying persistent drivers of returns (e.g., value, momentum, quality) and assessing their decay over time due to overcrowding or regime shifts.
    • Statistical Arbitrage Limits: Quantifying theoretical profit bounds under constraints like transaction costs, liquidity gaps, and execution latency.
    • Cost Modeling: Integrating bid-ask spreads, slippage, taxes, and market impact into strategy design.
  2. AI/ML Technical Fit:

    • Predictive Modeling (Supervised Learning): Forecasting asset returns, volatility, and risk metrics using labeled data with techniques ranging from linear regression to advanced gradient-boosted trees (XGBoost, LightGBM).
    • Pattern Discovery (Unsupervised Learning): Identifying latent structures in data through asset clustering, dimensionality reduction, and anomaly detection to uncover novel factors or market regimes.
    • Sequential Decision-Making (Reinforcement Learning): Optimizing trading and execution policies through continuous environment interaction, using algorithms like PPO or DDPG to maximize risk-adjusted returns.
    • Synthetic Data Generation (Generative Models): Utilizing GANs, Diffusion Models, and other generative techniques to create realistic market scenarios for robust strategy stress-testing and data augmentation.
    • Contextual Reasoning (Large Language & Multimodal Models): Achieving a deep, semantic understanding of unstructured financial text, audio, and image data to decode complex informational alpha from filings, news, and earnings calls, far surpassing traditional sentiment analysis.
  3. Mathematical Foundations:

    • Stochastic Processes: Modeling price dynamics with Brownian motion, jump-diffusion, or fractional processes.
    • Optimization Theory: Mean-CVaR frameworks for balancing returns against tail risks.
    • Game Theory: Simulating strategic interactions among market participants (e.g., order-book competition).

Quant AI is the application of advanced computational methods to systematically extract alpha while rigorously managing risk in complex, adaptive financial systems.

Design Approach

A scientifically rational design for a quantitative trading system or strategy should adhere to the following process:

  1. Define Objectives and Constraints:

    • Specify investment goals (e.g., absolute return, relative return benchmarks, target risk levels).
    • Clearly outline risk tolerance, available capital, constraints on trading frequency, and permissible markets and financial instruments.
  2. Strategy Identification and Research (Alpha Research):

    • Theory-Driven/Literature-Based: Draw inspiration from established strategy types (e.g., statistical arbitrage, factor investing, trend following) detailed in the source material or academic/practitioner literature.
    • Data-Driven Discovery: Utilize statistical analysis, econometrics, or machine learning techniques (e.g., supervised learning for price prediction, unsupervised learning for factor discovery or regime identification, NLP for sentiment analysis) to explore data and uncover potential trading signals (Alpha).
    • Signal/Strategy Combination: Consider combining multiple, ideally weakly correlated, alpha signals or distinct strategies (e.g., within multi-factor models or multi-strategy frameworks) to enhance portfolio stability and risk-adjusted returns (e.g., Sharpe Ratio).
  3. Model Development and Calibration:

    • Formalize the core strategy logic into specific mathematical models or algorithmic rules.
    • If employing machine learning, select appropriate models (e.g., linear models, tree-based ensembles, neural networks, reinforcement learning agents) and conduct relevant feature engineering.
    • Calibrate model parameters judiciously, employing techniques (e.g., regularization, cross-validation) to mitigate the risk of overfitting the training data.
  4. Rigorous Backtesting and Validation:

    • Conduct thorough backtests using high-quality historical data that accurately reflects market conditions.
    • Realistically account for transaction costs (commissions, slippage) and potential market impact/liquidity constraints.
    • Perform out-of-sample (OOS) testing and sensitivity analyses to assess robustness. Use cross-validation where appropriate.
    • Evaluate performance using robust statistical metrics (e.g., Sharpe ratio, Sortino ratio, maximum drawdown, win rate, profit factor) and assess the statistical significance of the results. Consider methodologies like those proposed by Marcos Lopez de Prado to prevent backtest overfitting.
  5. Integrate Robust Risk Management:

    • Embed strategy-level risk controls (e.g., stop-losses, position sizing rules based on volatility or risk contribution).
    • Apply portfolio-level risk management techniques (e.g., diversification, risk parity principles, asset allocation overlays, correlation monitoring).
    • Develop contingency plans for managing exposure during extreme market events (tail risk / black swans).
  6. System Implementation and Deployment:

    • Select or develop the appropriate technological infrastructure (trading platforms, data feeds, execution systems).
    • Ensure data integrity and low-latency, reliable execution capabilities (especially critical for higher-frequency strategies).
    • Consider leveraging cloud computing resources for computationally intensive tasks (backtesting, model training) and deployment scalability.
  7. Continuous Monitoring and Iteration:

    • Post-deployment, continuously monitor live trading performance against expectations and track evolving market conditions.
    • Periodically evaluate the strategy's efficacy and diagnose potential performance degradation or alpha decay.
    • Based on monitoring feedback and ongoing research, systematically adjust, optimize, refine, or potentially retire the strategy. (Note: For AI-Agent trading paradigms, aspects of this monitoring and adaptation loop may be automated).

Quantitative Trading Strategies

Quantitative Trading Strategies

1. Statistical Arbitrage

  • Exploiting pricing inefficiencies among related financial instruments using advanced statistical models.
  • Sub-strategies:
    • Mean Reversion: Assuming asset prices will revert to their historical average.
    • Pairs Trading: Taking long and short positions in correlated securities.
    • Cointegration Analysis: Exploiting long-term price relationships.
  • Key resources:

2. Factor Investing

  • Investing in securities that exhibit characteristics associated with higher returns, such as value, momentum, or size.
  • Factors:
    • Value: Selecting undervalued stocks.
    • Momentum: Buying recent winners and selling losers.
    • Size: Investing in small-cap stocks.
    • Quality: Selecting stocks based on financial health indicators.
    • Low Volatility: Investing in stocks with lower price fluctuations.
  • Key resources:

3. High-Frequency Trading (HFT)

  • Rapid trading using powerful computers and algorithms.
  • Approaches:
    • Market Making: Providing liquidity by simultaneously placing buy and sell orders.
    • Latency Arbitrage: Exploiting tiny price discrepancies.
    • Order Flow Prediction: Anticipating and acting on order flow patterns.
  • Key resources:
    • Hummingbot - Open-source framework for running market-making and arbitrage bots on centralized and decentralized exchanges.

4. Trend Following

  • Trading based on the continuation of price trends.
  • Methods:
    • Moving Averages: Using price averages to identify trends.
    • Breakout Trading: Entering positions when prices move beyond support/resistance levels.
    • Momentum Indicators: Using technical indicators to measure price velocity.
  • Key resources:
    • Time Series Momentum by Moskowitz, Ooi, and Pedersen - The seminal evidence for trend persistence across 58 futures markets.
    • pysystemtrade - Robert Carver's open-source systematic futures trading framework implementing his book's methodology.

5. Volatility Trading

  • Strategies focused on market volatility rather than directional moves.
  • Methods:
    • Options Pricing: Using volatility models for options valuation.
    • Volatility Arbitrage: Exploiting differences between implied and realized volatility.
  • Key resources:
    • Deep Hedging by Buehler, Gonon, Teichmann, and Wood - Reinforcement learning for hedging derivatives under transaction costs, beyond Black-Scholes assumptions.

6. Risk Parity

  • Allocating capital based on risk, balancing the contributions of different assets to overall portfolio volatility.
  • Implementation:
    • Balancing Risk Contributions: Across different asset classes.
    • Leveraging Lower-Risk Assets: To achieve the desired risk/return profile.

7. Quantitative Macro Strategies

  • Trading based on macroeconomic factors and global market trends.
  • Approaches:
    • Global Macro: Trading based on broad economic trends.
    • Asset Allocation: Dynamically adjusting portfolio composition based on market conditions.

8. Event-Driven Strategies

  • Trading based on specific events or news.
  • Examples:
    • Merger Arbitrage: Trading around M&A activities.
    • Earnings Announcements: Trading based on financial report releases.
    • Economic Data Releases: Trading on macroeconomic news.
  • Key resources:

9. Machine Learning and AI Strategies

  • Utilizing AI to improve human decision-making processes and improve investment strategies. Deploying algorithms to analyze vast datasets and enhance the accuracy and efficiency of financial models.
  • Techniques:
    • Supervised Learning: Predicting outcomes using labeled data.
    • Unsupervised Learning: Discovering hidden patterns in data.
    • Reinforcement Learning: Learning optimal strategies through environment interaction.
    • Natural Language Processing (NLP): Analyzing text data for trading signals.
  • Key resources:
    • machine-learning-for-trading - Stefan Jansen's companion code to his book: 150+ notebooks covering the full ML4T workflow from data to deployment.

10. Multi-Strategy Approach

  • Combining multiple strategies to diversify and enhance performance.
  • Examples:
    • Multi-Factor Models: Integrating multiple factors in a single strategy.
    • Strategy Allocation: Dynamically allocating capital across various quantitative strategies.

Trading Paradigms Comparison

Comparing three major approaches to quantitative trading: Quantitative Trading, Algorithmic Trading, and AI-Agent Trading.

Feature Quantitative Trading Algorithmic Trading AI-Agent Trading
Decision Process Static rules based on mathematical models and historical data Predefined algorithmic logic with optimization mechanisms Autonomous learning and decision-making agents adapting to environment changes
Adaptability Low, requires manual parameter and rule adjustments Medium, self-adapts through parameter optimization High, real-time learning and adaptation to market conditions
Learning Capability None or limited Based on supervised learning or parameter optimization Autonomous learning and exploration, improving strategies through reinforcement learning
Transparency High, clear and explainable rules Medium, higher algorithm complexity but traceable Lower, decision processes may be "black box"
Risk Management Fixed rule-based risk control Built-in algorithmic risk control mechanisms Dynamic risk assessment and adaptive risk management
Data Dependency Relies on specific types of historical data Strong dependency on multiple data sources Can process multi-dimensional, unstructured data including real-time feedback
Typical Applications Trend following, mean reversion, fundamental quantitative analysis Statistical arbitrage, high-frequency trading, factor models Adaptive trading systems, hybrid strategy optimization, multi-objective decision making

Frontier: Emerging Topics (2025/2026)

LLM-Based Trading Agents

Multi-agent systems using large language models in specialized roles (analyst, trader, risk manager) to collaboratively process unstructured data and make trading decisions — representing a shift from fixed-rule systems toward autonomous, adaptive trading.

  • TradingAgents - Multi-agent LLM trading framework simulating trading firm dynamics with specialized analyst and trader roles; built with LangGraph, supports GPT, Gemini, Claude, and Grok.
  • FinRobot - Open-source AI agent platform for financial analysis using LLMs with Financial Chain-of-Thought reasoning and smart scheduler for multi-source LLM integration.
  • FinGPT - Open-source financial LLM framework with data-centric design and LoRA fine-tuning; supports sentiment analysis, robo-advising, and algorithmic trading.
  • FinRL - Financial reinforcement learning framework supporting A2C, DDPG, PPO, TD3, SAC agents; FinRL-X adds modular infrastructure for the LLM/agentic AI era.
  • Vibe-Trading - Natural-language multi-agent finance research framework with 29 swarm presets (investment committee, quant desk, risk committee); 7 cross-market backtest engines (A-shares/US/Crypto/Futures/Forex/Options) plus a shared-capital CompositeEngine; 5-source auto-fallback data layer (tushare/okx/yfinance/akshare/ccxt); 17-tool MCP server for Claude Desktop; CLI + FastAPI + React frontend.
  • oracle3 - Autonomous prediction-market trading agent for Kalshi, Polymarket, and Solana DFlow using Wang Transform pricing, Greeks, Kelly sizing, and constraint-based arbitrage strategies; Apache-2.0 with methodology documented in a companion SSRN working paper.

Transformer Time-Series Foundation Models

Pre-trained transformer models for temporal data that can forecast time series zero-shot or few-shot — offering out-of-the-box price/volatility forecasting and regime identification without task-specific training.

  • Chronos - Amazon's pretrained time series models; Chronos-2 (120M params) handles univariate, multivariate, and covariate-informed zero-shot forecasting.
  • TimesFM - Google Research's decoder-only foundation model (200M params) pre-trained on 100B real-world time points.
  • Moirai - Salesforce's masked encoder-based universal forecasting transformer, pre-trained on LOTSA (27B observations, 9 domains); handles any frequency and any number of variates.
  • Lag-Llama - First open-source decoder-only foundation model for probabilistic time series forecasting; developed by Morgan Stanley, ServiceNow, and Mila.
  • PatchTST - Segments time series into subseries-level patches as transformer tokens, achieving quadratic reduction in attention cost while retaining local semantics.
  • TimeGPT - Production-ready foundation model trained on 100B+ data points with open-source Python/R SDK; offers zero-shot forecasting and anomaly detection via API.

AI-Driven Alpha Mining

Automating the factor-research loop itself: LLM- and RL-based systems that propose, implement, and backtest alpha factors and models with minimal human intervention.

  • RD-Agent - Microsoft's LLM-based autonomous R&D agent; its quantitative-finance mode (RD-Agent(Q)) iteratively proposes, codes, and backtests factors and models on top of Qlib.
  • AlphaGen - Reinforcement learning framework for generating formulaic alpha factors, optimizing the performance of the factor set as a whole rather than individual factors.

Financial LLM Evaluation Benchmarks

Standardized benchmarks for measuring what LLMs actually know and can do in finance — essential due diligence before trusting any model with financial analysis.

  • FinanceBench - Open-book financial QA benchmark of 10,231 questions grounded in public filings; reveals high hallucination rates in frontier LLMs answering from 10-Ks.
  • FinBen - Holistic financial benchmark spanning 36 datasets across 24 tasks including information extraction, risk forecasting, and decision-making.
  • PIXIU - Open-source financial LLM toolkit with the FLARE evaluation benchmark, instruction-tuning data, and the FinMA model family.

Diffusion Models for Synthetic Financial Data

Denoising diffusion models applied to generate realistic synthetic market data — price series, order flows, and limit order books — enabling robust stress-testing and data augmentation for data-starved financial ML.

  • DeepMarket - Transformer-based diffusion engine for limit order book simulation; generates realistic order flows conditioned on market state.
  • FinDiff - Diffusion model for generating mixed-type financial tabular data; demonstrated high fidelity for downstream tasks like fraud detection and stress testing.
  • FTS-Diffusion - ICLR 2024 scale-invariant diffusion framework for financial time series; reduces stock prediction error by up to 17.9% when used for data augmentation.

On-Chain / DeFi Quantitative Strategies

Quantitative approaches to decentralized finance: MEV extraction, AMM liquidity provision optimization, yield farming, and on-chain analytics across hundreds of chains.

  • Flashbots mev-boost - Reference implementation of proposer-builder separation (PBS) for Ethereum; core infrastructure for the MEV supply chain.
  • Flashbots rbuilder - Open-source, high-performance Ethereum MEV-Boost block builder written in Rust; supports multiple building algorithms and backtesting.
  • DefiLlama - Open-source DeFi analytics dashboard tracking TVL, yields, fees, and volumes across thousands of protocols; provides free API via defillama-sdk.
  • ultimate-defi-research-base - Curated collection of DeFi and blockchain research covering MEV, AMM design, yield optimization, and on-chain analytics.

Tools and Platforms

List of software tools and platforms used in quantitative finance.

1. Strategy Development Frameworks

Tool Strength Notes
Qlib AI-oriented quant research platform: factor library, model zoo, workflow automation Microsoft; the reference open-source platform for ML-driven quant research
OpenBB Open-source investment research terminal aggregating equity, macro, and crypto data Free CLI + SDK; large active community
LEAN Institution-grade backtesting and live-trading engine (equities, futures, options, crypto) Open-source engine behind QuantConnect
NautilusTrader High-performance event-driven backtesting and live trading Rust core with Python API; nanosecond precision
vectorbt Vectorized backtesting at scale — thousands of parameter combinations in seconds Built on NumPy/Numba; ideal for fast strategy sweeps
Backtrader Feature-rich event-driven backtesting Mature and widely taught, though maintenance has slowed
zipline-reloaded Community-maintained fork of Quantopian's Zipline Original Zipline is unmaintained since Quantopian's 2020 shutdown
pybroker Backtesting framework designed for ML-driven strategies Built-in walk-forward analysis and bootstrapped metrics
Riskfolio-Lib Portfolio optimization: mean-risk, risk parity, hierarchical clustering methods 20+ risk measures; strong documentation
skfolio Portfolio optimization with a scikit-learn-compatible API Cross-validation and hyperparameter tuning for allocation models
Ray/RLlib Distributed reinforcement learning for adaptive strategies Industry-standard RL infrastructure
ml-quant-trading A-share multi-factor research stack: 213-dim tensor factor engine, bias correction, ML baselines, Markowitz optimization Early-stage research codebase accompanying an arXiv paper; notably transparent about validation status and non-goals

2. Data Providers

Provider Key Features Use Cases
FRED 800K+ US and international macro time series, free API Macro research, regime models, rates and inflation data
yfinance Python wrapper for Yahoo Finance data Free equity/ETF/FX/crypto prices for research and prototyping
Alpha Vantage Free APIs for stock/crypto data Historical price/volume analysis
Nasdaq Data Link Premium and free structured datasets (formerly Quandl) Macroeconomic/factor data integration
Databento Institutional market data (equities, futures, options) with usage-based pricing Tick-level and order-book data for microstructure research
akshare Free Python library for Chinese market data (A-shares, futures, funds, macro) China market research; no account required
Bloomberg Terminal Institutional-grade market data High-frequency trading, ESG analytics
CoinMetrics Crypto-specific metrics On-chain transaction analysis, MEV tracking
CoinPaprika Free crypto market data (12K+ coins, 350+ exchanges) Tickers, OHLCV, historical prices. No API key for free tier
DexPaprika Free DEX data (34 chains, 30M+ pools, real-time streaming) On-chain DEX analytics, pool data, token prices. No API key
FinancialData.Net Stock market and financial data Financial analysis, data integration
FXMacroData Macroeconomic announcements, release calendars, FX, COT, commodities, and bond yields with a persistent free USD evaluation tier Global macro research, event-driven strategies, FX workflow integration
StockAInsights Institutional-grade AI-extracted SEC financial statements (not XBRL) Fundamental analysis, backtesting, screening
Adanos Multi-source market sentiment data for US stocks across Reddit, X, finance news, and Polymarket Alternative data research, event-driven signal generation, sentiment factor modeling
stock-analysis Evidence-driven A/HK/US stock and fund recap CLI that emits JSON Evidence Packs Multi-source public-data fallback for agent workflows, daily reports, and audit-ready market notes

3. Execution & Deployment

  • Interactive Brokers API - Low-latency order execution for algorithmic trading.
  • Alpaca - Commission-free algorithmic trading API with paper trading support.
  • AWS SageMaker - Cloud-based ML training and deployment for quantitative models.
  • Docker / Kubernetes - Containerization and orchestration for scalable trading systems.

4. Research Environments

  • Jupyter Notebook - Interactive strategy prototyping and data exploration.
  • Databricks - Big-data processing for alternative data streams and large-scale backtesting.

Learning Resources

Online courses, tutorials, and workshops focused on quantitative investing and machine learning in finance.

Books

Significant books in quantitative finance, algorithmic trading, and market data analysis. Each has proven invaluable for learning and applying quantitative techniques in the financial markets.

Trading Systems and Quantitative Methods

Behavioral and Historical Perspectives

  • Reminiscences of a Stock Operator by Edwin Lefèvre - Classic insights into the life and trading psychology of Jesse Livermore.
  • When Genius Failed by Roger Lowenstein - The rise and fall of Long-Term Capital Management.
  • Predictably Irrational by Dan Ariely - A look at the forces that affect our decision-making processes.
  • Behavioral Investing by James Montier - Strategies to overcome psychological barriers to successful investing.
  • The Laws of Trading by Agustin Lebron - Decision-making strategies from a professional trader's perspective.
  • Thinking, Fast and Slow by Daniel Kahneman - A classic on human decision-making and cognitive biases, crucial for understanding market behavior.
  • The Undoing Project by Michael Lewis - Chronicles the collaboration between Daniel Kahneman and Amos Tversky and their contributions to behavioral economics.

Statistical and Econometric Analysis

Mathematical Optimization and Stochastic Calculus

Portfolio Management and Financial Instruments

Volatility Analysis and Options Trading

Python and Programming

Biographies

Research Papers

Seminal and recent research that advances the field of quantitative finance.

Foundational

LLMs in Finance

Market Microstructure and Regime Detection

AI Agents for Trading

Original Research and Notes

In-depth analysis and strategy implementation guides maintained as part of this project.

Strategy Implementation (book/myquant/)

An 11-chapter quantitative trading strategy guide with runnable Python implementations — synthetic-data demos, with look-ahead pitfalls explicitly flagged:

Research Notes (think/)

Book Notes

Community and Conferences

Communities, forums, and conferences dedicated to quantitative finance and AI in trading.

Communities

  • QuantConnect Community - Active forum for algorithmic trading discussions with shared strategies and research.
  • QuantPedia - Encyclopedia of quantitative trading strategies distilled from academic research.
  • r/algotrading - Reddit community for algorithmic trading discussion and resource sharing.
  • r/quant - Reddit community for quantitative finance professionals and students.
  • Wilmott Forums - Long-running quantitative finance community with deep technical discussions.

Conferences

  • The Trading Show - Conference covering algorithmic trading, market structure, and fintech innovation.
  • QuantMinds - Global conference series covering quantitative finance, risk management, and AI applications.
  • ACM ICAIF - ACM International Conference on AI in Finance, bridging CS and finance research.

Related Lists

Contributing

Contributions are welcome — please read CONTRIBUTING.md before opening a PR.

Quick version:

  • This list is curated, not comprehensive — additions should match the bar set by existing entries in that section.
  • Prefer open-source projects, established research frameworks, or widely-used data APIs. Commercial SaaS without traction or an open-source component is usually declined.
  • Disclose affiliation if you built it.
  • Format: - [Name](url) - Brief description ending with a period. — one PR per resource, added to the most relevant section.

For questions, suggestions, or collaboration inquiries:

leoncuhk at gmail dot com


Quantitative Investment Framework

If you find this project useful, please consider giving it a star. It helps others discover these resources.

About

A curated list of awesome resources for quantitative investment and trading strategies focusing on artificial intelligence and machine learning applications in finance.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages