> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roxom.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-Trade Prevention

> The engine cancels the older resting order when opposing orders from the same account would match.

The engine automatically prevents self-trading. If two opposing orders from the same account would trade with each other, the system cancels the older order (the one resting on the book) instead of executing a trade. This avoids any accidental **wash trades** and ensures reported trade volume reflects genuine trades between different parties.
