Apex Docs
  • Overview
  • How it works
    • The Basics of Perpetual Futures and Perpetual Protocol
    • APEX Limit Order Design
    • Comparison with order book exchanges
  • User Guide
    • Add xDai Chain to Your Wallet
    • Acquiring xDAI tokens
    • Getting USDC on xDai
    • Interacting with xDai
    • Spawn your smart wallet
    • Funding your smart wallet
    • Approve Spend
    • Fees
    • Creating Orders
      • Creating Limit orders
  • Order Types
    • Understanding Slippage
    • Market Orders
    • Limit Orders
    • Stop Orders
      • Stop Market
      • Stop Limit
      • Stop Market vs Stop Limit
      • Trailing Stop Orders
  • Developer Guide
    • Smart Contracts
      • Limit Order Book
      • Smart Wallet Factory
      • Smart Wallet
    • Keeper Bots
      • Overview
      • Running your own bot
      • Documentation
Powered by GitBook
On this page

Was this helpful?

  1. Order Types
  2. Stop Orders

Stop Market

PreviousStop OrdersNextStop Limit

Last updated 3 years ago

Was this helpful?

Once the trigger price is hit, a market order is created.

Please note - it is not possible to set a slippage parameter for stop market orders, so you can be vulnerable to sandwich attacks. For more information, please read the following article:

Examples

Bitcoin is currently trading at 55k. Alice decides to short 0.1 bitcoin once it trades under 51k. Alice sets a stop market sell order for 0.1 bitcoin at 51k. As soon as it trades under 51k the keeper-bots execute a market sell. Her execution price can be below 51k. Should the market shift rapidly, it can be substantially less than 51k USD.

Sushi is currently trading at 20 USD. Bob decides to buy sushi once sushi trades over 25 USD. He sets a stop market buy order with a trigger price at 25 USD. Once sushi trades over 25 USD, the keeper-bots will execute a market buy order on behalf of Bob. His execution price can be over 25 USD. Should the market shift rapidly, it can be substantially more than 25 USD.

Stop Market vs Stop Limit