Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Investment Python Packages

Python packages with the GitHub topic investment. Sorted by monthly downloads, with stars and forks.
kernc
backtesting

🔎 📈 🐍 💰 Backtest trading strategies in Python.

227K 9K 2K
pyportfolio
pyportfolioopt

Financial portfolio optimization in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity

166K 6K 1K
dcajasn
riskfolio-lib

Portfolio Optimization in Python

89K 5K 743
attack68
rateslib

A fixed income library for pricing bonds and bond futures, and derivatives such as interest rate swaps (IRS), cross-currency swaps (XCS) and FX swaps. Contains tools for full curveset construction with market standard optimisers and automatic differentiation (AD) and risk sensitivity calculations including delta and cross-gamma.

17K 372 73
domokane
financepy

A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.

13K 3K 475
vnpy
vnpy

基于Python的开源量化交易平台开发框架

12K 47K 13K
PLUG-OpenAPI
nhplug

NH투자증권 PLUG Open API 파이썬 SDK — 샘플·종목마스터 파서·AI 규칙 (나무·N2 공용)

6K 17 3
fortitudo-tech
fortitudo-tech

Entropy Pooling views and stress testing combined with Conditional Value-at-Risk (CVaR) portfolio optimization in Python.

4K 316 54
sigma-quantiphi
crypto-pandas

Pandas + CCXT= :heart:

4K 19 1
stefanoamorelli
sec-edgar-toolkit

🏛️ Open-source toolkit for accessing SEC EDGAR financial data with Python and TypeScript/JavaScript SDKs. Features comprehensive parsing for 10-K, 10-Q, 8-K forms, XBRL financial data extraction, and real-time company filings retrieval.

4K 42 8
Soju06
python-kis

📈 파이썬 한국투자증권 REST 기반 Trading API 라이브러리

4K 288 88
Blankly-Finance
blankly

🚀 💸 Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.

3K 2K 310
openctp
openctp-ctp-cp

CTPAPI的Python接口,使用Swig技术制作,支持pip install。

3K 211 46
ssantoshp
empyrial

An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎

3K 1K 134
ariadng
metatrader-mcp-server

Model Context Protocol (MCP) to enable AI LLMs to trade using MetaTrader platform

3K 862 280
refraction-ray
xalpha

基金投资管理回测引擎

3K 3K 492
bbalouki
bbstrader

Simplified Investment & Trading Toolkit with Python & C++

2K 17 3
xang1234
stockscreen-mcp

CANSLIM & Minervini stock screener for 12 markets (US, China, HK, Japan, India, Korea, Taiwan & more). 80+ filters, StockBee-style breadth, group rankings, theme discovery and an AI research chatbot. Free daily static site + MCP server.

2K 426 139
KCNyu
clawock

Stock investment and portfolio decision workflows for AI agents: Claude Code, Codex, OpenClaw, DeepSeek Harness (dsh plugin) or your own script. Agents argue bull vs bear on HK and US stocks; Python reconciles the book, gates risk and scores each trading call against market prices. Pluggable quant strategies, live real-money track record.

2K 27 0
sepehr071
fipiran-mcp

Unofficial read-only MCP server for Fipiran (fipiran.ir): Iranian mutual funds and ETFs, NAV, returns, size, managers. No API key. For Claude, Cursor, Copilot.

2K 0 0
bbarney213
pylendingclub

A Python wrapper for the Lending Club API.

2K 2 0
KyuRish
trading212-mcp-server

MCP server for Trading 212 - portfolio analytics, order management, pies, dividends. Works with Claude, ChatGPT, Cursor, Windsurf.

1K 10 4
smalinin
backtrader-next

Python Backtesting library for trading strategies

1K 50 10
fmilthaler
finquant

A program for financial portfolio management, analysis and optimisation.

1K 2K 244
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology