V12 Docs
Launch Spark
  • Overview
  • Trade
    • 🚀 Getting Started as a Trader
      • Wallet Setup
        • Fuel Wallet
        • Fuelet Wallet
        • Ethereum Wallets
      • Bridging Assets Using the Fuel Bridge
      • Deposit Assets using Testnet Faucet
      • Creating Orders
        • Order Book
          • Limit Order
          • Market Order
          • Cancelling an order
        • Swap
      • Fee Structure
  • Provide Liquidity
    • 📈 Getting Started as a Market Maker
      • Market Maker Incentive Program
      • Fee Structure
      • SLAs for Market Makers
  • Build
    • 👩‍💻 Getting Started as a Developer
      • Rust Integration Guide
        • Fuel and V12 Market Setup Tutorial
        • V12 Rust SDK
      • TypeScript SDK
      • Data Indexing
        • Envio Indexer Setup Guide
        • Indexer Queries
        • Connecting to the indexer via WebSocket
      • Order Book Technical Reference
  • Security
    • 🔐 Audit Report
  • More
    • 🏗️ V12 Architecture Overview
    • 🏆 Point Rewards Program
    • ⚖️ Terms
  • Community
    • Twitter
    • Telegram
    • Discord
    • GitHub
Powered by GitBook
On this page
  1. Trade
  2. 🚀 Getting Started as a Trader
  3. Creating Orders
  4. Order Book

Limit Order

PreviousOrder BookNextMarket Order

Last updated 8 months ago

What is a Limit Order?

A limit order is an order to buy or sell securities at a specific or more favorable price. If the market price doesn't match the specified price, the order won't be executed until the market price reaches the specified level. A limit order can be executed fully or partially. In the case of partial execution, only the portion that matches the counter-offer in terms of price and volume will be executed.

How to open a Limit Order
  1. Connect Wallet and Mint Tokens

  • Ensure you have connected your wallet and minted the necessary tokens. If not, please refer to the sections on , and .

  1. Choose the Market

  • Select the market where you want to exchange your tokens. For example, BTC-USDC, as shown in the screenshot.

  1. Select Order Type

  • Choose the type of order you want to create. In this tutorial, we will be using a Limit Order. Ensure that the "Limit" option is selected from the order type dropdown.

  1. Decide to Buy or Sell

  • Decide whether you want to buy or sell the base token. This can be done using the buy/sell switcher on the right side of the interface. Select "Buy" if you want to purchase the base token, or "Sell" if you want to sell it.

  1. Specify the Amount

  • Enter the amount of the base token you wish to exchange. You can manually input the amount or use the MAX button for a quick fill of the maximum available amount. Alternatively, you can use the slider to specify a percentage of your available funds.

    • Important: If you are providing ETH, ensure you leave enough for the transaction cost.

  1. Review Order Details

  • Check the order details, including the order size, price, and total amount. Make sure everything is correct before proceeding.

  1. Sign and Send Transaction

  • After reviewing your order, sign the transaction using your connected wallet and send it to the blockchain.

  1. Order Confirmation

  • Once the transaction is successfully processed, your order will be created and displayed in the order book.

Types of Limit Orders
  1. Good Till Cancelled (GTC): A limit order that remains active until executed or canceled. Often supported by API for long-term position holding.

  2. Immediate or Cancel (IOC): A limit order that must be executed immediately and fully or partially. The unfilled portion is canceled. Currently available via the SDK.

  3. Fill or Kill (FOK): A limit order that must be executed fully and immediately. If not possible, the order is fully canceled. Currently available via the SDK.

downloading and connecting a wallet
minting test assets