5/5
## Mastering GMX: Advanced Order Types for Swaps and Leveraged Trading While executing trades instantly at the current market price using Market Orders is fundamental, the GMX decentralized trading platform offers more sophisticated order types for greater control over your entries and swaps. This lesson explores Limit Orders and Stop Market Orders, contrasting them with Market Orders and briefly touching upon Take Profit/Stop Loss orders for position management. ## Understanding Limit Orders on GMX Limit Orders allow you to specify the exact price at which you want your trade to execute. The order will only fill if the market reaches your specified price *or a more favorable price*. This provides precision but doesn't guarantee execution if the market never reaches your desired level. **Limit Swap** * **Concept:** Instead of swapping tokens immediately at the market rate, a Limit Swap lets you set a target price for the exchange. Your swap will only occur if the market price reaches or becomes better than your limit price. * **Example:** You want to swap 1 USDC for ETH, but only if the price of ETH drops to $2,000 or lower. You set a Limit Swap order with a Limit Price of 2000 USDC per ETH. If the market price of ETH falls to $2,000 or below, your order triggers, and the swap executes. Until then, the pending order will be visible in the "Orders" tab, showing the condition (e.g., Price < 2,000.00 USDC / ETH). **Limit Long** * **Concept:** Use a Limit Long order to open a leveraged long position only if the asset's price falls to or below your specified entry price. This is useful for attempting to "buy the dip" at a predetermined level. * **Example:** You want to open a long position on ETH using USDC as collateral, but you're aiming for an entry price of $2,000 or lower. You set a Limit Long order with a Limit Price of 2000 USD. Your long position will only be initiated if the market price of ETH drops to $2,000 or less. **Limit Short** * **Concept:** A Limit Short order allows you to open a leveraged short position only if the asset's price rises to or above your specified entry price. This strategy might be used if you anticipate resistance at a higher level and want to short from there. * **Condition:** Crucially, the Limit Price for a short order *must* be set *above* the current market price. * **Example:** You want to short ETH, but only if its price reaches $2,100 or higher. You set a Limit Short order with a Limit Price of 2100 USD. Your short position will only activate if the market price of ETH climbs to $2,100 or more. ## Managing Positions with Take Profit / Stop Loss (TP/SL) While not the focus of this detailed explanation, it's important to know that GMX also provides Take Profit (TP) and Stop Loss (SL) orders. These are distinct from the entry orders discussed above. TP/SL orders are used specifically to automatically *close an existing open position* when the price reaches a predetermined target (for profit) or threshold (to limit losses). ## Executing Trades with Stop Market Orders Stop Market Orders (sometimes called "Stop Orders" or "Stop Entry Orders") are designed to trigger a *market order* to *open* a position, but only *after* the price crosses a specific level set by you (the "stop price"). Unlike Limit Orders which aim for a specific price or better, Stop Market Orders are often used to enter the market *after* a confirmed price movement, such as a breakout or breakdown. Once triggered, they execute as a standard Market Order, meaning the fill price may vary slightly due to slippage. **Stop Market Long** * **Concept:** This order type lets you set a trigger price *above* the current market price. If the market price rises to or surpasses your stop price, a Market Order to open a long position is automatically submitted. This is often used to enter a long trade *after* the price breaks through a perceived resistance level. * **Condition:** The stop price *must* be set *above* the current market price. * **Example:** The current ETH price is around $2,045. You believe that if the price breaks above $2,060, it will continue higher. You set a Stop Market Long order with a Stop Price of 2060 USD. If and when the market price of ETH hits $2,060 or goes higher, a market order to open a long position is immediately placed. **Stop Market Short** * **Concept:** This allows you to set a trigger price *below* the current market price. If the market price falls to or below your stop price, a Market Order to open a short position is automatically executed. This is commonly used to enter a short trade *after* the price breaks down through a perceived support level. * **Condition:** The stop price *must* be set *below* the current market price. * **Example:** The current ETH price is around $2,046. You anticipate further downside if the price breaks below $2,040. You set a Stop Market Short order with a Stop Price of 2040 USD. If and when the market price of ETH drops to $2,040 or lower, a market order to open a short position is immediately placed. By understanding the differences between Market, Limit, and Stop Market orders, you can implement more nuanced trading strategies on GMX, aligning your execution with specific market conditions and price targets.
While executing trades instantly at the current market price using Market Orders is fundamental, the GMX decentralized trading platform offers more sophisticated order types for greater control over your entries and swaps. This lesson explores Limit Orders and Stop Market Orders, contrasting them with Market Orders and briefly touching upon Take Profit/Stop Loss orders for position management.
Limit Orders allow you to specify the exact price at which you want your trade to execute. The order will only fill if the market reaches your specified price or a more favorable price. This provides precision but doesn't guarantee execution if the market never reaches your desired level.
Limit Swap
Concept: Instead of swapping tokens immediately at the market rate, a Limit Swap lets you set a target price for the exchange. Your swap will only occur if the market price reaches or becomes better than your limit price.
Example: You want to swap 1 USDC for ETH, but only if the price of ETH drops to $2,000 or lower. You set a Limit Swap order with a Limit Price of 2000 USDC per ETH. If the market price of ETH falls to $2,000 or below, your order triggers, and the swap executes. Until then, the pending order will be visible in the "Orders" tab, showing the condition (e.g., Price < 2,000.00 USDC / ETH).
Limit Long
Concept: Use a Limit Long order to open a leveraged long position only if the asset's price falls to or below your specified entry price. This is useful for attempting to "buy the dip" at a predetermined level.
Example: You want to open a long position on ETH using USDC as collateral, but you're aiming for an entry price of $2,000 or lower. You set a Limit Long order with a Limit Price of 2000 USD. Your long position will only be initiated if the market price of ETH drops to $2,000 or less.
Limit Short
Concept: A Limit Short order allows you to open a leveraged short position only if the asset's price rises to or above your specified entry price. This strategy might be used if you anticipate resistance at a higher level and want to short from there.
Condition: Crucially, the Limit Price for a short order must be set above the current market price.
Example: You want to short ETH, but only if its price reaches $2,100 or higher. You set a Limit Short order with a Limit Price of 2100 USD. Your short position will only activate if the market price of ETH climbs to $2,100 or more.
While not the focus of this detailed explanation, it's important to know that GMX also provides Take Profit (TP) and Stop Loss (SL) orders. These are distinct from the entry orders discussed above. TP/SL orders are used specifically to automatically close an existing open position when the price reaches a predetermined target (for profit) or threshold (to limit losses).
Stop Market Orders (sometimes called "Stop Orders" or "Stop Entry Orders") are designed to trigger a market order to open a position, but only after the price crosses a specific level set by you (the "stop price"). Unlike Limit Orders which aim for a specific price or better, Stop Market Orders are often used to enter the market after a confirmed price movement, such as a breakout or breakdown. Once triggered, they execute as a standard Market Order, meaning the fill price may vary slightly due to slippage.
Stop Market Long
Concept: This order type lets you set a trigger price above the current market price. If the market price rises to or surpasses your stop price, a Market Order to open a long position is automatically submitted. This is often used to enter a long trade after the price breaks through a perceived resistance level.
Condition: The stop price must be set above the current market price.
Example: The current ETH price is around $2,045. You believe that if the price breaks above $2,060, it will continue higher. You set a Stop Market Long order with a Stop Price of 2060 USD. If and when the market price of ETH hits $2,060 or goes higher, a market order to open a long position is immediately placed.
Stop Market Short
Concept: This allows you to set a trigger price below the current market price. If the market price falls to or below your stop price, a Market Order to open a short position is automatically executed. This is commonly used to enter a short trade after the price breaks down through a perceived support level.
Condition: The stop price must be set below the current market price.
Example: The current ETH price is around $2,046. You anticipate further downside if the price breaks below $2,040. You set a Stop Market Short order with a Stop Price of 2040 USD. If and when the market price of ETH drops to $2,040 or lower, a market order to open a short position is immediately placed.
By understanding the differences between Market, Limit, and Stop Market orders, you can implement more nuanced trading strategies on GMX, aligning your execution with specific market conditions and price targets.
An essential walkthrough to GMX Trading Orders Explained - Master GMX trading with Limit and Stop Market orders for precise entry points on swaps and leveraged trades. Learn the key differences from Market orders and the function of TP/SL for position management.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Cyfrin Updraft has partnered with GMX to provide SSCD+ certifications vouchers to the first 25 students who demonstrate the completion of this course and are building on top of GMX. Join the GMX Discord server to redeem your coupon, or navigate to the docs to learn more!
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025
Duration: 8min
Duration: 1h 19min
Duration: 1h 24min
Duration: 16min
Duration: 11min
Duration: 11min
Duration: 6min
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025