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.

183K 9K 2K
pyportfolio
pyportfolioopt

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

135K 6K 1K
dcajasn
riskfolio-lib

Portfolio Optimization in Python

84K 5K 718
PLUG-OpenAPI
nhplug

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

16K 14 2
vnpy
vnpy

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

12K 46K 13K
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.

9K 3K 452
Soju06
python-kis

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

6K 288 90
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.

5K 365 69
smalinin
backtrader-next

Python Backtesting library for trading strategies

5K 48 10
sigma-quantiphi
crypto-pandas

Pandas + CCXT= :heart:

5K 19 1
fortitudo-tech
fortitudo-tech

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

4K 312 54
openctp
openctp-ctp-cp

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

3K 210 46
younghwan91
kiwoom-client

키움증권 REST API 파이썬 라이브러리 — 국내주식 엔드포인트 전수·실시간 WebSocket, sync+async, 토큰 자동 갱신. MCP 서버로 Claude Code 등에서 직접 호출 가능. OpenAPI+ OCX 없이 Linux·macOS 에서 동작 · Python wrapper for Kiwoom Securities REST API — pip install kiwoom-client

3K 1 1
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 313
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.

3K 38 8
bbalouki
bbstrader

Simplified Investment & Trading Toolkit with Python & C++

2K 16 3
ariadng
metatrader-mcp-server

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

2K 825 265
KCNyu
clawock

AI argues. Code settles. The losses stay on the page. A real HK + US brokerage account run by agents that must debate every call, settled by code the model never touches. Install the same decision workflow into your own agent: OpenClaw, Claude Code, Codex, or DeepSeek Harness.

2K 19 0
ssantoshp
empyrial

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

2K 1K 134
bbarney213
pylendingclub

A Python wrapper for the Lending Club API.

2K 2 0
refraction-ray
xalpha

基金投资管理回测引擎

1K 3K 491
LHanLi
freeback

高性能并行、事件驱动量化回测框架 high performance backtest,factor investing, portfiolio analysis

1K 25 8
fmilthaler
finquant

A program for financial portfolio management, analysis and optimisation.

1K 2K 239
KyuRish
trading212-mcp-server

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

881 10 3
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology