Spaces:
Running
Running
File size: 2,564 Bytes
bd2b4c7 55b6bb1 bd2b4c7 55b6bb1 bd2b4c7 55b6bb1 bd2b4c7 55b6bb1 bd2b4c7 55b6bb1 bd2b4c7 55b6bb1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | ---
title: ECM Quant AI
emoji: π
colorFrom: gray
colorTo: yellow
sdk: docker
pinned: false
app_port: 7860
---
# ECM Quant AI | Analyst Dashboard




**ECM Quant AI** is a professional-grade quantitative pricing engine. Originally prototyped in Streamlit, it has been re-architected as a high-performance **FastAPI** web application to meet production latency requirements.
It features a "Goldman Sachs" style analyst dashboard using server-side rendering (Jinja2) and lightweight vanilla JavaScript for interactive charting.
---
## π Key Features
* **FastAPI Backend**: High-performance asynchronous endpoints for market data processing.
* **Production Dashboard**: Custom HTML/CSS/JS frontend (no heavyweight frameworks) for maximum speed and "Human-Written" quality.
* **Real-Time Signals**: Calculates Momentum, Volatility, and Beta against the S&P 500 (^GSPC) using `yfinance`.
* **Institutional Aesthetic**: Dark mode with Gold (#FFD700) accents.
* **Zero-Keys**: Fully operational using public market data rails.
## π οΈ Usage
### Local Development
1. **Install dependencies**:
```bash
pip install -r requirements.txt
```
2. **Run the server**:
```bash
uvicorn main:app --reload
```
3. **Access Dashboard**:
Open `http://127.0.0.1:8000` in your browser.
### Docker Deployment
The project is containerized for Hugging Face Spaces (Docker SDK).
```bash
docker build -t ecm-quant-ai .
docker run -p 7860:7860 ecm-quant-ai
```
## π Methodology
The engine normalizes 6-month historical price data to derive pricing recommendations:
1. **Momentum (30d)**: Rolling rate-of-change vs Benchmark.
2. **Volatility**: Annualized standard deviation.
3. **Pricing Recommendation**: Heuristic model `f(momentum, volatility)` -> `[Low, High]` range.
## π Project Structure
```
βββ main.py # FastAPI Application (Entry Point)
βββ templates/
β βββ index.html # Jinja2 Dashboard Template
βββ static/
β βββ style.css # CSS Variables & Theme
β βββ script.js # Client-side Charting (Plotly)
βββ requirements.txt # Dependencies
βββ Dockerfile # Uvicorn container
βββ README.md # Documentation
```
---
*Built for the Modern ECM Desk.*
|