An institutional-grade research, performance, and risk platform designed to democratize quantitative investment tools for retail investors and independent quants.
Investment management systems and risk engines are typically reserved for large asset managers, hedge funds, and banks—often out of reach for retail investors. This project aims to bridge that gap by delivering an open-source, institutional-grade platform that combines multiple quantitative finance libraries into a cohesive, end-to-end investment workflow.
While many open-source libraries support various aspects of the quantitative investment process, few offer a fully integrated solution. This platform provides a modular, extensible architecture that allows users to build upon its core functionality in a DIY manner.
The platform supports the complete investment lifecycle:
- Defining Investment Objectives
- Acquiring, Processing, Storing & Managing Data — Market Data Load Demo
- Developing Investment Strategies
- Backtesting Strategies - Backtesting Demo
- Constructing Portfolios
- Integrating Brokers & Executing Trades — Broker Integration Demo
- Monitoring & Rebalancing Portfolios
- Evaluating Performance
- Risk Management & Stress Testing
- Reviewing & Iterating
The platform leverages proven open-source libraries to build a complete investment ecosystem:
- SQL Server or Databricks — Data Storage
- Pandas & PySpark — Data analysis, acquisition and engineering
- SQLAlchemy — Database operations
- NumPy — Numerical computations
- SciPy & Scikit-learn — Research and statistical modeling
- ARCH — Volatility modeling using GARCH/ARCH models for time-series forecasting
- Riskfolio-Lib — Portfolio optimization
- Plotly & Dash — Interactive dashboards and visualizations for performance and risk metrics
- Matplotlib & Seaborn — Static plots for exploratory data analysis and reporting
- ib_insync — Interactive Brokers API wrapper for trade execution
- Faiss & Ollama — LLM-based AI integration for natural language querying, document search, and strategy generation
Unlike most open-source tools, the platform focuses on daily investment analytics storage for analytical processing
Designed to be extensible, allowing users to plug in new models, data sources, and execution layers.
Incorporates LLMs via Ollama and Faiss to support natural language querying, document search, and strategy generation.
Mature the platform to build the data acquisition layer, including:
- Construct portfolios
- Build benchmarks or reconstruct indices (e.g., Nasdaq 100, S&P 500)
- Develop a backtesting engine for "what-if" analysis
Use the data acquisition layer to:
- Build factor exposures such as style, countries, industries, thematic but mostly growth & momentum
reference books
Quantitative Momentum
Factor Investing for Dummies - Measure risk of factor exposures
- Use value factor to identify securities trading below intrinsic value
reference books
Intelligent Investor
Quantitative Value
AI investor - Use all the above ingredients to backtest growth at reasonable price (GARP) investment strategy
- Run real money using this framework
cd C:\Users\menon\OneDrive\Documents\SourceCode
git clone https://github.com/menonf/InvestmentManagement.gitOpen the cloned folder in Visual Studio Code and run the following commands in the terminal:
python -m venv .venv
.venv\Scripts\activate.ps1
pip install -r requirements.txtIf using VS Code, use the following settings in launch.json:
{
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceRoot}",
"env": {"PYTHONPATH": "${workspaceRoot}"},
"console": "integratedTerminal",
"justMyCode": true,
"purpose": ["debug-in-terminal"]
}
]
}Run and debug Backtesting Demo.
Before making changes, create a new working branch:
git checkout -b data_acquisition_layerOnce changes are complete, submit a pull request.
This software is for educational and research purposes only. Past performance does not guarantee future results. Please consult with a qualified financial advisor before making investment decisions.
Built with ❤️ for the quantitative finance community
