Self-Trade Prevention Can Remove an Agent’s Resting Quote

By DX Research Group · · Execution mechanics

Two strategies on one address can interact without a trade receipt. A worked book case tracks the resting-order cancellation and the surviving aggressive intent.

Self-trade prevention changes the order set even when no trade occurs. We would reconcile resting quotes after another strategy sends an aggressive order on the same account. Hyperliquid documents cancellation of the resting order when same-address orders would trade. The cancellation carries no trade fee and does not appear as a trade-feed fill.

A missing fill can still conceal an order change

Illustrative case: an account has its own 2-unit sell at $100, followed by an external 3-unit sell at $100.10. Another worker submits a 4-unit buy bounded at $100.10. The own resting quote is canceled by prevention. The aggressive order can then encounter external liquidity, subject to venue matching and other checks. A ledger that only observes trades misses the removal of the account’s resting sell. The position outcome and the quote coverage outcome therefore require separate reconciliation.

Coordinate strategies around the actual account

Attach strategy ownership to each local order record, while using the venue’s account scope for self-interaction checks. Model sessions do not create separate venue identities. Before an aggressive action, inspect potentially conflicting own quotes and the authority each quote represents. Afterward, reconcile cancellations as well as fills. Test two workers with different objectives on one address and ensure the removed quote reaches its owner’s next state snapshot. Record interference separately from execution cost, since zero fees can coexist with lost quote coverage.

Measure strategy interference

Strategy-level reporting needs both the economic fills and the order removals caused by interference. A worker that manages passive liquidity may lose its quote because another worker deliberately crosses the account’s own price. The combined account can behave correctly while the individual worker’s local plan becomes obsolete. Feeding that cancellation back to its originating strategy preserves the distinction.

Our execution and reconciliation framework provides the broader mandate-to-outcome trace. The state and memory contract explains how the verified result should enter the next decision. These notes narrow those published methods to one execution boundary; the worked amounts above are illustrative and the test is a proposed local fixture. The source inspected for the venue-specific statements is the official Hyperliquid self-trade prevention.

A strategy should also retain the source of the interfering action. That attribution allows a reviewer to distinguish deliberate account-level coordination from two independent workers acting on incompatible snapshots of their own outstanding liquidity.

Sources

Related field notes