๐ช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.
Last updated
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.
Last updated
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).
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.
The Fermi SDK (ts) is available here, 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 sdk folder for examples on how to open trades in JS. More tutorials coming soon.