Algorithmic Trading Platform

Architecture / Component

Overview

Tamper-evident event store for all trading activity, risk decisions, configuration changes, and system events. Persists all events within 1 second.

Referenced By 1

Architecture

Documents

Audit Log Event History README document repo://graph/nodes/dd7cb1cc6e1d5288825556a0233f4166/artifacts/audit-log-readme.md

Audit Log Event History

Responsibilities

Captures and persists all AuditEvent records for compliance, debugging, and reporting.

  • Subscribes to AuditEvent events on the EventBus
  • Stores events in an append-only log (in-memory for Milestone 1)
  • Provides query interface for retrieving audit history by symbol, event type, or time range

AuditEvent Types

Event Type Published By
SIGNAL_GENERATED Strategy Engine
RISK_APPROVED Risk Management Engine
RISK_REJECTED Risk Management Engine
ORDER_CREATED Order Management System
ORDER_REJECTED Order Management System
ORDER_FILLED Order Management System
ORDER_CANCELLED Order Management System

Event Flow

AuditEvent (any source) → AuditLog → stored in append-only log

Source

src/components/audit_log.py