Mentioned in This Article
1. Aftermath Finance adds all-or-nothing orders
Aftermath Finance has added two new order types to its perpetual futures exchange on the Sui blockchain: atomic market orders and atomic TWAP orders. Both let traders bundle positions across several perpetuals markets into a single transaction, so every leg of the trade fills together or the entire order reverts, leaving the trader's account as it was.
The company announced the update through its official account on X. The goal is to solve a familiar problem for anyone running strategies that span more than one market: ending up with only half of an intended position because one part of the trade executed and another did not.
For Aftermath Finance, the change is aimed at traders who think in baskets rather than single bets. Pairs trades, hedged positions and portfolio-style allocations all depend on several pieces moving into place at once, and the new order types are designed to make that happen as one operation.
2. What does atomic mean in trading?
In computing, an atomic operation is one that cannot be divided: it either happens in full or does not happen at all. Aftermath has applied that idea to trading. A basket of positions in different perpetual futures markets is treated as one indivisible unit and submitted in a single transaction.
If any component of the basket cannot be completed, the whole bundle unwinds as though it had never been attempted. There is no in-between state in which some legs have filled and others are still waiting. The trader either receives the full structure they asked for or keeps the position they started with.
Blockchains are well suited to this kind of guarantee. On most networks, a transaction is processed as a single unit by the protocol itself, and if any step inside it fails, every change it would have made is discarded. That means the all-or-nothing behavior is enforced by the chain's own transaction rules rather than by a promise from an exchange operator.
3. The partial-fill problem
Partial fills are a long-standing risk for traders who execute strategies across several markets. They occur when an order made of multiple parts only partly goes through, typically because one market moves, liquidity disappears or a component order is rejected while the others succeed.
Consider a common example. A trader believes one asset will outperform another and decides to go long the first and short the second, betting on the gap between them rather than on the direction of the market as a whole. If the long leg fills and the short leg does not, the trader is left with an unhedged directional position, exposed to a broad market move they never intended to bet on.
Fixing that situation usually means scrambling to place the missing leg at whatever price is available, or closing the filled leg at a loss. Either way, the trader pays for an execution failure rather than for being wrong about the trade itself. Atomic market orders are built to eliminate that scenario by refusing to execute anything unless everything can execute.
4. How traders handled multi-leg trades before
Without atomic execution, traders building a multi-market position on a decentralized exchange typically had two choices. They could submit each leg as a separate order in quick succession and hope all of them filled at acceptable prices, or they could build the position slowly by hand, checking after each fill that the structure was still balanced.
Both approaches carry costs. Sending legs separately exposes the trader to the gap between orders, during which prices can move or liquidity can vanish. Building positions by hand takes time and attention, and it still leaves windows in which the portfolio is temporarily lopsided. Automated trading bots can speed the process up, but they cannot remove the basic risk that one order succeeds while another fails.
Some traders accept a degree of slippage as the price of certainty, using aggressive market orders on every leg to raise the odds that all of them execute. That approach reduces the chance of a partial fill but can make each trade more expensive, especially in thinner markets where large market orders move prices sharply.
Atomic orders change the shape of that tradeoff. Instead of paying extra to make a partial fill less likely, a trader can rely on the transaction itself to rule out a partial fill, and decide separately how much price movement they are willing to tolerate on each leg. The burden of keeping the legs in sync moves from the trader's own process to the structure of the order.
5. How atomic TWAP orders work
The second new order type extends a tool Aftermath already offered. A time-weighted average price, or TWAP, order breaks a large trade into smaller pieces and executes them at regular intervals over a set period. Spreading the trade out in this way limits the price impact a single large order would have, which matters most for traders moving significant size.
Atomic TWAP brings that approach to multi-market positions. Instead of slicing a single order, it slices an entire basket. At each interval, all the legs of the basket execute together, and each slice carries the same all-or-nothing guarantee as an atomic market order.
The result is a way to build a complex position gradually without the risk of the legs drifting out of balance. A trader assembling a long-short pair over several hours, for example, would have each portion of the long and short added at the same time, rather than accumulating one side faster than the other.
6. Why perpetual futures traders care
Perpetual futures, often called perps, are derivatives contracts that let traders take leveraged long or short positions on an asset without an expiry date. A periodic funding payment between long and short holders keeps the contract price close to the underlying market price. Perps are among the most heavily traded products in crypto, on both centralized exchanges and decentralized platforms.
Because perps allow both long and short exposure with margin, they are a natural tool for relative-value and hedging strategies. A trader can, for instance, hold several assets long and offset broad market risk with a short position elsewhere. Those strategies depend on precise execution across markets, which is exactly where partial fills cause trouble.
Multi-leg execution has historically been an area where large centralized venues held an advantage, thanks to sophisticated order-handling systems. Atomic orders help narrow that gap for on-chain trading, since the bundling is handled within a single blockchain transaction.
7. An exchange built entirely on-chain
Aftermath's perpetuals exchange runs its order book fully on the Sui blockchain rather than matching trades on private servers and settling them later. Every order, fill and cancellation is recorded on the network, where it can be inspected by anyone.
That architecture is what makes the new order types meaningful. On a hybrid exchange, where matching happens off-chain, an all-or-nothing guarantee would depend on the operator's systems behaving as promised. On a fully on-chain venue, the guarantee comes from the way the blockchain processes transactions, which removes the need to trust an intermediary for that part of the trade.
On-chain designs also mean traders interact with the exchange from their own wallets. The transparency is a key selling point for decentralized derivatives platforms, which compete with centralized exchanges by offering visible order books and settlement that users can verify.
8. What this means for traders and the Sui ecosystem
The traders who stand to benefit most are those running structured strategies: pairs trades, hedged positions and baskets that mimic a portfolio. For them, removing partial-fill risk simplifies execution and reduces one source of unplanned losses.
Larger traders may find atomic TWAP particularly useful. It lets them build complex positions step by step without pushing prices against themselves and without leaving the legs unbalanced along the way. Features of this kind can make a decentralized venue more attractive to participants who would otherwise default to centralized platforms.
For Sui, the update adds to the set of trading tools available on the network. Decentralized derivatives platforms tend to compete on execution quality as much as on fees, and order types that remove a practical pain point are one way to stand out.
9. The limits of all-or-nothing execution
Atomic execution solves one problem, not every problem. It prevents a trade from being left half-finished, but it does nothing to stop a bad trade. A basket that fills completely can still lose money if the idea behind it turns out to be wrong.
There is also a flip side to the guarantee. If even one leg of a basket cannot be executed, the entire order reverts. That is the feature working as designed, but traders need to understand when it is likely to happen. In volatile conditions, liquidity in a single market can thin out quickly, and a basket that includes that market may fail to execute at all. Traders who prefer partial execution to none at all may still find separate orders a better fit for some strategies.
In practice, that means traders using the new order types should watch liquidity across all the markets in a basket, not just the largest ones. A strategy that depends on a less liquid market will be only as reliable as that market's ability to absorb the order. Used with that in mind, atomic market and atomic TWAP orders give on-chain perps traders on Aftermath Finance a cleaner way to execute multi-market strategies.
