# Trading

The first thing required to trade on Apemex is a compatible DeFi wallet. We recommend using Chrome or Brave Browser on desktop with the Metamask extension, and Metamask Browser on mobile.

1. Download & install Metamask browser / the Metamask browser extension from their official website: <https://metamask.io/>
2. Head over to Apemex.exchange and click 'Connect Wallet' at the top of the page.

![](https://1104754621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MksJ9m91ZS2ZAPyXKTp%2Fuploads%2F6QryaDwGQUYHWg6DO7LK%2FScreenshot%202022-01-06%20at%2000.36.36.png?alt=media\&token=4a78824d-6576-4624-98be-57ea0091a6ff)

3\. Navigate to your Metamask, choose your address, and click **NEXT** and then **CONNECT**.

4\. Deposit BNB and BUSD (on BSC) or MATIC and USDC (on Polygon) into your metamask wallet.

5\. You’re ready to deposit funds into your margin balance.

Note: If you are trading large amounts of funds, please consider getting a reputable hardware wallet such as [Trezor](https://trezor.com/).

## Deposit into your margin account

NOTE: Before trading on Apemex, it is important to note that like other DeFi projects, each interaction with the exchange requires a blockchain transaction (and the respective gas fee). If you are making any kind of deposit into the smart contract for the first time, you will need to issue an “APPROVE” transaction first in order for the smart contract to be able to use your funds for trading. If this is unclear, simply follow the step by step guide below.

Before trading, you will first need to deposit funds into your own personal margin account on the Apemex Protocol.

1. Make sure you have BUSD (Binance Smart Chain) or USDC (Polygon) in your wallet. If you have BNB or MATIC you can swap it to BUSD/USDC using **Swap Tokens**
2. On the left panel on Apemex.exchange under Margin Account Balances, press **Deposit**
3. If this is the first time you are depositing funds into this account, you will have to **Approve** the smart contract to use tokens on your behalf. Click **Approve** and confirm the transaction in your Metamask wallet.
4. Please wait until the transaction is confirmed.&#x20;
5. Input the amount you would like to add to your account and press **Deposit**
6. Confirm in your Metamask wallet, and wait for the transaction to confirm.

Congratulations, you now have funds in your margin account and are ready to start trading!

## Place a margin trade

1. Make sure you have deposited funds for trading as outlined above.
2. Navigate to Apemex.exchange/margin
3. Pick the desired token from the dropdown menu
4. Press “LONG” or “SHORT” on the right of the MARGIN tab and enter the desired commitment of your position (please note that the commitment is how much you put in, not the actual size of the position).
5. If you would like, you can add a stop loss (your position will automatically close if it goes below this %) or a take profit (your position will automatically close if it goes above this %).&#x20;
6. Click Open Position
7. Confirm in your Metamask wallet and wait for the transaction to go through.
8. Congratulations, you’ve placed a position and should now be able to see it in the positions tab as well as your current PnL (profit and loss percentage)!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unimex.gitbook.io/apemex/getting-started/trading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
