- 2,597GitHub stars
- Nevertrades
skfolio is a Python portfolio optimization library built on scikit-learn, with allocation that respects weight and cost limits.
About
skfolio is a Python library for portfolio optimization and risk modeling, built on scikit-learn. It supports allocation with constraints on weights and costs, factor models, and cross-validation.
What it adds to Moby. A research tool for proposing portfolio weights under real constraints, instead of an unconstrained back-of-the-envelope mix.
How to pair it. pip install skfolio, feed it return series you already have, and solve an allocation with the weight and cost limits you care about. Use the output to reason about a book; execute any live trades through Moby.
What it does not do. It does not place trades or custody funds.
What's inside this repo
- Portfolio optimization on top of scikit-learn
- Weight and cost constraints
- Factor models and cross-validation helpers
Install steps
Third-party code: Moby does not audit or control it. Read the source before you run it.
pip install skfolio- Load asset return series and set weight and cost constraints.
- Fit an optimization model and inspect the weights.
- Docs: https://skfolio.org
- Ask:
Using skfolio, propose portfolio weights for these return series with a max weight of 20% and transaction cost limits. Do not place trades.
Permissions
- Reads
- Return series and constraints you provide
- Writes
- Optimized weights and risk reports
- Tools
- Python library `skfolio`
- Trade
- Never trades
Review
Curated listing. Moby did not audit the code.
Links
- Repository: https://github.com/skfolio/skfolio
- Docs: https://skfolio.org
- Website: https://skfolio.org
On GitHub
- Stars
- 2,597
- Forks
- 303
How it works with Moby
skfolio works on its own. With Moby your agent can also trade on what it finds.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install skfolio
Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
- CCXTCCXT is a unified library for crypto exchange market data, balances…
- CryptofeedCryptofeed is a Python websocket handler for live cryptocurrency…
- DuckDBDuckDB is an in-process analytical database for SQL over local and…
- QuantStatsQuantStats is a Python portfolio analytics library for drawdowns…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
Curated listing. Moby did not audit the code · Report this item
