catalog / Finance / PyPortfolioOpt — Portfolio Optimization
PipelineFinanceFree

PyPortfolioOpt — Portfolio Optimization

A Python library implementing classical and modern portfolio optimization: efficient frontier, Black-Litterman, HRP, and advanced risk models.

설치 수19k
소스 저장소

PyPortfolioOpt

PyPortfolioOpt is a popular Python library for financial portfolio optimization and risk management. It implements the full workflow — from expected-returns and covariance estimation through mean-variance optimization — giving quants and researchers a clean, well-documented toolkit for constructing risk-aware portfolios.

Key features

  • Classical efficient-frontier (mean-variance) optimization with custom constraints
  • Robust covariance/risk models: Ledoit-Wolf shrinkage, semicovariance, EWMA
  • Black-Litterman allocation blending investor views with market equilibrium
  • Hierarchical Risk Parity (HRP) and CVaR/CDaR objective functions
  • Post-processing to convert continuous weights into discrete share allocations

A typical flow estimates expected_returns and a risk_model, then uses EfficientFrontier to maximize Sharpe or minimize volatility subject to constraints, returning portfolio weights ready to trade or analyze.

Curated mirror of the open-source PyPortfolioOpt (MIT). Get it from the source.

More from @ai-supply

View profile →
MCP server
GitHub MCP Server
Official GitHub MCP server — give your AI agent full read/write access to repos, issues, PRs, and actions.
771k
Embedding
Sentence Transformers
State-of-the-art sentence and text embeddings — compute semantic similarity, clustering, and dense retrieval.
751k
Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
641k
MCP server
MCP TypeScript SDK
Official TypeScript/JavaScript SDK for building MCP servers and clients — the Node.js foundation for the Model Context Protocol.
629k