trading-platform/docs/02-definicion-modulos/OQI-010-llm-trading-integration/requerimientos/RF-LTI-001-tool-framework.md
Adrian Flores Cortes 8f0235c096 [TASK-2026-02-06-ANALISIS-INTEGRAL-DOCUMENTACION] docs: Complete 6-phase documentation analysis
- FASE-0: Diagnostic audit of 500+ files, 33 findings cataloged (7P0/8P1/12P2/6P3)
- FASE-1: Resolved 7 P0 critical conflicts (ports, paths, dedup OQI-010/ADR-002, orphan schemas)
- FASE-2: Resolved 8 P1 issues (traces, README/CLAUDE.md, DEPENDENCY-GRAPH v2.0, DDL drift, stack versions, DoR/DoD)
- FASE-3: Resolved 12 P2 issues (archived tasks indexed, RNFs created, OQI-010 US/RF/ET, AGENTS v2.0)
- FASE-4: Purged 3 obsolete docs to _archive/, fixed MODELO-NEGOCIO.md broken ref
- FASE-5: Cross-layer validation (DDL→OQI 66%, OQI→BE 72%, BE→FE 78%, Inventories 95%)
- FASE-6: INFORME-FINAL, SA-INDEX (18 subagents), METADATA COMPLETED

27/33 findings resolved (82%), 6 P3 deferred to backlog.
18 new files created, 40+ modified, 4 archived.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:57:03 -06:00

34 lines
1.1 KiB
Markdown

---
id: RF-LTI-001
title: "Framework de Tools LLM para Trading"
type: "Requirement"
status: "Backlog"
priority: "Alta"
module: "llm-trading-integration"
epic: OQI-010
version: "1.0"
created_date: "2026-02-06"
---
# RF-LTI-001: Framework de Tools LLM para Trading
## Descripcion
Definir y registrar las herramientas (tools) que el LLM puede invocar para operaciones de trading.
## Tools Requeridos
| Tool | Funcion | Fuente |
|------|---------|--------|
| get_market_price | Precio actual de un activo | data-service / market_data |
| get_ml_signals | Senales ML activas | ml-engine / signals API |
| get_portfolio_summary | Resumen del portfolio del usuario | portfolio service |
| create_order | Crear orden de trading | trading service |
| close_position | Cerrar posicion abierta | trading service |
| get_trade_history | Historial de trades | trading service |
| get_risk_assessment | Evaluacion de riesgo | investment service |
## Restricciones
- Tools de ejecucion (create_order, close_position) requieren confirmacion del usuario
- Rate limiting: max 10 tool calls por minuto por usuario
- Timeout: 10s por tool call