Apr 2026 · 8 min read
An onchain stop loss automatically sells a token when its price falls to a level you define, protecting you from deeper losses without requiring manual monitoring. On Definitive's onchain trading terminal, stop-loss and take-profit orders execute fully onchain — gasless, with smart routing across 100+ DEXs.
In traditional finance, a stop loss is a standing instruction to sell a security if it drops to a specified price. Onchain, the mechanics differ because there is no centralized exchange holding your order book.
Price monitoring is off-chain; execution is onchain. Most DeFi stop-loss implementations monitor price feeds (usually from onchain oracles or DEX spot prices) and trigger an onchain transaction when the condition is met. The transaction itself — the actual swap — is fully onchain and settled on the blockchain.
Trigger price vs. execution price. The trigger price is the level that activates your order. The execution price is what you actually receive. In volatile or low-liquidity markets, these can differ significantly — this is why slippage configuration matters for stop-loss orders.
Why stop losses in DeFi are harder than in CeFi. Centralized exchanges hold your funds and can execute instantly from their internal order book. In DeFi, execution requires a transaction, which takes block time. During fast market drops, this latency — combined with liquidity depth — determines your actual fill quality.
Definitive addresses this by routing stop-loss execution across 100+ DEXs and 15+ offchain PMMs simultaneously, finding the best available price at the moment of trigger. For more background, see Onchain Stop Loss and Take Profit.
Step 1: Connect your wallet Go to definitive.fi and connect your wallet. Definitive supports EOA wallets (MetaMask, Rabby, etc.) and institutional custody providers including Fireblocks, Fordefi, Safe, and Squads.
Step 2: Select the Stop order type In the trading interface, select "Stop" from the order type menu. You'll see fields for: input token (what you're selling if triggered), output token (what you receive), amount, and trigger price.
Step 3: Enter your position details Input the token you want to protect and the amount you want to sell if the stop triggers. For example: sell 10,000 USDC worth of ETH if ETH drops to $2,800.
Step 4: Set your trigger price Enter the price at which you want the stop loss to activate. This should be the level at which you've decided you no longer want to hold the position — not a rough estimate, but a deliberate risk-management decision.
Step 5: Configure slippage tolerance Set your acceptable slippage for execution. For liquid assets (ETH, BTC, large stables), 0.5–1% is typically sufficient. For mid-cap tokens, 1–3% may be necessary to guarantee fill. Setting slippage too tight can cause your stop to fail to execute; too wide can result in poor fills.
Step 6: Choose your output token Decide what you want to receive when your stop triggers — typically a stablecoin (USDC, USDT) to preserve capital. Definitive routes the swap to the best available pool for your output token at execution time.
Step 7: Review and sign Confirm the order details — trigger price, size, slippage, output token. Definitive sponsors gas, so no native token balance is needed. Sign with your wallet to place the order.
Step 8: Monitor your open orders Your stop loss appears in your open orders panel. It remains active until triggered or manually cancelled. You can modify or cancel it at any time before trigger.
Setting the right trigger price is a risk management decision, not a technical one. But a few principles help.
Don't place stops at obvious round numbers. Round numbers (e.g., $3,000 ETH, $1.00 for an alt) attract clustering — many traders set stops at the same level, which means a momentary dip through that level can cascade into rapid execution and poor fills for everyone. Place your stop slightly below key levels, not at them.
Account for volatility. A stop set too close to current price will trigger on normal market noise, not genuine trend reversals. For high-volatility assets, give yourself room — otherwise you'll be stopped out of a position that recovers within hours.
Use ATR or recent range as a guide. One practical approach: look at the asset's recent daily range (high minus low). Place your stop at least one full daily range below your entry. This gives the position room to breathe while still providing meaningful protection.
For larger positions, consider tiered stops. Rather than stopping your entire position at one price, set stops at multiple levels — for example, sell 50% at $2,800 and 50% at $2,600. This averages your exit price and reduces the risk of a single bad fill wiping out a large position.
Pair stops with take-profit orders. Definitive supports both stop-loss and take-profit orders, and you can run them simultaneously on the same position. Setting a take-profit above and a stop-loss below creates a bracketed position with defined risk-reward. See Onchain Stop Loss and Take Profit for how to configure this.
Mistake 1: Setting slippage too low for volatile conditions. During a sharp drop, liquidity dries up fast. A stop order with 0.1% slippage on a mid-cap token will fail to execute repeatedly until slippage widens — by which point you've moved well past your intended exit. Set realistic slippage based on the asset's typical bid-ask spread and liquidity depth.
Mistake 2: Forgetting to cancel stops after closing positions manually. If you sell a position manually and forget an active stop order, the stop may still trigger if your wallet still holds the token (or if you reacquire it). Always review open orders after manual trades.
Mistake 3: Treating the trigger price as the execution price. Especially in fast markets, your execution price will be at or below your trigger price, not exactly at it. Build this into your risk calculations — if you need at minimum $2,750 per ETH to preserve your capital, set your trigger at $2,775 or $2,800.
Mistake 4: Not accounting for oracle lag. Price feeds used to trigger stops can lag spot prices during extreme volatility. On Definitive, price monitoring uses DEX spot prices across integrated pools, which update in real time as trades occur. Nonetheless, during flash crashes, a few blocks of lag can mean meaningful price difference.
Mistake 5: Using stop losses as a substitute for position sizing. A stop loss limits loss on a given trade, but it doesn't fix oversized positions. If you're trading with 10x your normal size, even a well-placed stop can represent an enormous dollar loss. Size your positions correctly before relying on stops.
Yes. If slippage tolerance is set too tight, liquidity is insufficient, or network congestion delays the transaction, a stop-loss order may fail to fill at the trigger level. Definitive's smart routing across 100+ DEXs reduces this risk significantly, but it cannot eliminate it entirely in extreme market conditions.
A stop loss (or stop-market) executes at market price once triggered — prioritizing execution over price. A stop-limit adds a price floor: if the market is below your limit at trigger, the order won't execute. Stop-limit orders offer price protection but carry the risk of non-execution in fast markets.
No. Definitive sponsors gas on all supported chains, including Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche, BNB, HyperEVM, and Solana. You need only the token you want to protect — no native gas token required. See Gasless Crypto Trading for details.
Yes. Definitive supports simultaneous stop-loss and take-profit orders on the same position. You configure each independently — the first one to trigger cancels the remaining order (or you can choose to let both remain active, depending on your configuration).
Stop-loss execution is a known vulnerability for MEV (maximal extractable value) attacks — particularly sandwich attacks that push price down, trigger your stop, and profit from the slippage. Definitive routes execution through MEV-protected paths and offchain PMMs where possible. See MEV Protected Trading for more on how this works.
Ready to trade onchain with institutional-grade execution? Try Definitive — gasless, multichain, and built for serious traders.