> For the complete documentation index, see [llms.txt](https://docs.asterdex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.asterdex.com/trading/perpetuals/grid-2.0.md).

# Grid 2.0

## Perpetual Grid 2.0&#x20;

### Overview

Perpetual Grid 2.0 lets you run automated Grid strategies independently from your regular Perpetual trading.

Each Grid strategy operates through a dedicated subaccount, keeping its positions and margin separate from your main Perpetual account. This means you can run Grid strategies and trade Perpetuals at the same time without their positions interfering with each other.

When you create a Grid strategy, the initial margin is automatically transferred from your Perpetual account to its Grid Bot subaccount.&#x20;

Perpetual Grid 2.0 supports two margin modes:

* Cross Margin — Margin is shared among Cross Grid strategies using the same settlement asset.
* Isolated Margin — Margin is managed separately for each Grid strategy.

When the Grid is fully closed, the remaining funds are automatically transferred back to your Perpetual account.&#x20;

Important: Transferring funds to a Grid Bot reduces the available balance in your Perpetual account and may affect the risk of your existing Perpetual positions.

***

## Grid Subaccount Structure

### Cross Margin

Cross Grid strategies using the same settlement asset share the same Cross margin balance.

You can run up to one Cross Grid per trading pair.

For example, you can have:

* One BTCUSDT Cross Grid
* One ETHUSDT Cross Grid

These strategies share the Cross margin pool for the same settlement asset.

Because the margin is shared, a liquidation event can affect all Cross Grid strategies using that shared margin pool. Manage the margin of each Cross Grid carefully to control your overall liquidation risk.

### Isolated Margin

Each Isolated Grid runs in its own dedicated subaccount with a separate margin.

You can run up to 50 Isolated Grid strategies across your account, with no per-trading pair limit.

For example, you can run multiple Isolated Grids on the same trading pair, with each strategy maintaining its own isolated margin and liquidation risk.

***

## Grid Margin Asset

Grid margin must be provided in the settlement asset of the selected market.

For example, if a market requires USDT as its settlement asset, you must have sufficient USDT in your Futures account to create the Grid.

Aster does not automatically convert another asset into the required settlement asset.

If your account does not have enough of the required asset, the Grid cannot be created.

***

## Creating a Grid

Grid 2.0 is currently available for Main Accounts only. Grid strategies created from user Subaccounts will continue to operate under the existing Grid mechanism.

When you create a new Grid:

1. Configure your trading pair, price range, grid quantity, initial margin, and margin mode.
2. Confirm your Grid settings.
3. Your initial margin is transferred from your Futures account to the Grid Bot account.
4. The Grid strategy starts running.

The transfer is shown in your transaction history as Trading bot transfer.

#### Important

Creating a Grid transfers funds out of your Perpetual account. This reduces the funds available in your Perpetual account, which may affect the risk of your other Perpetual positions.

Review your available Perpetual balance and overall account risk before creating a Grid.

***

## Managing Your Grid Bots

The Grid Bot page provides an overview of your Grid strategies and assets.

You can view:

* Total Value
* Cross Margin and Isolated Margin balances
* Running Grid strategies
* Grid assets
* Unrealized PnL
* Margin Ratio
* Initial / Invested Margin
* Estimated liquidation price

You can also access details and adjust margin for individual Grid strategies.

***

## Adjust Margin

You can add or remove margin from a running Grid.

#### Add Margin

Adding margin increases the funds supporting the Grid and can improve its liquidation risk.

#### Remove Margin

You can remove only the amount available for transfer from the Grid.

Removing margin can increase liquidation risk. Do not remove margin if doing so could leave the Grid under-margined.

Adjusting margin does not change the Grid's number of grids or existing position size. It only changes the amount of margin supporting the strategy.

#### Cross vs. Isolated

For Cross Grid strategies, adjusting margin affects the shared Cross margin pool for the relevant settlement asset.

For Isolated Grid strategies, the adjustment applies only to that individual Grid.

The margin mode cannot be changed while a Grid is running.

***

## Grid Details

Open Details to view information about an individual Grid, including:

* Trading pair
* Price range
* Grid quantity
* Leverage
* Margin mode
* Grid status
* Matched profit
* Unmatched PnL
* Funding fees
* Trading fees
* Position information
* Margin balance
* Estimated liquidation price

For a Grid that has been stopped while retaining an open position, the Details page also allows you to manage and close the remaining position.\
\ <br>

Grid portfolio:\
The recording behavior depends on the account type and grid strategy version:

Grid 2.0 — For grid strategies running under grid 2.0 , trading volume and PnL are recorded under the Grid account.

Legacy Grid (Old Version) — For grid strategies running under the legacy grid framework, trading volume and PnL are recorded under the Perp account.

Special Case: Regular Sub-Account — Regular sub-accounts do not support the grid 2.0. Therefore, any portfolio data (volume and PnL) generated by grid strategies under a regular sub-account will be recorded under the Perp account.

<br>

***

## Ending a Grid

When ending a running Grid, you can choose between two options:

#### Close Positions Immediately

Aster will:

1. Cancel the Grid's open orders.
2. Close the Grid's positions at market price.
3. Complete the remaining settlement.
4. Return the applicable funds to your Futures account.

The transfer back to your Futures account is recorded as Trading bot transfer.

#### Keep Positions Open

You can also end the Grid strategy while keeping its existing position open.

In this case:

* Grid orders are cancelled.
* The remaining position stays open.
* The Grid enters Stopped - position open.
* The margin supporting the position remains allocated to the Grid.
* You can later close the position partially or fully from Details.
* You can add margin while the position remains open.
* Once the position is fully closed, the remaining applicable funds are returned to your Futures account.

A Grid in Stopped - position open can still be liquidated if its remaining position does not have sufficient margin.

To manage the remaining position, open the Grid's Details page and go to the Position section. You can close the position partially or fully using either a Market or Limit order. If you place a Limit order, you can view the open order in the Grid's Details page.

Once the position is fully closed, the remaining applicable funds are returned to your Futures account.

***

## Cross Margin Fund Return

Cross Grid strategies using the same settlement asset share a common margin pool.

Therefore, if you end one Cross Grid while other Cross Grids using the same settlement asset are still active, the shared margin pool may retain funds needed to support those remaining strategies.

When the final Cross Grid using that settlement asset is closed, the remaining balance in the shared Grid Bot account is returned and the account is closed.

This means the amount returned when ending an individual Cross Grid may differ from the total balance displayed for the shared Cross margin pool.

***

## Trading Bot Transfer Records

When funds are moved between your Futures account and the Grid Bot account, the transaction history records the movement as Trading bot transfer.

Generally:

* Creating a Grid → funds are transferred into the Grid Bot account.
* Finalizing a Grid → applicable remaining funds are transferred back to your Futures account.

If you choose to keep a position open when ending a Grid, the return transfer occurs only after the remaining position is fully closed.

***

## Grid PnL

Grid Bot displays the performance of each strategy using several PnL components:

* Matched Profit — realized profit generated from completed Grid trades.
* Unmatched PnL — unrealized profit or loss from open Grid positions.
* Funding Fee — funding payments associated with the Grid position.
* Trading Fees — applicable trading fees.

Unrealized PnL is calculated using the Mark Price.

***

## Important Risk Information

#### Cross Margin Risk

Cross Grid strategies using the same settlement asset share margin. If the shared Cross margin pool is liquidated, multiple Cross Grid strategies using that pool may be affected.

#### Isolated Margin Risk

Each Isolated Grid has its own margin. A liquidation of one Isolated Grid does not directly use the margin allocated to another Isolated Grid.

#### Futures Account Balance

Creating a Grid transfers its initial margin from your Futures account. This reduces the funds available in your Futures account and may affect the margin and liquidation risk of other Futures positions.

#### Removing Margin

Removing margin can increase liquidation risk. Only remove funds that are available for transfer.

#### Stopped - Position Open

Ending a Grid without closing its position does not remove the position or its liquidation risk. The position remains open until you close it or it is liquidated.

***

\
\
\ <br>

## FAQ

#### Can I run a Grid and manually trade the same trading pair?

Yes. Grid Bot positions and orders are managed separately from your main Futures positions and orders, allowing you to run a Grid on the same market as your manual Futures trading.

#### How many Cross Grids can I run?

You can run one Cross Grid per trading pair.

#### How many Isolated Grids can I run?

You can run up to 50 Isolated Grid strategies across your account. There is no per-trading pair limit.

#### Can I run multiple Grids on the same trading pair?

Yes. Multiple Grids can run on the same trading pair when using Isolated Margin.

For Cross Margin, only one Cross Grid can run on the same trading pair.

#### Can I use any asset as Grid margin?

No. Grid margin must be provided in the market's settlement asset. Aster does not automatically convert other assets for you.

#### Can I change Cross to Isolated while my Grid is running?

No. The margin mode cannot be changed while the Grid is running.

#### Can I add or remove margin?

Yes. Both Cross and Isolated Grids support adding and removing margin.

#### Does adding margin change my Grid strategy?

No. Adjusting margin changes the funds supporting the Grid but does not change the number of grids or existing position size.

#### Where are my Grid positions and orders?

New Grid positions and orders are managed within the Grid Bot environment. They are not displayed as ordinary positions and orders in your main Futures account; use the Grid Bot page and Details to manage them.

#### What happens if I end my Grid but keep the position open?

The Grid enters Stopped - position open. Its Grid orders are cancelled, but the existing position remains open and can still be liquidated. You can manage or close the position from Details.

#### When will my funds return to my Futures account?

When the Grid is fully finalized and its position has been closed, the applicable remaining funds are transferred back to your Futures account. The transfer appears as a Trading bot transfer in your transaction history.

#### Does stopping a Grid cancel my other Futures orders?

No. Grid Bot orders are managed separately from your main Futures orders. Ending a Grid cancels the orders belonging to that Grid and does not cancel your other Futures orders.

\ <br>
