Automated Stock Trading Platform
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.
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.
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.
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.
Get in touch to discuss how Vela was built and how similar systems can be applied.