Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
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.

@ai-supply
Installs19k
↗ Source repository

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
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy