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

Limit Orders

Your entire order gets executed at your limit price, or better.

Should a better price be available than you originally indicated, the size of your order will stay as originally input, but you will be deleveraged if needed.

Examples

Alice sets a limit buy for 1 ETH at 1500, while it trades at 1600. For this she is willing to provide a 750 USD margin. A large sell order pushes the vAMM price below 1500, so the bot executes her order. Alice will end up with a position of 1 ETH at 2x leverage or less.

Bob sets a reduce-only limit sell for 100 Sushi at 18 USD. He already has a 100 Sushi long position and he only wants to take profit, hence the reduce only parameter. The bots will only execute the order at the given price or better.

PreviousMarket OrdersNextStop Orders

Last updated 3 years ago

Was this helpful?