Skip to main content

Module rules

Module rules 

Source
Expand description

Composable position management rules.

Each Rule variant carries both its configuration and its mutable runtime state (e.g. whether it has already triggered). Rules are evaluated on every price tick for open positions and produce Effects that the engine applies.

Structs§

PositionView
Read-only snapshot of the position fields that rules need for evaluation.

Enums§

Rule
A composable management rule that is evaluated on every price update.