Veyronn Documentation
Conditional Automation
Create TP/SL and rule-based actions that execute while the wallet is offline.

Conditional orders are stored in VeyronnProtocol and evaluated atomically with their action.
Rule fields
A rule binds:
- owner, market, optional strategy, and optional position
- trigger type and comparator
- one or two threshold values
- open, reduce, or close action
- side, size, and collateral when relevant
- cooldown and expiry
- reduce-only requirement
- maximum slippage and confidence
- minimum oracle freshness
Comparator 0 means at or below. Comparator 1 means at or above.
Keeper behavior
The reactive loop observes changed markets approximately once per second. It selects relevant active orders, fetches a fresh signed report, simulates the complete transaction, and submits only actionable rules. Periodic scans provide recovery when a stream event is missed.
Atomicity
The same transaction:
- verifies the report
- checks the rule status and trigger
- applies protocol risk controls
- executes the requested action
- marks the rule executed
A failed action leaves the rule unexecuted. After one order in a TP/SL pair fully closes its position, the keeper retires the sibling from its actionable queue.
Monitoring
The Keeper Automation page shows saved rules, recent worker events, delegated-session state, failures, and links to the builder and portfolio.