# Trading on Metal X DEX

**Deposit:** Any user/trader should have sufficient funds/tokens in their account before placing a trade.

**Withdraw:** User/trader can withdraw funds/tokens into their own account by cancelling the trades.

### **Place order**

**Limit Order:** A Limit order is a sell/buy order placed at a higher/lower or better price than the current or specific price. Price needs to be quoted along with assets to buy/sell.

<figure><img src="/files/WDno0eHsfqrbvlS7iZbd" alt=""><figcaption></figcaption></figure>

In this example, user want to trade XPR/XMD pair. `Buy XPR` window shows that user want to buy XPR worth 1 XMD at a price of 0.0035. Similarly `Sell XPR` window shows that user want to sell 222 XPR at a price of 0.0045

**Market Order:** Market orders executed immediately on placing order. If there no liquidity available, the orders will get cancelled immediately without pending in orderbook.

<figure><img src="/files/gi8AK4eInWkTNmPR9odv" alt=""><figcaption></figcaption></figure>

In this example, user want to trade XPR/XMD pair. `Buy XPR` window shows that user want to buy XPR worth 1 XMD at market price. Similarly `Sell XPR` window shows that user want to sell 300 XPR at market price.

**Stop-Loss Order:** Stoploss orders are used to liquidate assets on reaching certain price level. To trigger/move/promote this order, trigger price needs to be reached.

<figure><img src="/files/UM5AdAw2djaumuSXsDFG" alt=""><figcaption></figcaption></figure>

In this example, `Buy XPR` window shows that user want to place a stoploss order(cover the sold assets) at a trigger of 0.004 with a price of 0.0035. Once the trigger price is reached, the order will be promoted to orderbook and get matched with available orders at a price of 0.0035 or less.

**Take-Profit Order:** Like stoploss orders takeprofit orders are also used to liquidate assets on reaching certain price level. The order will be trigger on reaching the trigger price mentioned in the order.

<figure><img src="/files/hNl8sAxs4Hvv3Gewc726" alt=""><figcaption></figcaption></figure>

In this example, `Sell XPR` window shows that user want to place a takeprofit order(example: Book profits from the holding assets) at a trigger of 0.008 with a selling price of 0.0081. Once the trigger price is reached, the order will be promoted to orderbook and get matched with available orders at a price of 0.0081 or more.

**Cancel Order:** Pending orders(full or partial) can be cancelled. In the below mentioned example, order can be cancelled through `Actions`column

<figure><img src="/files/nPu12p5038f8v6wpA0oX" alt=""><figcaption></figcaption></figure>


---

# 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://docs.metalx.com/dex/what-is-metal-x/trading-on-metal-x-dex.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.
