A curated list of awesome AI / machine learning / deep learning / reinforcement learning / LLM tools, frameworks, and resources for quantitative finance.
This list is maintained by the AI4Finance Foundation. If you find it useful, please give it a star🌟!
- AI4Finance Foundation Ecosystem
- LLMs for Finance
- AI Agents for Finance
- Deep Reinforcement Learning
- Machine Learning
- Quantitative Trading & Backtesting
- Data Sources
- Technical Analysis
- Portfolio Management & Risk
- Sentiment Analysis & NLP
- Quantitative Finance Libraries
- Trading Platforms
- Visualization & Rendering
- High Performance Computing
- Research Papers & Surveys
- Books
- Contributing
The AI4Finance Foundation provides a full-stack open-source ecosystem for AI-driven finance, from data to deployment.
| Project | Stars | Description |
|---|---|---|
| FinGPT | 20.4k |
Open-source financial large language models. Fine-tuning LLMs (LLaMA, ChatGLM, etc.) with financial data for sentiment analysis, robo-advising, and quantitative trading. |
| FinRL | 15.3k |
The first open-source framework for financial reinforcement learning. Full pipeline from data processing to DRL-based trading (stock, crypto, forex). |
| FinRobot | 7.2k |
Open-source AI agent platform for financial analysis using LLMs. Multi-agent architecture for report generation, analysis, and trading decisions. |
| ElegantRL | 4.3k |
Scalable and elastic deep reinforcement learning library using PyTorch. Lightweight, efficient, and cloud-native. |
| FinRL-X | 3.2k |
AI-native modular infrastructure for quantitative trading. Unifies data, strategy, backtesting, and execution. Paper |
| FinRL-Meta | 1.9k |
A universe of dynamic market environments for financial reinforcement learning. Standardized datasets for stock, crypto, and forex. |
| FinNLP | 1.5k |
Democratizing internet-scale financial data. NLP toolkit for financial news and social media data processing. |
| FinRL-Tutorials | 1.2k |
Jupyter notebook tutorials covering stock trading, portfolio allocation, crypto trading, and more. |
| FinRL-Podracer | 501 |
Cloud-based framework for massively parallel financial RL training. |
| RLSolver | 167 |
RL-based solver for combinatorial optimization problems in finance. |
- Helium MCP — Real-time news with 37-dimension bias scoring, ML options pricing, and live market data. Interactive demo · REST API
Large Language Models are transforming finance through automated analysis, report generation, and intelligent trading.
| Project | Stars | Description |
|---|---|---|
| FinGPT | 20.4k |
Open-source financial LLM framework with LoRA/QLoRA fine-tuning on financial data. |
| FinRobot | 7.2k |
AI agent platform for financial analysis using LLMs with multi-agent architecture. |
| FinGLM | 2.2k |
Open financial LLM by Zhipu AI built on ChatGLM, with annual report datasets and challenge competition code. |
| FinBERT | 2.1k |
Pre-trained NLP model to analyze sentiment of financial text. Built on BERT, fine-tuned on financial corpus. |
| FinNLP | 1.5k |
Toolkit for financial NLP with easy access to financial news and social media data. |
| XuanYuan | 1.3k |
Chinese financial chat LLM from Du Xiaoman Financial. Hundreds of billions of parameters, fine-tuned on financial domain data. |
| DISC-FinLLM | 878 |
Chinese financial LLM from Fudan University. Multi-expert fine-tuning for QA, domain NLP, math computation, and RAG-based consulting. |
| PIXIU (FinMA) | 865 |
Open-source financial LLM evaluation framework with FinMA models (7B/30B), FinBen benchmark, and 136K instruction-tuning dataset. |
| Fin-R1 | 790 |
Financial reasoning LLM based on Qwen2.5-7B, trained with SFT + RL on 60K chain-of-thought samples. SOTA on FinQA and ConvFinQA. |
| InvestLM | 153 |
Investment-focused LLM fine-tuned on LLaMA-65B using CFA exams, SEC filings, and quant finance data. Rated comparable to GPT-4 by hedge fund managers. |
Autonomous AI agents that can analyze markets, make trading decisions, and generate financial reports.
| Project | Stars | Description |
|---|---|---|
| TradingAgents | 82.4k |
Multi-agent LLM financial trading framework. Specialized agents (fundamentals, sentiment, technical) debate and reach consensus on trades. |
| ai-hedge-fund | 59.7k |
Multi-agent AI hedge fund simulator with 18 agents modeled after legendary investors (Buffett, Munger, etc.) plus specialist agents. |
| daily_stock_analysis | 40.0k |
LLM-powered A/H/US stock analysis system. Multi-source market data + real-time news + LLM decision dashboard + multi-channel push notifications. |
| Anthropic Financial Services | 29.6k |
Anthropic's official reference agents for finance: 10 specialized agents for earnings review, KYC screening, pitch generation, model building, and more. |
| TradingAgents-CN | 27.8k |
Chinese multi-agent LLM trading framework simulating professional trading firm workflows for A/HK/US markets. |
| AI-Trader | 19.1k |
Fully-automated agent-native trading platform from HKU. Cross-platform signal sync and one-click copy trading. |
| Qbot | 17.5k |
AI-powered quantitative investment research platform with 300+ models from 40+ papers, fully local deployment. |
| nofx | 12.5k |
AI trading terminal for stocks, commodities, forex, and crypto. 7 exchanges + 7 AI models competing in real-time. |
| Vibe-Trading | 9.6k |
Personal trading agent from HKU for research, simulation, backtesting, and autonomous broker-authorized trading. |
| FinRobot | 7.2k |
Open-source AI agent platform for financial applications powered by LLMs. |
| Polymarket Agents | 3.6k |
Official Polymarket framework for building autonomous AI agents that trade prediction markets. |
| AutoHedge | 3.1k |
Swarm-intelligence-powered autonomous hedge fund with Director, Quant, Risk, and Execution agents. |
| AlphaGen | 1.1k |
Generates synergistic formulaic alpha factors via reinforcement learning (KDD 2023). |
| QuantaAlpha | 1.0k |
LLM + evolutionary strategies framework for automatic alpha factor mining. |
| FinMem | 903 |
LLM-based trading agent with layered memory (short/mid/long-term) for evolving market understanding. |
| QVeris | 230 |
Capability routing network for AI agents to discover, inspect, and call 10,000+ real-world financial capabilities through one unified MCP protocol. |
| Superhighway M&A Research Agent | – | Python agent that researches comparable M&A transactions, deal multiples, potential acquirers, and recent deal activity via live web search. Generates structured M&A intelligence briefs for corporate development, PE analysts, and investment bankers. Pay-per-call, no signup. |
| NeuPortal | – | AI forecasting-accountability lab. Every AI forecast is locked pre-event, Bitcoin-timestamped via OpenTimestamps, and Brier-scored in public against prediction markets across crypto, macro, and sports. Hosted, closed-source service. |
Frameworks and libraries applying deep reinforcement learning to trading, portfolio management, and market making.
| Project | Stars | Description |
|---|---|---|
| FinRL | 15.3k |
The first open-source DRL framework for quantitative finance. Supports PPO, A2C, DDPG, SAC, TD3, and more. |
| TensorTrade | 6.3k |
An RL framework for training, evaluating, and deploying robust trading agents. |
| ElegantRL | 4.3k |
Massively parallel deep reinforcement learning using PyTorch. |
| FinRL-Trading | 3.2k |
Ensemble strategy using DRL for automated stock trading (ICAIF 2020). |
| gym-anytrading | 2.4k |
OpenAI Gym trading environment for reinforcement learning. |
| FinRL-Meta | 1.9k |
Dynamic market environments and standardized datasets for financial RL. |
General machine learning approaches for financial prediction, alpha generation, and quantitative investment.
| Project | Stars | Description |
|---|---|---|
| Qlib | 44.0k |
Microsoft's AI-oriented quantitative investment platform with full ML pipeline. Supports alpha mining, model training, and backtesting. |
| ML for Trading | 18.7k |
Code for the book Machine Learning for Algorithmic Trading. Comprehensive guide on using ML to add value to trading strategies. |
| Stock-Prediction-Models | 9.4k |
Collection of ML and deep learning models for stock forecasting, including transformers, LSTMs, and more. |
| ai_quant_trade | 5.7k |
Comprehensive AI stock trading platform covering LLMs, factor mining, ML/DL/RL, graph networks, and HFT strategies. |
| stockpredictionai | 5.6k |
Complete process for predicting stock price movements using deep learning. |
| TF Quant Finance | 5.4k |
TensorFlow-based library for quantitative finance by Google. Covers options pricing, volatility models, and more. |
| QuantsPlaybook | 5.2k |
Reproduces 100+ quantitative investment strategies from Chinese brokerage research reports. |
| MLFinLab | 4.8k |
Implementations of methods from Advances in Financial Machine Learning by Marcos Lopez De Prado. |
| Adv_Fin_ML_Exercises | 1.9k |
Experimental solutions to exercises from Advances in Financial Machine Learning. |
| AlphaPy | 1.7k |
ML framework for both speculators and data scientists. Automated feature engineering and model selection. |
| fin-ml | 1.2k |
Code for case studies in Machine Learning and Data Science Blueprints for Finance. |
| ml-quant-trading | 38 |
Paper-backed PyTorch research stack for mask-aware multi-factor modeling, ML baselines, portfolio optimization, and vectorized backtesting. |
Frameworks for algorithmic trading, strategy backtesting, and automated trading bots.
| Project | Stars | Description |
|---|---|---|
| FreqTrade | 51.1k |
Free, open-source crypto trading bot. Supports backtesting, strategy optimization, and live trading on many exchanges. |
| vnpy/VeighNa | 41.3k |
Python-based open-source quant trading platform. Multi-market gateway support for stocks, futures, options, and crypto. |
| NautilusTrader | 23.3k |
Production-grade Rust-native trading engine with nanosecond-resolution clock and Python strategy API. |
| Backtrader | 21.8k |
Feature-rich Python framework for backtesting and live trading. Supports multiple data feeds and brokers. |
| Zipline | 19.8k |
Pythonic event-driven backtesting library, originally powering the Quantopian platform. |
| QuantConnect/Lean | 19.7k |
Algorithmic trading engine built for strategy research, backtesting, and live trading. Multi-asset support. |
| Hummingbot | 18.8k |
Open-source crypto market making and arbitrage bot. Gateway to CeFi and DeFi exchanges. |
| Abu | 17.4k |
Python quant trading system supporting US/A/HK stocks, futures, options, and Bitcoin with ML-based strategy optimization. |
| QUANTAXIS | 10.6k |
Distributed quant solution for stocks/futures/options with data, backtesting, simulation, and live trading. |
| Easytrader | 9.8k |
Python stock trading automation for Chinese brokers (Tonghuashun/MiniQMT/Xueqiu). |
| Jesse | 8.0k |
Advanced algo-trading framework for crypto. Strategy development, backtesting, and live trading. |
| VectorBT | 7.8k |
Blazing fast vectorized backtesting and trading analysis using NumPy and Pandas. |
| RQAlpha | 6.4k |
Extendable Python algorithmic backtesting and trading framework from RiceQuant. |
| WonderTrader | 6.1k |
High-performance C++ core quant framework with Python layer (wtpy) for research, trading, and operations. |
| OctoBot | 6.0k |
Open-source crypto trading bot for AI, Grid, DCA, and TradingView strategies on 15+ exchanges. |
| Krypto-trading-bot | 3.7k |
Self-hosted C++ high-frequency crypto market-making bot with sub-millisecond order execution. |
| Hikyuu | 3.2k |
C++/Python ultra-high-speed quant research framework for A-share market. |
| bt | 2.9k |
Flexible backtesting framework for Python with modular algorithm stacks and portfolio-level strategy testing. |
| HFT-LOB-Trading-ML | 2.3k |
High-frequency trading strategies using ML on full order book tick data. |
| barter-rs | 2.2k |
Open-source Rust framework for building event-driven live-trading and backtesting systems. |
| Zipline-Reloaded | 1.8k |
Community-maintained fork of Zipline, compatible with modern Python. Companion to ML for Algorithmic Trading. |
| Lumibot | 1.6k |
Backtestable AI trading agents for stocks, options, crypto, futures, and forex with real broker integration. |
| AutoTrader | 1.3k |
Python-based platform for development, optimization, and deployment of automated trading systems. |
| Funcat | 1.0k |
Ports Tongdaxin/Tonghuashun financial formula syntax to Python for technical analysis (e.g., MA(C,5)). |
Tools and APIs for accessing financial market data — stocks, crypto, forex, and alternative data.
| Project | Stars | Description |
|---|---|---|
| OpenBB Terminal | 68.5k |
Open-source investment research platform. Access stock, crypto, forex, and macro data with built-in analysis tools. |
| CCXT | 42.8k |
Unified JavaScript/Python/PHP library for 100+ cryptocurrency exchange APIs. Trading and market data. |
| FinceptTerminal | 25.1k |
Modern finance terminal with advanced market analytics, investment research, and economic data tools for interactive exploration. |
| yfinance | 24.0k |
Download market data from Yahoo Finance. Stocks, ETFs, mutual funds, options, and more. |
| AKShare | 20.0k |
Elegant Python financial data interface covering A-shares, futures, options, funds, forex, bonds, indices, and crypto from authoritative Chinese sources. |
| TuShare | 15.1k |
Financial data interface for Chinese stock markets. Historical and real-time data. |
| OpenStock | 13.0k |
Free open-source market platform alternative with real-time prices, alerts, and company insights. |
| StockSharp | 10.0k |
Algorithmic trading and quantitative analysis platform. Connects to multiple brokers and exchanges. |
| FinanceDatabase | 7.8k |
Comprehensive database of 300,000+ symbols: Equities, ETFs, Funds, Indices, Currencies, and Crypto. |
| FinanceToolkit | 4.9k |
Transparent financial analysis with 150+ ratios, indicators, and performance measurements. |
| AData | 4.6k |
Free open-source A-share quant trading database with multi-source data fusion and dynamic proxy. |
| Binance | 2.9k |
Official Python connector for Binance APIs. Spot, futures, and market data. |
| ArcticDB | 2.4k |
High-performance serverless DataFrame database by Man Group for petabyte-scale time-series and tick data. |
| EdgarTools | 2.3k |
Read and analyze SEC EDGAR filings in Python (10-K, 8-K, XBRL, 13F). |
| FinRL-Meta | 1.9k |
Dynamic datasets and market environments for stock, crypto, and forex. |
| Alpaca | 1.4k |
Official Python SDK for Alpaca. Commission-free stock trading API with paper/live trading. |
| jqdatasdk | 1.3k |
JoinQuant's Python data SDK for Chinese financial market data. |
| DeFiLlama Adapters | 1.2k |
Open-source DeFi TVL calculation adapters for 2,400+ protocols across 180+ blockchains. |
| WRDS | 155 |
Python interface to Wharton Research Data Services for academic financial research. |
| The Stall | MCP server with 173 financial market data capabilities — stocks, ETFs, crypto, DeFi, options, SEC filings, earnings, analyst ratings, and macro indicators. Pay-per-call via x402 micropayments on Base; no API keys required. | |
| AgentServices | 54-service x402-paid API platform for AI agents — crypto market data, onchain analytics, financial intelligence, and inference endpoints. MCP server with 37 tools. Pay-per-call via x402 on Base; no API keys required. |
Libraries for computing technical indicators and performing quantitative analysis on market data.
| Project | Stars | Description |
|---|---|---|
| TA-Lib | 12.0k |
Python wrapper for TA-Lib. 200+ technical analysis functions: candlestick patterns, momentum, volatility, and more. |
| ta | 5.1k |
Technical analysis library using Pandas and NumPy. Includes 40+ indicators out of the box. |
| Clairvoyant | 2.4k |
Identify and monitor social/historical cues for short-term stock movement. |
| Funcat | 1.0k |
Tongdaxin/Tonghuashun financial formula syntax ported to Python (e.g., MA(C,5), CROSS(MA5, MA10)). |
- My AI Investment OS - Free 5-question diagnostic that identifies your investing school (Index/Value/Growth/Trend), delivers an 8-AI committee verdict, and generates a personalized Prompt Library. Includes 6 companion tools: DCA Simulator, Recovery Navigator, Dividend Engine, Kelly Master, Pyramid Builder, Portfolio Clarity. No login required.
Tools for portfolio optimization, risk analysis, asset allocation, and performance analytics.
| Project | Stars | Description |
|---|---|---|
| QuantStats | 7.2k |
Portfolio analytics for quants with in-depth performance metrics, risk analytics, tear sheets, and HTML reports. |
| Pyfolio | 6.3k |
Portfolio and risk analytics in Python with comprehensive tear sheet analysis. |
| PyPortfolioOpt | 5.8k |
Portfolio optimization in Python. Classical efficient frontier, Black-Litterman, Hierarchical Risk Parity, and more. |
| Riskfolio-Lib | 4.2k |
Portfolio optimization and quantitative strategic asset allocation. Supports 20+ risk measures. |
| ffn | 2.6k |
Financial functions library for Python: performance measurement, data transformations, and portfolio analytics. |
| Empyrical | 1.5k |
Common financial risk and performance metrics (Sharpe, Sortino, max drawdown). Used by Zipline and Pyfolio. |
| OLPS | 357 |
Toolbox for On-Line Portfolio Selection strategies. |
Tools for extracting trading signals from text — news, social media, SEC filings, and earnings calls.
| Project | Stars | Description |
|---|---|---|
| FinGPT | 20.4k |
Financial LLMs with built-in sentiment analysis capabilities via fine-tuning. |
| VADER | 5.0k |
Valence Aware Dictionary and sEntiment Reasoner. Rule-based sentiment analysis tool, widely used for financial social media and news text. |
| FinBERT | 2.1k |
Pre-trained NLP model for financial sentiment analysis. Fine-tuned on financial communication text. |
Core quantitative finance libraries for derivatives pricing, risk management, and financial modeling.
| Project | Stars | Description |
|---|---|---|
| gs-quant | 10.5k |
Goldman Sachs Python toolkit for quantitative finance, derivatives pricing, and risk analytics. |
| QuantLib | 7.2k |
The canonical open-source C++ library for quantitative finance: derivatives pricing, fixed income, and risk management. |
| RustQuant | 1.8k |
Rust library for quantitative finance covering stochastic processes, options pricing, bonds, and Monte Carlo methods. |
End-to-end platforms for algorithmic trading with broker integration.
| Project | Stars | Description |
|---|---|---|
| QuantConnect/Lean | 19.7k |
Algorithmic trading engine. Multi-asset support with cloud integration for backtesting and live trading. |
| StockSharp | 10.0k |
Algorithmic trading for stocks, forex, crypto, and options. GUI and API-based development. |
| FinRL-X | 3.2k |
AI-native modular infrastructure for quantitative trading. Unifies data processing, strategy construction, backtesting, and broker execution with RL/LLM support. Paper |
Tools for visualizing market data, trading activity, and agent performance.
| Project | Stars | Description |
|---|---|---|
| KLinePic MCP | First-party MCP server and Agent API for turning broker or exchange fills into annotated candlestick trade-review charts. Supports A-shares, US stocks, crypto, and futures; post-trade review only, with no signals or order execution. | |
| mplfinance | 4.4k |
Financial data visualization using Matplotlib. Candlestick charts, OHLC, Renko, and more. |
| TradingGym | 1.9k |
Toolkit for training and backtesting RL algorithms with real-time rendering. |
| Project | Stars | Description |
|---|---|---|
| NumPy | 32.1k |
The fundamental package for scientific computing with Python. Foundation for most quantitative finance libraries. |
| Azure HPC | - | Azure high-performance computing for financial services — risk simulation, pricing, and analytics. |
Key academic papers on AI in finance.
- Hambly, Ben, Renyuan Xu, and Huining Yang. "Recent Advances in Reinforcement Learning in Finance." arXiv preprint arXiv:2112.04553, 2021.
- "A Survey of Large Language Models for Financial Applications." arXiv, 2024. Covers FinGPT, BloombergGPT, and domain-specific fine-tuning.
- "FinAgent: A Multimodal Foundation Agent for Financial Trading." arXiv, 2024. Multimodal agent processing text, tables, and charts.
- "FinRobot: An Open-Source AI Agent Platform for Financial Applications." arXiv, 2024.
- "Data-Centric FinGPT: Open-Source Financial Large Language Models." arXiv, 2023. Data-centric approach to building financial LLMs.
- "Deep Reinforcement Learning for Automated Stock Trading: An Ensemble Strategy." ICAIF 2020. The ensemble strategy behind FinRL-Trading.
- "FinRL: A Deep Reinforcement Learning Library for Automated Stock Trading in Quantitative Finance." NeurIPS 2020 Deep RL Workshop.
- "FinRL-Meta: Market Environments and Benchmarks for Data-Driven Financial Reinforcement Learning." NeurIPS 2022.
- "FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory." arXiv, 2023. Novel memory architecture for LLM trading agents.
- "FinGPT: Open-Source Financial Large Language Models." arXiv, 2023. Democratizing financial LLMs with a data-centric approach and accessible fine-tuning.
- "TradingAgents: Multi-Agents LLM Financial Trading Framework." arXiv, 2024.
- Giller, Graham L. Adventures in Financial Data Science. Giller Investments, 2020.
- Jansen, Stefan. Machine Learning for Algorithmic Trading. 2nd ed. Packt, 2020. Code
- De Prado, Marcos Lopez. Advances in Financial Machine Learning. Wiley, 2018.
- Tatsat, Hariom, Sahil Puri, and Brad Lookabaugh. Machine Learning and Data Science Blueprints for Finance. O'Reilly, 2020. Code
- Dixon, Matthew F., Igor Halperin, and Paul Bilokon. Machine Learning in Finance: From Theory to Practice. Springer, 2020.
Contributions are welcome! If you have suggestions for new projects or improvements:
- Fork this repository.
- Add your project in the appropriate section, following the existing format.
- Submit a pull request with a brief description of the addition.
Selection criteria: Projects should be actively maintained, well-documented, and provide genuine value to the AI for finance community. We particularly welcome:
- Open-source tools with demonstrated community adoption
- Research projects with accompanying papers
- Frameworks that solve real problems in quantitative finance
This project is licensed under the MIT License.
Feedback: If you have any ideas or want content added to this list, feel free to open an issue or submit a PR.
- BDE Score™ - AI-Powered Multi-Market Stock Analysis — transparent multi-factor scoring for 73 stocks across US, HK, and A-share markets. EU AI Act Art.50 compliant.