> For the complete documentation index, see [llms.txt](https://optifi.gitbook.io/optifi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://optifi.gitbook.io/optifi/trade-on-optifi/trade-on-mainnet.md).

# Trade on Mainnet

{% hint style="warning" %}
OptiFi v1 has been sunsetted on Mainnet. Please switch to [Devnet](https://devnet.optifi.app/options).&#x20;

OptiFi v2 is under active development. If you have any feedback, come to our [Discord](https://discord.com/invite/qJ7rumqBQJ), and say hi to the team!
{% endhint %}

* [**Trading Options**](#trading-options)
  1. Go to [OptiFi Options](https://www.optifi.app/options)
  2. Connect your Solana wallet
  3. Create Account
  4. Deposit USDC
  5. Start Trading
* [**Stake to Earn on OMM**](#save-to-earn-on-amm)
  1. Enter the [OMM page](https://www.optifi.app/amm)
  2. Choose OMM Pool
  3. Confirm Deposit

### Trading Options

#### **1. Go to** [**OptiFi Options**](https://www.optifi.app/options)

You should be able to see the following pag&#x65;**:**

![](/files/TEfN5kcDykvg6sjI7ARz)

#### **2. Connect your Solana wallet**&#x20;

Click **Select Wallet** button. Connect your Solana Wallet such as [Phantom](https://phantom.app/) or [Solflare](https://solflare.com/):

![](/files/rfgS1xsdZZtlFFRKxisR)

If it's your first time connecting the wallet on OptiFi, you'll be asked to approve the connection:

![](/files/oIdSz7hWIyaowIoWahdP)

However, if you don't see this, please check your wallet network setting is in the **Mainnet Beta**.

![](/files/6EUaUDs6wZ9XVoSidMs6)

When you've connected your wallet successfully, you should be able to see the message below. Please click "**I Understand**" and move to the next step.

![](/files/oGaQmjZrg7jotYEIqxKq)

**3. Create Account**

You will need to have Solana ($SOL) as the gas fee to do any actions on OptiFi, including create account. It will require around 0.06577SOL as the rental fee to create account.&#x20;

It may take a while if the Solana network is experiencing degraded performance.

![](/files/NBSDY0HcZxOwgdBzmfTs)

![](/files/ax1p0aM3XOYaNJFtU1Cf)

#### 4. Deposit USDC

To start trading, you need to deposit USDC to your account by clicking the **Deposit** button.

![](/files/FjTVpxAA09tHR06iCUbD)

Enter the deposit amount or drive the progress bar to deposit. After confirming the amount, click "**Deposit**" and approve the transaction on your wallet.

![](/files/BUR4oyinUBgsGMMCsCKX)

#### 5. Start Trading

5.1 Select an underlying asset you'd like to trade, such as BTC, and pick an instrument (a call option or put option) on the options market.

![](/files/VH0PSKLMkqoV3B08QZY4)

5.2 Enter the order size and price. You can pick order type by opening the **Time in Force** dropdown menu. There're 3 order types:

* Limit Order
* Post-Only Order
* IOC (Immediate or Canceled) Order

![](/files/raGDLm73af9vsbY8ySpX)

5.3 Confirm to place the trade in the pop-up window, and then approve the transaction in your wallet. Please note that you need to approve **two transactions** if it’s your **first time to trade on the selected market**. It'll cost around 0.03SOL to proceed. Please wait for a minute to proceed with initializing the data.

![](/files/B169DVygZZdugLR9tDmv)

![](/files/FeCzKgONuIdR0t5gWpAI)

5.4 If the order is filled instantly, you should be able to see your position updated under the **Positions** tab. If you want to close the position, click "**Close Position**" here.

![](/files/aB91h0hSJcMhQZKiPXDU)

5.5 You should be able to see the order under the **Open Orders** tab if it has not been fully filled, and you can cancel an order by clicking the **Cancel** button.

![](/files/n2sYGTvEf0XHCd9jNZvy)

5.6 And you can retrieve your USDC and instrument tokens back once your order is filled by clicking the **Settle** 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. This is an example for a Long BTC Call with Unsettled Size, and a Short ETH Put with Unsettled USDC:

![](/files/SKOXG9izRI9CCPMzbN2G)

5.7 You can see all your transactions in the **Order History** at the bottom of page.

![](https://lh4.googleusercontent.com/YwyJIDdH4X0L2Gp7KOeaCz1H0klvaFrQuuF1dpieJ9hCdFJeUNTunH9qnlojWOSKhwdwGZH_pJbHyAoRewDj2fFBs9BQd0VOxESWq0VYaiM2t78dYqS9o_k1HMyRsKE0qjDmJ7_d)

5.8 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.

### Save to Earn on OMM

Users can also deposit USDC to OMM vaults to earn profits:

#### 1. Enter the [OMM page](https://www.optifi.app/amm)

![](/files/H19ijK6firFww0rZHvOj)

#### 2. Choose OMM Pool

At the left hand side, you can choose either the OMM which trades BTC options or the one trading ETH options.

![](https://lh6.googleusercontent.com/7NNp4HKMSzh3udcd9Dmp144jA3lX-zNDij6cecraMRLQT3E7dGAzcJF8gSkg5i1P3mw1bgPQCJfHylhdVBpALkn2awwrsSuA_uk5V29HHMczVqYrd3dNxW4zMGbTxn90JB1wsrM8)

#### 3. Confirm Deposit

Enter the deposit amount or drive the progress bar. After confirming the amount, click "**Deposit**" and approve the transaction on your wallet.

![](/files/weZxSKSvqUEcOkMxmfC5)

After deposit successfully, 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.

![](/files/fettTru5ADtR1kAXiZ4K)

The OMM will use the fund in its liquidity pool to trade [options](https://www.optifi.app/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.

![](/files/cdB7jTQmo9hcO3CKmZC3)
