title: Folio - Financial Portfolio Dashboard
emoji: π
colorFrom: indigo
colorTo: purple
sdk: docker
sdk_version: latest
app_file: app.py
pinned: false
Folio - Financial Portfolio Dashboard
Folio is a powerful web-based dashboard for analyzing and optimizing your investment portfolio. Get professional-grade insights into your stocks, options, and other financial instruments with an intuitive, user-friendly interface.
Why Folio?
- Complete Portfolio Visibility: See your entire financial picture in one place
- Smart Risk Assessment: Understand your portfolio's risk profile with beta analysis
- Cash & Equivalents Detection: Automatically identifies money market and cash-like positions
- Option Analytics: Detailed metrics for options including delta exposure and notional value
- Zero Cost: Free to use, with no hidden fees or subscriptions
Key Features
- Portfolio Summary: View total exposure, beta, and allocation breakdown
- Position Details: Analyze individual positions with detailed metrics
- Position Grouping: Automatically groups stocks with their related options
- P&L Visualization: See potential profit/loss scenarios for option strategies
- Filtering & Sorting: Filter by position type and sort by various metrics
- Real-time Data: Uses Yahoo Finance API for up-to-date market data
- Responsive Design: Works seamlessly on desktop and mobile devices
Getting Started
Try It Online
The easiest way to try Folio is through our Hugging Face Spaces deployment: https://huggingface.co/spaces/mingdom/folio
Local Installation
Install Poetry: We use
poetryunder the hood to manage dependencies.# For macOS/Linux curl -sSL https://install.python-poetry.org | python3 - # For Windows (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -For detailed installation instructions, visit Poetry's official documentation.
Clone the repository:
git clone https://github.com/mingdom/folio.git cd folioInstall dependencies:
# Using Poetry poetry install poetry env activate # Using Make: make install make envRun the application:
make folio
Development Workflow
Our project uses Poetry for dependency management and Make for convenient command shortcuts.
Set up pre-commit hooks:
make hooksCommon development commands:
# Run linting make lint # Run tests make test # Start the interactive CLI (includes SPY simulator functionality) make focliWorking with Poetry's environment:
# Activate Poetry's shell (recommended for development) poetry shell # After activating, you can run commands directly: python -m src.folio.app pytest ruff check .
For detailed Poetry commands and information, see docs/Poetry.md.
Docker Deployment
# Start the application
make docker-up
# View logs
make docker-logs
# Stop the application
make docker-down
The dashboard will be available at http://localhost:8050
Documentation
- Docker Commands - Detailed Docker usage
- Logging Configuration - Configure logging
- Project Architecture - Codebase structure and design
- Poetry Commands - Detailed Poetry usage
Using Folio
- Upload Your Portfolio: Use the upload button to import a CSV file with your holdings
- Explore Your Data: View summary metrics and detailed breakdowns of your investments
- Filter and Sort: Focus on specific asset types or metrics that matter to you
- Analyze Positions: Click on any position to see detailed metrics and P&L scenarios
- Export or Share: Save your analysis or share insights with your financial advisor
Sample Portfolio
Not ready to upload your own data? Click the "Load Sample Portfolio" button to explore Folio with our demo data.
Privacy & Security
- Your Data Stays Private: All analysis happens in your browser or local environment
- No Account Required: Use Folio without creating an account or sharing personal information
- Open Source: All code is transparent and available for review
License
This project is licensed under the MIT License - see the LICENSE file for details.