← All selected work

CASE STUDY / 02 · Risk & supervision

Independent supervision of trading accounts and orders.

A separate monitoring application with the ability to alert, cancel orders, command strategy shutdown and close positions — outside the strategy application itself.

RabbitMQC# / .NETEvent-driven systems
Conceptual architecture
RoleTrading Systems Developer
PeriodApr 2023 — present
My scopeAccount/order monitoring · RabbitMQ integration · alerts · cancellation · strategy-stop commands · position closing

01 / Context

A second application for supervision.

The strategy application included its own automated emergency logic. I also built a separate RabbitMQ-based supervisor to observe accounts and orders and intervene when needed, including when the strategy application encountered a problem. This introduced a second application-level route for monitoring and action.

My contribution

  • Built a separate RabbitMQ-based application to monitor accounts and orders and raise alerts.
  • Implemented intervention capabilities to cancel orders, command the strategy application to stop, and close positions.
  • Combined this independent monitoring application with automated emergency logic in the strategy application itself.

02 / Engineering decisions

Behaviour, boundaries & implementation choices.

01

Separate the supervisory responsibility

Placed monitoring and intervention in a separate application from strategy execution. This gave the supervisory logic its own application-level responsibility and a route to issue actions when a strategy application encountered a problem.

02

Turn monitoring into an intervention path

Implemented account/order observation and alerts alongside the ability to cancel outstanding orders, send a stop command to the strategy application and close positions. The supervisor could act as well as report.

03

Distinguish commands from completed actions

The conceptual model separates requesting a stop, cancellation or close from a resulting confirmed state. The interactive example uses synthetic confirmations to explain that distinction; it does not expose or reproduce the employer message protocol.

04

Retain controls inside the strategy application

The independent supervisor complemented the automated emergency logic already implemented in the strategy application. Both are part of the confirmed scope of the work.

03 / System responsibilities

The workflow at a glance.

  1. 01Accounts / orders
  2. 02RabbitMQ messaging
  3. 03Supervisor application
  4. 04Cancel outstanding orders
  5. 05Stop strategy / close positions

High-level model of responsibilities. Internal implementation details are omitted.

Application independence is a specific claim

A second application provides a separate place for supervisory logic. Whether it survives a particular outage depends on shared processes, network, broker state and infrastructure; those details are outside this public case study.

04 / Validation & outcomes

What the work demonstrates.

Implemented capabilities

Account/order monitoring, alerts, order cancellation, strategy-stop commands and position closing.

Messaging technology

RabbitMQ connected the supervisory workflow. Internal exchanges, queues, message contracts and deployment details are omitted.

Validation boundary

The portfolio describes implemented capabilities. It does not claim formal fault-injection coverage, guaranteed intervention or a recovery-time target.

Disclosure boundary

The view is deliberately abstract: no internal queue names, message schemas, thresholds, infrastructure or employer source code.

Diagrams and interactive examples are explanatory models. Employer code, account data and strategy logic remain confidential.

Next case studyPayments & back-office modernisation

LET’S CONNECT

Let’s talk
systems, execution & risk.

For engineering conversations and opportunities across trading platforms, financial backend systems and payments.

pouriajamali91@gmail.com Connect on LinkedIn