Links

Paper trade on Devnet

OptiFi Test Instructions

For Developers

Go to the README file in the optifi-sdk repo. It includes test scripts for trading options and running an OMM on OptiFi exchange.

For Users

Trading Options

1. Firstly, you will need Sol Faucet to explore OptiFi Devnet. Simply enter your address and click DEVNET button to get fake SOL.
2. Go to OptiFi homepage:
3. Click Start Trading button to launch app. You should be able to see the following page:
4. Click Select Wallet button. Connect your Solana Wallet such as Phantom or Solflare, and please check you are in the Devnet Network.
5. Deposit some USDC to the user's margin account by clicking the Deposit button, and enter the amount to deposit. For testing USDC airdrop, click the Get USDC button, and you will get 100,000 USDC deposited. And you can click the Withdraw button to get USDC tokens back to your wallet.
6. Select an underlying asset such as BTC, and pick an instrument (a call option or put option) in the list to trade
7. Enter the order size and price, confirm in the pop-up window, and then approve the transaction in your wallet. Please note that you need to approve multiple transactions if it’s your first time to trade on the select market. Please wait for a minute to proceed with initializing the data.
8. You should be able to see the order under the Open Orders tab if it has not been filled, and you can cancel an order by clicking the Cancel button.
9. If the order is filled, you should be able to see your positions under the Positions tab.
10. And you can retrieve your USDC and instrument tokens back once your order is filled by clicking the Settle All button under the Unsettled Funds tab. Or you can choose to do nothing and passively wait for settlement to be done by our OptiFi crankers.
11. You can see all your transactions in the Order History at the bottom of page.
12. When you have long/short positions for an option, you can just wait for the expiry to come, and the OptiFi crankers will execute the fund settlement automatically for all users.
​

Stake to Earn on OMM

Users can also stake USDC to OMM vaults to earn profits:
1. Click the hamburger button at the top left of the homepage, and select OMM. It will redirect you to the OMM page.
2. At the left hand side, you can choose either the OMM which trades BTC options or the one trading ETH options. Select Deposit to proceed.
​
​
3. After deposit, you will receive some LP tokens representing your shares of the OMM pool. And you can check the transition record in the Transaction History table.
4. The OMM will use the fund in its liquidity pool to trade options on markets, and make profits from it. When you want to withdraw your liquidity from the OMM pool, you can go to the Withdraw section and enter the amount to withdraw. It will burn your LP tokens and send USDC tokens back to your wallet according to the amount of burned LP token.
​
​
​
​
​
​