Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 

Repository files navigation

Awesome AI for Finance Awesome

Stars License PRs Welcome

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🌟!


Contents


AI4Finance Foundation Ecosystem

The AI4Finance Foundation provides a full-stack open-source ecosystem for AI-driven finance, from data to deployment.

Project Stars Description
FinGPT 20.4k Stars 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 Stars The first open-source framework for financial reinforcement learning. Full pipeline from data processing to DRL-based trading (stock, crypto, forex).
FinRobot 7.2k Stars Open-source AI agent platform for financial analysis using LLMs. Multi-agent architecture for report generation, analysis, and trading decisions.
ElegantRL 4.3k Stars Scalable and elastic deep reinforcement learning library using PyTorch. Lightweight, efficient, and cloud-native.
FinRL-X 3.2k Stars AI-native modular infrastructure for quantitative trading. Unifies data, strategy, backtesting, and execution. Paper
FinRL-Meta 1.9k Stars A universe of dynamic market environments for financial reinforcement learning. Standardized datasets for stock, crypto, and forex.
FinNLP 1.5k Stars Democratizing internet-scale financial data. NLP toolkit for financial news and social media data processing.
FinRL-Tutorials 1.2k Stars Jupyter notebook tutorials covering stock trading, portfolio allocation, crypto trading, and more.
FinRL-Podracer 501 Stars Cloud-based framework for massively parallel financial RL training.
RLSolver 167 Stars RL-based solver for combinatorial optimization problems in finance.

LLMs for Finance

Large Language Models are transforming finance through automated analysis, report generation, and intelligent trading.

Project Stars Description
FinGPT 20.4k Stars Open-source financial LLM framework with LoRA/QLoRA fine-tuning on financial data.
FinRobot 7.2k Stars AI agent platform for financial analysis using LLMs with multi-agent architecture.
FinGLM 2.2k Stars Open financial LLM by Zhipu AI built on ChatGLM, with annual report datasets and challenge competition code.
FinBERT 2.1k Stars Pre-trained NLP model to analyze sentiment of financial text. Built on BERT, fine-tuned on financial corpus.
FinNLP 1.5k Stars Toolkit for financial NLP with easy access to financial news and social media data.
XuanYuan 1.3k Stars Chinese financial chat LLM from Du Xiaoman Financial. Hundreds of billions of parameters, fine-tuned on financial domain data.
DISC-FinLLM 878 Stars Chinese financial LLM from Fudan University. Multi-expert fine-tuning for QA, domain NLP, math computation, and RAG-based consulting.
PIXIU (FinMA) 865 Stars Open-source financial LLM evaluation framework with FinMA models (7B/30B), FinBen benchmark, and 136K instruction-tuning dataset.
Fin-R1 790 Stars 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 Stars 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.

AI Agents for Finance

Autonomous AI agents that can analyze markets, make trading decisions, and generate financial reports.

Project Stars Description
TradingAgents 82.4k Stars Multi-agent LLM financial trading framework. Specialized agents (fundamentals, sentiment, technical) debate and reach consensus on trades.
ai-hedge-fund 59.7k Stars Multi-agent AI hedge fund simulator with 18 agents modeled after legendary investors (Buffett, Munger, etc.) plus specialist agents.
daily_stock_analysis 40.0k Stars 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 Stars 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 Stars Chinese multi-agent LLM trading framework simulating professional trading firm workflows for A/HK/US markets.
AI-Trader 19.1k Stars Fully-automated agent-native trading platform from HKU. Cross-platform signal sync and one-click copy trading.
Qbot 17.5k Stars AI-powered quantitative investment research platform with 300+ models from 40+ papers, fully local deployment.
nofx 12.5k Stars AI trading terminal for stocks, commodities, forex, and crypto. 7 exchanges + 7 AI models competing in real-time.
Vibe-Trading 9.6k Stars Personal trading agent from HKU for research, simulation, backtesting, and autonomous broker-authorized trading.
FinRobot 7.2k Stars Open-source AI agent platform for financial applications powered by LLMs.
Polymarket Agents 3.6k Stars Official Polymarket framework for building autonomous AI agents that trade prediction markets.
AutoHedge 3.1k Stars Swarm-intelligence-powered autonomous hedge fund with Director, Quant, Risk, and Execution agents.
AlphaGen 1.1k Stars Generates synergistic formulaic alpha factors via reinforcement learning (KDD 2023).
QuantaAlpha 1.0k Stars LLM + evolutionary strategies framework for automatic alpha factor mining.
FinMem 903 Stars LLM-based trading agent with layered memory (short/mid/long-term) for evolving market understanding.
QVeris 230 Stars 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.

Deep Reinforcement Learning

Frameworks and libraries applying deep reinforcement learning to trading, portfolio management, and market making.

Project Stars Description
FinRL 15.3k Stars The first open-source DRL framework for quantitative finance. Supports PPO, A2C, DDPG, SAC, TD3, and more.
TensorTrade 6.3k Stars An RL framework for training, evaluating, and deploying robust trading agents.
ElegantRL 4.3k Stars Massively parallel deep reinforcement learning using PyTorch.
FinRL-Trading 3.2k Stars Ensemble strategy using DRL for automated stock trading (ICAIF 2020).
gym-anytrading 2.4k Stars OpenAI Gym trading environment for reinforcement learning.
FinRL-Meta 1.9k Stars Dynamic market environments and standardized datasets for financial RL.

Machine Learning

General machine learning approaches for financial prediction, alpha generation, and quantitative investment.

Project Stars Description
Qlib 44.0k Stars Microsoft's AI-oriented quantitative investment platform with full ML pipeline. Supports alpha mining, model training, and backtesting.
ML for Trading 18.7k Stars 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 Stars Collection of ML and deep learning models for stock forecasting, including transformers, LSTMs, and more.
ai_quant_trade 5.7k Stars Comprehensive AI stock trading platform covering LLMs, factor mining, ML/DL/RL, graph networks, and HFT strategies.
stockpredictionai 5.6k Stars Complete process for predicting stock price movements using deep learning.
TF Quant Finance 5.4k Stars TensorFlow-based library for quantitative finance by Google. Covers options pricing, volatility models, and more.
QuantsPlaybook 5.2k Stars Reproduces 100+ quantitative investment strategies from Chinese brokerage research reports.
MLFinLab 4.8k Stars Implementations of methods from Advances in Financial Machine Learning by Marcos Lopez De Prado.
Adv_Fin_ML_Exercises 1.9k Stars Experimental solutions to exercises from Advances in Financial Machine Learning.
AlphaPy 1.7k Stars ML framework for both speculators and data scientists. Automated feature engineering and model selection.
fin-ml 1.2k Stars Code for case studies in Machine Learning and Data Science Blueprints for Finance.
ml-quant-trading 38 Stars Paper-backed PyTorch research stack for mask-aware multi-factor modeling, ML baselines, portfolio optimization, and vectorized backtesting.

Quantitative Trading & Backtesting

Frameworks for algorithmic trading, strategy backtesting, and automated trading bots.

Project Stars Description
FreqTrade 51.1k Stars Free, open-source crypto trading bot. Supports backtesting, strategy optimization, and live trading on many exchanges.
vnpy/VeighNa 41.3k Stars Python-based open-source quant trading platform. Multi-market gateway support for stocks, futures, options, and crypto.
NautilusTrader 23.3k Stars Production-grade Rust-native trading engine with nanosecond-resolution clock and Python strategy API.
Backtrader 21.8k Stars Feature-rich Python framework for backtesting and live trading. Supports multiple data feeds and brokers.
Zipline 19.8k Stars Pythonic event-driven backtesting library, originally powering the Quantopian platform.
QuantConnect/Lean 19.7k Stars Algorithmic trading engine built for strategy research, backtesting, and live trading. Multi-asset support.
Hummingbot 18.8k Stars Open-source crypto market making and arbitrage bot. Gateway to CeFi and DeFi exchanges.
Abu 17.4k Stars Python quant trading system supporting US/A/HK stocks, futures, options, and Bitcoin with ML-based strategy optimization.
QUANTAXIS 10.6k Stars Distributed quant solution for stocks/futures/options with data, backtesting, simulation, and live trading.
Easytrader 9.8k Stars Python stock trading automation for Chinese brokers (Tonghuashun/MiniQMT/Xueqiu).
Jesse 8.0k Stars Advanced algo-trading framework for crypto. Strategy development, backtesting, and live trading.
VectorBT 7.8k Stars Blazing fast vectorized backtesting and trading analysis using NumPy and Pandas.
RQAlpha 6.4k Stars Extendable Python algorithmic backtesting and trading framework from RiceQuant.
WonderTrader 6.1k Stars High-performance C++ core quant framework with Python layer (wtpy) for research, trading, and operations.
OctoBot 6.0k Stars Open-source crypto trading bot for AI, Grid, DCA, and TradingView strategies on 15+ exchanges.
Krypto-trading-bot 3.7k Stars Self-hosted C++ high-frequency crypto market-making bot with sub-millisecond order execution.
Hikyuu 3.2k Stars C++/Python ultra-high-speed quant research framework for A-share market.
bt 2.9k Stars Flexible backtesting framework for Python with modular algorithm stacks and portfolio-level strategy testing.
HFT-LOB-Trading-ML 2.3k Stars High-frequency trading strategies using ML on full order book tick data.
barter-rs 2.2k Stars Open-source Rust framework for building event-driven live-trading and backtesting systems.
Zipline-Reloaded 1.8k Stars Community-maintained fork of Zipline, compatible with modern Python. Companion to ML for Algorithmic Trading.
Lumibot 1.6k Stars Backtestable AI trading agents for stocks, options, crypto, futures, and forex with real broker integration.
AutoTrader 1.3k Stars Python-based platform for development, optimization, and deployment of automated trading systems.
Funcat 1.0k Stars Ports Tongdaxin/Tonghuashun financial formula syntax to Python for technical analysis (e.g., MA(C,5)).

Data Sources

Tools and APIs for accessing financial market data — stocks, crypto, forex, and alternative data.

Project Stars Description
OpenBB Terminal 68.5k Stars Open-source investment research platform. Access stock, crypto, forex, and macro data with built-in analysis tools.
CCXT 42.8k Stars Unified JavaScript/Python/PHP library for 100+ cryptocurrency exchange APIs. Trading and market data.
FinceptTerminal 25.1k Stars Modern finance terminal with advanced market analytics, investment research, and economic data tools for interactive exploration.
yfinance 24.0k Stars Download market data from Yahoo Finance. Stocks, ETFs, mutual funds, options, and more.
AKShare 20.0k Stars Elegant Python financial data interface covering A-shares, futures, options, funds, forex, bonds, indices, and crypto from authoritative Chinese sources.
TuShare 15.1k Stars Financial data interface for Chinese stock markets. Historical and real-time data.
OpenStock 13.0k Stars Free open-source market platform alternative with real-time prices, alerts, and company insights.
StockSharp 10.0k Stars Algorithmic trading and quantitative analysis platform. Connects to multiple brokers and exchanges.
FinanceDatabase 7.8k Stars Comprehensive database of 300,000+ symbols: Equities, ETFs, Funds, Indices, Currencies, and Crypto.
FinanceToolkit 4.9k Stars Transparent financial analysis with 150+ ratios, indicators, and performance measurements.
AData 4.6k Stars Free open-source A-share quant trading database with multi-source data fusion and dynamic proxy.
Binance 2.9k Stars Official Python connector for Binance APIs. Spot, futures, and market data.
ArcticDB 2.4k Stars High-performance serverless DataFrame database by Man Group for petabyte-scale time-series and tick data.
EdgarTools 2.3k Stars Read and analyze SEC EDGAR filings in Python (10-K, 8-K, XBRL, 13F).
FinRL-Meta 1.9k Stars Dynamic datasets and market environments for stock, crypto, and forex.
Alpaca 1.4k Stars Official Python SDK for Alpaca. Commission-free stock trading API with paper/live trading.
jqdatasdk 1.3k Stars JoinQuant's Python data SDK for Chinese financial market data.
DeFiLlama Adapters 1.2k Stars Open-source DeFi TVL calculation adapters for 2,400+ protocols across 180+ blockchains.
WRDS 155 Stars Python interface to Wharton Research Data Services for academic financial research.
The Stall Stars 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 Stars 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.

Technical Analysis

Libraries for computing technical indicators and performing quantitative analysis on market data.

Project Stars Description
TA-Lib 12.0k Stars Python wrapper for TA-Lib. 200+ technical analysis functions: candlestick patterns, momentum, volatility, and more.
ta 5.1k Stars Technical analysis library using Pandas and NumPy. Includes 40+ indicators out of the box.
Clairvoyant 2.4k Stars Identify and monitor social/historical cues for short-term stock movement.
Funcat 1.0k Stars Tongdaxin/Tonghuashun financial formula syntax ported to Python (e.g., MA(C,5), CROSS(MA5, MA10)).

Portfolio Management & Risk

  • 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 Stars Portfolio analytics for quants with in-depth performance metrics, risk analytics, tear sheets, and HTML reports.
Pyfolio 6.3k Stars Portfolio and risk analytics in Python with comprehensive tear sheet analysis.
PyPortfolioOpt 5.8k Stars Portfolio optimization in Python. Classical efficient frontier, Black-Litterman, Hierarchical Risk Parity, and more.
Riskfolio-Lib 4.2k Stars Portfolio optimization and quantitative strategic asset allocation. Supports 20+ risk measures.
ffn 2.6k Stars Financial functions library for Python: performance measurement, data transformations, and portfolio analytics.
Empyrical 1.5k Stars Common financial risk and performance metrics (Sharpe, Sortino, max drawdown). Used by Zipline and Pyfolio.
OLPS 357 Stars Toolbox for On-Line Portfolio Selection strategies.

Sentiment Analysis & NLP

Tools for extracting trading signals from text — news, social media, SEC filings, and earnings calls.

Project Stars Description
FinGPT 20.4k Stars Financial LLMs with built-in sentiment analysis capabilities via fine-tuning.
VADER 5.0k Stars Valence Aware Dictionary and sEntiment Reasoner. Rule-based sentiment analysis tool, widely used for financial social media and news text.
FinBERT 2.1k Stars Pre-trained NLP model for financial sentiment analysis. Fine-tuned on financial communication text.

Quantitative Finance Libraries

Core quantitative finance libraries for derivatives pricing, risk management, and financial modeling.

Project Stars Description
gs-quant 10.5k Stars Goldman Sachs Python toolkit for quantitative finance, derivatives pricing, and risk analytics.
QuantLib 7.2k Stars The canonical open-source C++ library for quantitative finance: derivatives pricing, fixed income, and risk management.
RustQuant 1.8k Stars Rust library for quantitative finance covering stochastic processes, options pricing, bonds, and Monte Carlo methods.

Trading Platforms

End-to-end platforms for algorithmic trading with broker integration.

Project Stars Description
QuantConnect/Lean 19.7k Stars Algorithmic trading engine. Multi-asset support with cloud integration for backtesting and live trading.
StockSharp 10.0k Stars Algorithmic trading for stocks, forex, crypto, and options. GUI and API-based development.
FinRL-X 3.2k Stars AI-native modular infrastructure for quantitative trading. Unifies data processing, strategy construction, backtesting, and broker execution with RL/LLM support. Paper

Visualization & Rendering

Tools for visualizing market data, trading activity, and agent performance.

Project Stars Description
KLinePic MCP Stars 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 Stars Financial data visualization using Matplotlib. Candlestick charts, OHLC, Renko, and more.
TradingGym 1.9k Stars Toolkit for training and backtesting RL algorithms with real-time rendering.

High Performance Computing

Project Stars Description
NumPy 32.1k Stars 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.

Research Papers & Surveys

Key academic papers on AI in finance.

Surveys

Selected Papers


Books

  • 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.

Contributing

Contributions are welcome! If you have suggestions for new projects or improvements:

  1. Fork this repository.
  2. Add your project in the appropriate section, following the existing format.
  3. 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

License

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.

Releases

Packages

Contributors