Advanced financial analysis platform combining OpenBB's market data capabilities with custom ROIC (Return on Invested Capital) quality metrics.
- OpenBB CLI Integration: Full OpenBB platform for market data, news, and analysis
- ROIC Quality Metrics: Custom CLI tool for fundamental quality analysis
- π Unified Analysis: Master tool combining OpenBB + ROIC data seamlessly
- π Pro-Style Backend API: FastAPI backend inspired by OpenBB Terminal Pro
- Multi-Provider Support: Yahoo Finance, Polygon, Finviz Elite, FRED, and ROIC.ai
- Historical Analysis: 10-year ROIC trends for any stock (including Chinese A-shares)
- Smart Forecasting: Quality-based 3-year price projections
- Professional Display: Both terminal and OpenBB-style table formats
- π Integration Wrappers: Python scripts that merge OpenBB and ROIC metrics
- RESTful API: Professional backend with widgets.json for Terminal Pro style interfaces
- Clone the repository
git clone https://github.com/SDG223157/OPBB.git
cd OPBB- Set up virtual environment
python3 -m venv openbb-env
source openbb-env/bin/activate
pip install openbb-cli- Launch OpenBB
./launch-openbb-premium.shConfigure in OpenBB Workspace's Backends screen:
Backend Name: ROIC Quality API
Environment: openbb
Executable: python openbb_roic_backend.py
Working Directory: /Users/sdg223157/OPBBSee OPENBB_BACKENDS_CONFIGURATION.md for complete setup.
# Complete analysis combining OpenBB + ROIC
./analyze AAPL # Full analysis
./analyze MSFT roic # ROIC metrics only
./analyze NVDA forecast # Price targets
./analyze compare AAPL GOOGL MSFT # Compare multiple# Quality metrics
./roic quality AAPL
# 3-year forecast
./roic forecast MSFT
# Compare companies
./roic compare AAPL MSFT GOOGL
# Historical analysis
./roic historical 600519.SS --years 10# Combined OpenBB + ROIC data
python roic_wrapper.py AAPL
# Hybrid launcher
python hybrid_launcher.py roic AAPL # ROIC data
python hybrid_launcher.py # Launch OpenBBInspired by OpenBB Terminal Pro:
# Start the API server
./launch_roic_backend.sh
# Access endpoints
curl http://localhost:8000/api/v1/analysis/complete/AAPL
curl http://localhost:8000/widgets.json
# Use the client
python roic_backend_client.pyAPI Documentation: http://localhost:8000/docs
/equity/price/quote --symbol AAPL --provider yfinance/news/company --symbol AAPL --provider polygon/economy/fred_series --symbol VIXCLS --provider fred/equity/estimates/price_target --symbol AAPL --provider finviz
./roic quality [SYMBOL]- Get ROIC and quality metrics./roic forecast [SYMBOL]- Quality-based 3-year forecast./roic compare [SYMBOLS...]- Compare multiple stocks./roic historical [SYMBOL]- Historical ROIC analysis./roic style [openbb|custom]- Switch display style
- Polygon.io: Real-time market data and news
- Finviz Elite: Analyst price targets
- FRED: Economic indicators and commodity prices
- ROIC.ai: Quality metrics (optional)
# Run setup scripts
python set_polygon_key.py
python set_finviz_key.py
python set_fred_key.py
python set_roic_key.pyROIC: 51.54%
Quality Score: 95/100
Competitive Moat: Wide
3-Year Target: $439 (+64%)
# Kweichow Moutai
./roic historical 600519.SS
# BYD
./roic quality 002594.SZOPBB/
βββ openbb-env/ # Virtual environment
βββ launch-openbb-*.sh # Launch scripts with API keys
βββ roic* # ROIC CLI tool and modules
βββ get_*.py # Data fetching scripts
βββ master_forecast.py # Comprehensive analysis tool
βββ commodity_dashboard*.py # Commodity market tools
βββ *.md # Documentation
βββ API setup scripts
Combines all data sources for institutional-grade analysis:
python master_forecast.pySwitch between custom and OpenBB-style output:
./roic style openbb # Professional tables
./roic style custom # Clean text formatAll tools support data export:
./roic quality AAPL --export csv
./roic historical MSFT --export xlsx- ROIC CLI Integration
- API Setup Guide
- Display Styles
- Chinese Stocks Guide
- Commodity Guide
- FRED Economic Guide
Contributions are welcome! This project demonstrates:
- Custom OpenBB provider development
- CLI tool integration
- Financial data analysis
- Multi-API orchestration
MIT License - See LICENSE file for details
- OpenBB Platform for the excellent financial data framework
- ROIC.ai for quality investing methodology
- All data providers (Yahoo, Polygon, Finviz, FRED)
- GitHub: @SDG223157
- Project: OPBB Repository
Built with β€οΈ for quality-focused financial analysis