# API-Frontend Coverage Matrix

**Proyecto:** trading-platform
**Fecha:** 2026-01-25
**Version:** 1.0.0

---

## Resumen Ejecutivo

| Metrica | Valor |
|---------|-------|
| Cobertura Global | 85% |
| Endpoints Documentados | 50 |
| Endpoints con Frontend | 42 |
| Gaps Identificados | 8 |

---

## Matriz por Modulo

### OQI-001: Auth (100%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/auth/register | POST | ✅ | Register.tsx |
| /api/v1/auth/login | POST | ✅ | Login.tsx |
| /api/v1/auth/logout | POST | ✅ | useAuth.ts |
| /api/v1/auth/refresh | POST | ✅ | auth.service.ts |
| /api/v1/auth/forgot-password | POST | ✅ | ForgotPassword.tsx |
| /api/v1/auth/reset-password | POST | ✅ | ResetPassword.tsx |
| /api/v1/auth/verify-email | POST | ✅ | VerifyEmail.tsx |
| /api/v1/auth/oauth/:provider | GET | ✅ | AuthCallback.tsx |
| /api/v1/auth/2fa/setup | POST | ✅ | TwoFactorForm.tsx |
| /api/v1/auth/2fa/verify | POST | ✅ | TwoFactorForm.tsx |

### OQI-002: Education (100%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/education/courses | GET | ✅ | Courses.tsx |
| /api/v1/education/courses/:id | GET | ✅ | CourseDetail.tsx |
| /api/v1/education/enrollments | GET | ✅ | MyLearning.tsx |
| /api/v1/education/lessons/:id | GET | ✅ | Lesson.tsx |
| /api/v1/education/quizzes/:id | GET/POST | ✅ | Quiz.tsx |
| /api/v1/education/leaderboard | GET | ✅ | Leaderboard.tsx |
| /api/v1/education/progress | GET | ✅ | XPProgress.tsx |

### OQI-003: Trading (95%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/trading/orders | GET/POST | ✅ | OrderForm.tsx |
| /api/v1/trading/positions | GET | ✅ | PositionsPanel.tsx |
| /api/v1/trading/history | GET | ✅ | TradeHistory.tsx |
| /api/v1/trading/watchlists | GET/POST | ✅ | WatchlistPanel.tsx |
| /api/v1/trading/symbols | GET | ✅ | SymbolSearch.tsx |
| /api/v1/trading/alerts | GET/POST | ⚠️ | AlertsPanel.tsx (parcial) |

### OQI-004: Investment (70%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/investment/products | GET | ✅ | Products.tsx |
| /api/v1/investment/accounts | GET/POST | ✅ | Investment.tsx |
| /api/v1/investment/portfolio | GET | ✅ | Portfolio.tsx |
| /api/v1/investment/transactions | GET | ⚠️ | Pendiente |
| /api/v1/investment/reports | GET | ❌ | No implementado |

### OQI-005: Payments (90%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/payments/plans | GET | ✅ | Pricing.tsx |
| /api/v1/payments/subscribe | POST | ✅ | PricingCard.tsx |
| /api/v1/payments/wallet | GET | ✅ | WalletCard.tsx |
| /api/v1/payments/invoices | GET | ✅ | Billing.tsx |
| /api/v1/payments/methods | GET/POST | ⚠️ | Parcial |

### OQI-006: ML Signals (85%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/ml/predictions | GET | ✅ | PredictionCard.tsx |
| /api/v1/ml/signals | GET | ✅ | SignalsTimeline.tsx |
| /api/v1/ml/models | GET | ✅ | ModelSelector.tsx |
| /api/v1/ml/ensemble/:symbol | GET | ✅ | EnsemblePanel.tsx |
| /api/v1/ml/ict/:symbol | GET | ✅ | ICTAnalysisPanel.tsx |
| /api/v1/ml/scan | POST | ⚠️ | Pendiente |

### OQI-007: LLM Agent (80%)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/llm/chat | POST | ✅ | ChatWindow.tsx |
| /api/v1/llm/conversations | GET | ✅ | Assistant.tsx |
| /api/v1/llm/strategies | GET | ✅ | assistant.service.ts |
| /api/v1/llm/execute-trade | POST | ⚠️ | Diseño pendiente |

### OQI-008: Portfolio Manager (0% - Diseño)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/portfolio/summary | GET | ❌ | A implementar |
| /api/v1/portfolio/positions | GET | ❌ | A implementar |
| /api/v1/portfolio/metrics | GET | ❌ | A implementar |
| /api/v1/portfolio/stress-test | POST | ❌ | A implementar |
| /api/v1/portfolio/rebalance | POST | ❌ | A implementar |
| /api/v1/portfolio/reports/pdf | POST | ❌ | A implementar |

### OQI-009: Marketplace (0% - Diseño)

| Endpoint | Metodo | Frontend | Componente |
|----------|--------|----------|------------|
| /api/v1/marketplace/products | GET | ❌ | A implementar |
| /api/v1/marketplace/signals | GET | ❌ | A implementar |
| /api/v1/marketplace/advisors | GET | ❌ | A implementar |
| /api/v1/marketplace/bookings | POST | ❌ | A implementar |

---

## Gaps Criticos

| Modulo | Gap | Prioridad | Accion |
|--------|-----|-----------|--------|
| OQI-008 | Sin frontend | Alta | Implementar segun ET-PFM-008 |
| OQI-009 | Sin frontend | Media | Implementar segun ET-MKT-003 |
| OQI-004 | Reportes | Media | Agregar pagina de reportes |
| OQI-006 | Multi-scan | Baja | Implementar scanner |

---

## Proximos Pasos

1. **Prioridad 1:** Implementar OQI-008 Portfolio Manager frontend
2. **Prioridad 2:** Implementar OQI-009 Marketplace frontend
3. **Prioridad 3:** Completar gaps en modulos existentes

---

*Generado: 2026-01-25 | Sistema: SIMCO v4.0.0*
