Automated Trading System · FINTECH

Vela

Automated Stock Trading Platform

C# .NET 10 ASP.NET Core PostgreSQL Docker Interactive Brokers API Entity Framework Core xUnit TestContainers GitHub Actions

Vela is the execution engine at the core of the Meridion platform. It monitors market signals, evaluates each one through a layered risk engine, and places orders through Interactive Brokers. It runs end-to-end daily, handling the full lifecycle from market data ingestion through order placement, position management, and reporting.

Resilient Data Ingestion

Dual ingestion pipeline: a polling background service with Polly retry provides continuous data flow, while a real-time SignalR listener handles low-latency alert processing. If either channel degrades, the other continues without interruption.

Durable State & Recovery

Position state is persisted to PostgreSQL on every change. On restart, a recovery service reconciles database state, broker positions, and in-flight alert state, ensuring the system resumes cleanly without stranding open positions.

Testable by Design

A clean IBrokerService abstraction decouples all order logic from the live broker. A NullBrokerService handles testing; IbkrBrokerService handles live execution. The system is fully exercisable without a live connection.

255
Tests
Unit, integration, API (WebApplicationFactory), database (TestContainers), and live broker integration tiers.
CI/CD
GitHub Actions
Split unit and integration steps, PostgreSQL service container, Docker image publishing to GHCR.
PostgreSQL
Database
EF Core 10 migrations, batched inserts, and idempotent deduplication across both ingestion paths.

Interested in the Architecture?

Get in touch to discuss how Vela was built and how similar systems can be applied.