- Add CLAUDE.md with project-specific instructions - Add .trae/rules/ and AGENT-CAPABILITIES.md - Add .windsurf/rules/ and AGENT-CAPABILITIES.md - Add .gemini/antigravity/README.md - Stack: Express.js 5.0.1 + React 18.2.0 + Python/FastAPI (hybrid) - Type: STANDALONE (no propagation) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
103 lines
2.1 KiB
Markdown
103 lines
2.1 KiB
Markdown
# Project Rules - Trading Platform (Trae IDE)
|
|
|
|
**Proyecto:** trading-platform
|
|
**Tipo:** STANDALONE
|
|
**Sistema:** SIMCO v4.0.0
|
|
|
|
---
|
|
|
|
## Reglas Heredadas
|
|
|
|
Este proyecto hereda TODAS las reglas de:
|
|
- `workspace-v2/CLAUDE.md`
|
|
- `workspace-v2/.trae/rules.md`
|
|
|
|
Las reglas aquí son EXTENSIONES específicas del proyecto.
|
|
|
|
---
|
|
|
|
## Arquitectura Híbrida
|
|
|
|
- **TypeScript:** Express.js backend, React frontend, MCPs
|
|
- **Python:** FastAPI (ml-engine, data-service)
|
|
- **Monorepo:** Múltiples apps en `/apps/` y servicios MCP en raíz
|
|
|
|
---
|
|
|
|
## Stack
|
|
|
|
- **Backend API:** Express.js 5.0.1
|
|
- **Frontend:** React 18.2.0 + Vite 6.2.0
|
|
- **ML Engine:** FastAPI + Python 3.11
|
|
- **Database:** PostgreSQL 16+
|
|
- **Cache:** Redis 7.x
|
|
|
|
---
|
|
|
|
## Credenciales BD
|
|
|
|
```
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=trading_platform
|
|
DB_USER=trading_user
|
|
DB_PASS=trading_dev_2026
|
|
```
|
|
|
|
---
|
|
|
|
## Reglas Específicas
|
|
|
|
### 1. Separación TypeScript/Python
|
|
|
|
- NO mezclar código entre stacks
|
|
- Comunicación via REST/gRPC únicamente
|
|
- Cada servicio tiene su propio package.json o requirements.txt
|
|
|
|
### 2. Trading Safety
|
|
|
|
- NUNCA ejecutar trades reales sin confirmación explícita
|
|
- Usar modo sandbox en desarrollo
|
|
- Validar límites de riesgo en código
|
|
|
|
### 3. ML Models
|
|
|
|
- Modelos en `apps/ml-engine/`
|
|
- Backtesting obligatorio antes de deploy
|
|
- Documentar métricas de performance
|
|
|
|
### 4. Tests
|
|
|
|
Cobertura mínima: 60%
|
|
- TypeScript: `npm run test`
|
|
- Python: `pytest`
|
|
|
|
---
|
|
|
|
## Paths de Trabajo
|
|
|
|
```
|
|
Backend: projects/trading-platform/apps/backend/src/
|
|
Frontend: projects/trading-platform/apps/frontend/src/
|
|
ML Engine: projects/trading-platform/apps/ml-engine/
|
|
Database: projects/trading-platform/apps/database/
|
|
MCPs: projects/trading-platform/mcp-*/
|
|
```
|
|
|
|
---
|
|
|
|
## Propagación
|
|
|
|
Como STANDALONE, trading-platform:
|
|
- **NO propaga** a otros proyectos
|
|
- **NO recibe** de otros proyectos
|
|
- Es completamente independiente
|
|
|
|
---
|
|
|
|
## Referencias
|
|
|
|
- CLAUDE.md local: `projects/trading-platform/CLAUDE.md`
|
|
- Directivas: `projects/trading-platform/orchestration/directivas/`
|
|
- Inventarios: `projects/trading-platform/orchestration/inventarios/`
|