Order Types
Darkswap gives you advanced tools to control exactly how your token swaps are executed. Here’s how the three main order types work and how you should set prices for each step in the Darkswap interface:
1. Limit Order
How it works:
A limit order allows you to specify the exact exchange rate you want for your swap. Your order will only execute if the market rate matches or is better than your specified limit price.
User Flow:
Choose the tokens you want to swap (e.g., SepoliaETH → MockUSDC).
Enter the amount you are swapping.
Set your Limit Price (e.g., 4,650 USDC/ETH).
Your order will execute only if this rate or a better one is possible.
Tips:
The limit price should be reasonable relative to the current market rate, or your order may never fill.
Used for getting a better-than-market rate without the risk of market slippage.
2. Stop Limit Order
How it works:
A stop limit order is automated:
You define a Trigger Price (when the swap conditions are met),
and a Limit Price (the minimum/maximum rate at which you're willing to execute the swap).
When the market price hits your Trigger Price, your limit order is automatically placed at the Limit Price you set. The trade will execute if this limit rate is available in the liquidity pool.
User Flow:
Select the tokens and amounts in “You sell” and “You get.”
Enter a Trigger Price (the price at which your order becomes active, e.g., 5,000 USDC/ETH).
Enter a Limit Price (the lowest/highest rate you will accept, e.g., 4,950 USDC/ETH).
When market price reaches 5,000, your order tries to fill at 4,950 or better.
Tips:
Trigger Price should be where you want your trade logic to activate (e.g., protect against big market moves, breakouts, or breakdowns).
Limit Price should be close to the trigger price for best chances of being filled, but always set to your minimum accepted rate.
The "Create Order" button is disabled if you leave any required field blank—errors are shown to help you fix your input.
All swaps will show in your “Open Orders” or “Pending” section until filled, canceled, or expired.
3. Take Profit Order
How it works:
A take profit order lets you automatically lock in gains when a market price target is reached—no need to monitor the price continuously.
User Flow:
Decide which token pair and amounts you want to swap.
Enter a Trigger Price (the rate where you want to take profit, e.g., 5,500 USDC/ETH).
Enter a Limit Price (the worst rate you’re willing to accept for the swap, e.g., 5,480 USDC/ETH).
Tips:
The Trigger Price is your profit target—the level at which the order becomes active.
The Limit Price should be your minimum for a profit—ensuring the swap doesn't occur at a worse rate due to volatility.
These orders are especially useful for automated profit-taking in fast-moving DeFi markets.
Swapping Is Directional
Remember:
On Darkswap, every order is a swap—choose the token you want to give and the token you want to receive. The prices and logic apply to your chosen direction. There’s no explicit “buy” or “sell”—just smart, flexible swaps built to match your strategy and automate your DeFi workflow.
Last updated