> 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/reference/grid-language/required-parameters/sell-orders-count.md).

# sell\_orders\_count

sell\_orders\_count sets how many sell orders a grid places. Accepts integers or formulas with if-else logic.

The parameter responsible for the number of sell orders placed.

## `sell_orders_count` \[*integer* | *formula* -> \[*integer*]]

Non-negative number of `side=’sell’` orders to place. Accepts values of integer and decimal types. It is possible to use `formula` as value. Supports if-else logic. When using float values, they are rounded down to the nearest whole number.

<details>

<summary>Example:</summary>

2 sell orders will be placed.

`"sell_orders_count": "2"`

***

5 sell orders will be placed if the current total base token group balance exceeds 5000.

`"sell_orders_count": "5 if` `group_balance('base').current.total > 5000 else 0"`

```
5 if group_balance ('base').current.total > 5000 else 0
```

***

5 sell orders will be placed if the current total counter token balance less than 5000.

`"sell_orders_count": "5 if` `balance('counter').total < 5000 else 0"`

```
5 if balance('counter').total < 5000 else 0
```

***

A sell order will be placed if the current total counter token group balance is lower than the starting one and the first bid price is higher than the fair price, which is calculated based on the ratio of the differences in the starting and current balances of the base token and counter token.

`"sell_orders_count": "1 if` `orderbook().bid[0].price > (group_balance('base').current.total -group_balance('base').start.total)/(group_balance('counter').start.total -group_balance('counter').current.total) and` `group_balance('counter').start.total >` `group_balance('counter').current.total else 0"`

```
1 if orderbook().bid[0].price > (group_balance('base').current.total - group_balance('base').start.total) / (group_balance('counter').start.total - group_balance('counter').current.total) and group_balance('counter').start.total > group_balance('counter').current.total else 0
```

***

Random number of sell orders will be placed in range \[0, 10], rounded down.

`"sell_orders_count": "random() * 10"`

```
random() * 10
```

</details>
