> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/grids/what-is-a-grid.md).

# What is a grid

A grid is a set of rules that defines the orders a bot places. In Origami Tech, grids can create buy orders, sell orders, or both, using fixed values or formulas.

#### What a grid defines

Every grid has four core parameters:

| Parameter           | Purpose                                     |
| ------------------- | ------------------------------------------- |
| `execute_price`     | The price of each order.                    |
| `execute_volume`    | The amount of the base asset in each order. |
| `buy_orders_count`  | The number of buy orders.                   |
| `sell_orders_count` | The number of sell orders.                  |

For **BTC/USDT**, the base asset is **BTC**, so `execute_volume` specifies the amount of BTC per order.

#### How a grid fits into a bot

The bot connects your strategy to an exchange account and trading pair. The grid defines the orders within that strategy.

A bot can contain several grids, each with its own configuration. For example, one grid can define purchases while another defines sales.

#### Fixed values and formulas

Grid parameters can contain fixed numbers or formulas. Formulas let you calculate prices, adjust order sizes, and control the number of orders using market data or conditions.

A grid can use the current price, order book, account balance, historical candles, or indicators such as RSI. Setting an order count to **0** disables orders on that side.

#### A simple example

A buy-only grid can define:

* **Three buy orders** at 1%, 2%, and 3% below the current price.
* **0.0001 BTC** per order.
* **Zero sell orders**.

Next, follow **Create a grid** to configure your own grid, read **How a grid executes** to understand its behavior, or explore **Recipes** for more examples.
