Saltar a contenido

C4 - Nivel 3 (Componentes)#

Componentes principales (Backend)#

flowchart LR
    API[API Routers]\n(backend/routers/*)
    CFG[Runtime Settings + Secret Store]\n(services/runtime_settings.py, secret_store.py)
    AUTO[Autopilot + Strategies]\n(services/autopilot.py, services/strategies/*)
    TM[Trade Manager]\n(services/trade_manager.py)
    SIG[Signal Queue + Execution]\n(routers/signals.py + main.py)
    OPS[Ops Automation]\n(routers/ops.py, services/ops_automation.py)
    NEWS[News/Macro Pipeline]\n(news_ingestor, macro_ingestor, enrichers)
    AI[LLM + AI Scoring]\n(llm_signal_adviser, ai_scoring, brainstorm_*)
    ANA[Analytics + Case Reviews]\n(routers/analytics.py)

    API --> CFG
    API --> AUTO
    AUTO --> SIG
    SIG --> TM
    API --> OPS
    OPS --> ANA
    API --> NEWS
    NEWS --> AI
    API --> ANA

Componentes principales (Frontend)#

flowchart LR
    PAGES[App Router pages]\n(frontend/src/app/*)
    API_CLIENT[API client]\n(frontend/src/lib/api.ts)
    PROXY[Next API Proxy]\n(app/api/proxy/[...path])

    PAGES --> API_CLIENT
    API_CLIENT --> PROXY

Notas de diseno#

  • El backend concentra la logica de negocio; frontend mantiene rol de presentacion/operacion.
  • runtime_settings permite cambios de operacion sin redeploy.
  • ops agrega auditoria, readiness, trazabilidad y automatizacion de respuesta.