> For the complete documentation index, see [llms.txt](https://docs.mainfarm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mainfarm.io/products/perpetual-trading/terms-and-definitions.md).

# Terms and definitions

### Perpetual trading

Perpetual contracts or perpetual swaps are a special type of futures contracts with no expiration date.

### Leverage

Leverage is a trading mechanism. \
Traders can use it to increase their exposure to the market, allowing them to pay less than the full amount of investment. \
Simply put, you borrow money to increase your investment.

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

### Margin

Margin is a guarantee that you set for your positions with leverage.

### It has two modes of use:

#### 1) Cross Margin mode

* All cross positions on the same margin asset have a common cross margin balance of the asset.
* In case of liquidation of the asset, the full margin balance along with any remaining open positions on this asset may be confiscated.

#### 2) Isolated Margin mode

* Manage the risk for individual positions by limiting the amount of margin allocated to each of them.
* If the margin ratio for the position reaches 100%, the position will be liquidated.
* In this mode, margin can be added or removed from positions.

#### Margin Ratio

Margin Ratio = Maintenance Margin / Margin Balance. \
Your positions will be liquidated as soon as the Margin Ratio reaches 100%.

#### Maintenance Ratio

The minimum amount of margin balance needed to maintain your open positions.

#### Margin Balance

Margin Balance = Wallet Balance + Unrealized PNL. \
Your positions will be liquidated if Margin Balance <= Maintenance Margin.

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

### Assets

#### Deposit

Deposit funds into your futures account.

#### Withdraw

Withdraw funds from your futures account to your wallet.

#### Balance

Wallet balance = Total net transfer + Total realized gain + Total net funding fee - Total fee.

#### Unrealized PNL

Unrealized profit and loss on this position calculated based on Mark Price, and return on equity percentage.

### **Modes:**

#### Single Asset Mode

* Supports USDⓈ-M Futures trading by only using the single margin asset of the symbol.&#x20;
* PNL of the same margin asset positions can be offset.
* Supports Cross Margin Mode and Isolated Margin Mode.

#### Multi-Assets Mode

* USDⓈ-M Futures trading across multiple margin assets.
* PNL can be offset among the different margin asset positions.
* Only supports Cross Margin Mode.

{% hint style="warning" %}
*<mark style="color:orange;">**If there are open positions or open orders in USDⓈ-M Futures, Multi-Assets Mode cannot be activated.**</mark>* \
*<mark style="color:orange;">**Multi-Assets Mode only applies to USDⓈ-M Futures.**</mark>* \
*<mark style="color:orange;">**Before activating Multi-Assets Mode, please read the guide in detail to better manage USDⓈ-M Futures account risk accordingly when using Multi-Assets Mode.**</mark>*
{% endhint %}

### Orders

#### **Buy/Long**

Open a Long order. \
In this order you purchase an asset and wait to sell when the price goes up. \
"Buy" and "long" are used interchangeably.

#### **Sell/Short**

Open a Short order. \
In this order, you borrow an asset, sell it, and hope to buy it back when the price goes down. \
"Sell" and "short" are used interchangeably.

#### **Limit Order**

A limit order is an order to buy or sell at a specific price or better. \
Limit orders are not guaranteed to execute.

#### **Market Order**

A market order is an order to buy or sell at the best available current price. \
It is executed against the limit orders that were previously placed on the order book. \
When placing a market order, you will pay fees as a market taker.

#### **Stop Limit Order**

The easiest way to understand a stop-limit order is to break it down into stop price, and limit price.\
The stop price is simply the price that triggers the limit order, and the limit price is the price of the limit order that is triggered. \
This means that once your stop price has been reached, your limit order will be immediately placed on the order book.

#### **Stop Market Order**

Similar to a stop-limit order, a stop market order uses a stop price as a trigger. \
However, when the stop price is reached, it triggers a market order instead.

#### **Trailing Stop**

A trailing stop is an order type designed to lock in profits or limit losses as a trade moves favorably.\
Trailing stops only move if the price moves favorably. \
Once it moves to lock in a profit or reduce a loss, it does not move back in the other direction.

#### **Post Only**

Post-only Mode means that Traders can only place an Order if it would be posted to the Order Book as a Maker Order. \
An Order which would be posted as a Taker Order will be rejected. \
No Market Orders may be placed and no Orders will be filled. \
Resting orders may be canceled in post-only mode.

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

#### **Reduce Only**

Reduce-Only order will only reduce your position, not increase it.

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

#### **TIF instructions**

Allow you to specify the amount of time that your orders will remain active before they are executed or expired. \
You can select one of these options for TIF instructions

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

* **GTC** (Good Till Cancel)\
  The order will remain active until it is either filled or canceled.\
  &#x20;&#x20;
* **IOC** (Immediate Or Cancel)\
  The order will execute immediately (either fully or partially). \
  If it is only partially executed, the unfilled portion of the order will be canceled.<br>
* **FOK** (Fill Or Kill)\
  The order must be fully filled immediately. \
  If not, it won’t be executed at all.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mainfarm.io/products/perpetual-trading/terms-and-definitions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
