Skip to content

Insights

An insight is AQE’s unit of trading intent. It starts as a candidate trade and can move through submission, broker execution, fills, partial closes, and final closure while preserving state that AQS can inspect later.

Use these pages as the entry point for the insight model:

Most strategies create insights from alpha models or strategy callbacks, then let insight pipes handle sizing, validation, submission, and management. AQS reads the same snapshot data, so the lifecycle you see in the desktop inspector is the lifecycle AQE executed.

  • aq-engine/src/core/insight/insight.rs
  • aq-engine/src/core/insight/snapshot.rs
  • aq-engine/src/core/strategy/mod.rs