All work

Entry 03 of 03

Work

Rule-Based Execution

Trace a test order from its trigger to its acknowledgement

  • Python
  • REST APIs
  • SQLite
Read the walkthrough
  1. Check the sample rule
  2. Create a test order
  3. Record the acknowledgement

Overview

I turn specified conditions into explicit checks and keep a record of which input caused an order. A simulated run makes it possible to inspect the trigger, order request and acknowledgement together.

What it covers

  • Event-driven rules
  • Test orders
  • Order references
  • Acknowledgement logs

Tracing a test order

In the demo, a sample quote satisfies the configured condition. The simulator creates a paper order and returns its reference. An acknowledgement records receipt; a fill would be a separate event.