> 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;**:**

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FoCZzZSXQZtDYzOfJu7Fp%2Fimage.png?alt=media\&token=e9e91ed3-127a-46a8-bac0-7ecff350eb31)

#### **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/):

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FqPEDdHYGHFy4YUQn1ci0%2Fimage.png?alt=media\&token=823f6be6-e628-48c2-b735-dde323f3c7e8)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FKTkhERbNkLDSNrLRvNGA%2Fimage.png?alt=media\&token=f4763ad3-2d4c-4d83-a185-46c5882312f9)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FoGOAaeS7XLhNuJPDT5zG%2Fimage.png?alt=media\&token=ca07e255-89a9-4362-874f-c0570283acac)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2Fmjmw9BYwD5L2FcngrvzX%2Fimage.png?alt=media\&token=36ff4212-7cd0-4aab-8ed3-31d185ca9044)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FiqHXcd6bzencQtkBsv4y%2Fimage.png?alt=media\&token=bd2440b3-6365-4a45-9335-d118ff35cfc1)

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FOeyBsTNbPieWvFpGILEG%2Fimage.png?alt=media\&token=73b09830-52c5-43a7-8bcf-1b0f61f44332)

#### 4. Deposit USDC

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FN5r8s3pLvSTFkCHHTa9S%2Fimage.png?alt=media\&token=179505e5-4644-45d1-8058-56e0417c44c6)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FmFh0bT6OConDygkDS5AM%2Fimage.png?alt=media\&token=f6196b90-a802-4e54-9bf8-b9909c33fc59)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FzkvtgU3hSulgihci8Lh8%2Fimage.png?alt=media\&token=9bb91205-aac7-4fc2-810e-f18a5e8e5bff)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FNZFU6cEpSwWdEb8QCsDh%2Fimage.png?alt=media\&token=9f87d5fa-e060-4197-ae4d-cb8b074c86a5)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FzDJUBsFmpXHTsnWmpI5r%2Fimage.png?alt=media\&token=3fc71361-96db-4596-abad-a26488fcd1c3)

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FlNciWyWMErLQDPeudHtT%2Fimage.png?alt=media\&token=c51dde33-ba2a-4eca-8eab-a097cfb9def9)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2F9YfXnjqJ50a5KBvj91Q6%2Fimage.png?alt=media\&token=7af282ca-de82-4d67-b2b3-3d4ea60b0935)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FCthSnkijtJbEfqyGhYXJ%2Fimage.png?alt=media\&token=9439eb25-7e10-4d42-89a0-aab2d56cb49a)

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:

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2FHxZyRtK6Em92f3ivayjT%2Fimage.png?alt=media\&token=580f8b00-0d08-4db4-9a1a-2a70abade580)

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)

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2Ftb6vVWFZhVzrGF2txyDJ%2Fimage.png?alt=media\&token=19fb5de1-be45-4b5c-a6af-5d9418f92ca6)

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

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2F0hqInIgRKMRGEAfssBcM%2Fimage.png?alt=media\&token=435b3da9-330e-4f07-a44f-e54e2317f123)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2F9hob2C3Z5BMh18PrTYGV%2Fimage.png?alt=media\&token=6c5ad39a-2b80-45bc-87c1-934635c20133)

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.

![](https://1179375515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtSx0tled0WtDBZ2uaLl%2Fuploads%2F39DZxf4lKk3h3eyZj4Ho%2Fimage.png?alt=media\&token=a6e715de-9217-4a45-b216-a4940f47d6f5)
