Fermi DEX- Docs
  • ๐Ÿ‘‹Intro to Fermi
  • Overview
    • ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธVision
    • ๐Ÿ’กWhat we do
    • โœจFermi DEX: Features
    • ๐Ÿˆโ€โฌ›Background
  • Fermi DEX Usage Guide
    • Fermi DEX: How it works
      • ๐Ÿ“ชPosting a Limit Order
      • โœ…Finalizing Orders
      • ๐Ÿ”„Withdrawing Funds
    • ๐Ÿ› ๏ธGetting set up
      • ๐Ÿ“Getting tokens
      • ๐Ÿ”ซTrobleshooting
    • ๐ŸชTransfer Hooks Redefined
    • Custom settlement periods
  • Technical Overview
    • Overview v0.2 (DEPRECATED)
    • Technical Overview v1
      • Market Addresses (Devnet)
      • Key Structs
      • Instructions
      • Events
      • SDK
    • ๐ŸšงArchitecture
      • ๐Ÿ‘ฝJust In Time Liquidity
      • ๐ŸคMatching Logic
      • ๐Ÿ›ธLiquidity Abstraction
      • ๐ŸŒŠLiquidity Management Programs
    • ๐ŸงชTesting Locally
    • ๐Ÿ•น๏ธDemo - Fermi v0.2
    • ๐Ÿ“ฝ๏ธDemo - Fermi v1
    • ๐Ÿ“‡Github, Devnet Programs and PDAs
    • ๐Ÿ‘ฉโ€๐ŸŽคActors and Incentives
  • Use cases & Benefits
    • ๐Ÿ–‡๏ธLower Slippage than traditional DEXes
    • โ›๏ธPortfolio Margining Strategies
    • ๐ŸMarket Making on Fermi DEX
  • About us
    • ๐Ÿ‘‹Meet the Team
    • ๐Ÿ›ฃ๏ธRoadmap
    • ๐Ÿš“Next Steps
Powered by GitBook
On this page
  • Placing an Order with the GUI
  • Using the Fermi-SDK
  1. Fermi DEX Usage Guide
  2. Fermi DEX: How it works

Posting a Limit Order

You can post a limit order on any market in a similar fashion to Serum/Openbook DEX. Here we highlight the workflow of making such a trade.

PreviousFermi DEX: How it worksNextFinalizing Orders

Last updated 1 year ago

Here we will utilise the example of a USDC/WSOL market - however the same concepts apply identically to any given market. We will demonstrate how to place the order on the DEX UI (the easy way).

Placing an Order with the GUI

Enter the values for price and quantity, and the Size of the trade will be auto computed. Ensure you have enough collateral supplied to the protocol already (visible on top right), or be prepared to approve the marginal capital at the time of order placement. Click on "Bid" or "Ask" after filling in the details, and sign the transactions with your Phantom wallet. If successful, your order will show up in your "Open Orders" below. From here, you can cancel the trade, or finalize the trade (if matched). More trade customization options will also soon be made available in the Open Orders dashboard.

Using the Fermi-SDK

The Fermi SDK (ts) is available , while the rust SDK is currently under development, with an expected release date of 30th May, 2024.

Next, we also show how you can place the request manually, using solana/web3.js and anchor: this would be relevant to MMs who wish to make trading/arb bots, or otherwise programatically interact with the Fermi DEX. We recommend having a look at the for examples on how to open trades in JS. More tutorials coming soon.

๐Ÿ“ช
here
sdk folder
Fermi DEX interface, used for placing orders