feat: OpenBB Investment Analysis API

REST API wrapping OpenBB SDK for stock data, sentiment analysis,
technical indicators, macro data, and rule-based portfolio analysis.

- Stock data via yfinance (quote, profile, metrics, financials, historical, news)
- News sentiment via Alpha Vantage (per-article, per-ticker scores)
- Analyst data via Finnhub (recommendations, insider trades, upgrades)
- Macro data via FRED (Fed rate, CPI, GDP, unemployment, treasury yields)
- Technical indicators via openbb-technical (RSI, MACD, SMA, EMA, Bollinger)
- Rule-based portfolio analysis engine (BUY_MORE/HOLD/SELL)
- Stock discovery (gainers, losers, active, undervalued, growth)
- 102 tests, all passing
This commit is contained in:
Yaojia Wang
2026-03-09 00:20:10 +01:00
commit ad45cb429c
30 changed files with 3107 additions and 0 deletions

19
environment.yml Normal file
View File

@@ -0,0 +1,19 @@
name: openbb-invest-api
channels:
- conda-forge
- defaults
dependencies:
- python=3.12
- pip
- setuptools
- pip:
- fastapi
- uvicorn[standard]
- openbb
- openbb-yfinance
- openbb-technical
- pydantic-settings
- httpx
- pytest
- pytest-asyncio
- pytest-cov