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:
- Insight structure explains the core fields and what an insight stores.
- Insight lifecycle covers the state machine, submission, fills, expiry, and state history.
- Advanced insight management covers child insights, broker-managed legs, and partial closes.
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.
Related source
Section titled “Related source”aq-engine/src/core/insight/insight.rsaq-engine/src/core/insight/snapshot.rsaq-engine/src/core/strategy/mod.rs
We use essential cookies and storage for sign-in, account security, colour theme preferences, this notice, and required PostHog internal usage, session quality, and reliability metrics. We do not use advertising cookies.
