Artificial intelligence
Trading AI Assistance — Backend Architecture
The backend architecture of a trading-analysis platform: market-data ingestion, strategy execution, explainable AI signals, a model registry and leakage-safe backtesting, as a modular monolith with a Python inference service.
- Evidence
- Verified work
- Category
- Artificial intelligence
Overview
The backend for a trading-assistance platform whose specification lists 19 AI capabilities and 19 software capabilities — indicators, strategy execution, chart-image analysis, explainable signals, sentiment and news impact, risk management, backtesting and alerts. The repository turns that specification into explicit engineering boundaries and a working foundation.
Constraints
The non-negotiable rules are written into the architecture: a trading signal is never presented as guaranteed profit; AI output is an analysis, not a command; every prediction must be traceable to model version, input snapshot, strategy configuration and timestamp; and backtesting must prevent look-ahead bias and data leakage.
Architecture
A modular monolith with explicit domain boundaries and asynchronous workers, in a pnpm workspace: a NestJS HTTP API (/api/v1), a BullMQ worker, a framework-free domain package, an application package of use cases and ports, an infrastructure package (Prisma, Redis, BullMQ, logging adapters), typed configuration, and shared contracts for envelopes, error codes and queue names.
Intelligence layer
ML workloads are placed in a separate Python inference/training service where Python-native tooling is required. The documented AI architecture covers a model registry with model versions, inference requests and evaluation metrics, explainable (XAI) signals, and a signal lifecycle kept separate from execution: an execution intent is not an order.
Engineering decisions
A modular monolith was chosen over microservices for strong consistency and simpler deployment, while leaving a clean path to extract high-load components later. External providers — market data, brokers — sit behind adapters, and domain rules are testable without infrastructure.
Related projects
Software engineering
Tavola — Multi-Tenant Restaurant Reservation Platform
A multi-tenant SaaS for restaurant reservations, tables, branches and staff: NestJS backend with real-time updates, a Flutter customer app, a React restaurant dashboard and a platform-owner console.
Stack
Software engineering
Saree'e — Parts Delivery Dispatch Platform
A motorcycle-based automotive-parts delivery platform: dispatch, multi-order routing, driver capacity, live tracking, pricing and ledgers — designed through accepted ADRs, with a NestJS foundation.
Stack
Software engineering
VegaCore Operating System (VOS)
An ERP / CRM / project-management platform for VegaCORE: CRM, projects, marketing, media, HR, finance, archive and AI modules on NestJS, Prisma, PostgreSQL and Next.js 15.
Stack