> For the complete documentation index, see [llms.txt](https://docs.openmm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openmm.io/api-reference/strategy.md).

# Strategy

Grid trading strategy management endpoints.

## Endpoints

| Method | Endpoint                                                                 | Description            |
| ------ | ------------------------------------------------------------------------ | ---------------------- |
| POST   | [/strategy/grid](/api-reference/strategy/strategy-grid-start.md)         | Start grid strategy    |
| DELETE | [/strategy/grid](/api-reference/strategy/strategy-grid-stop.md)          | Stop grid strategy     |
| GET    | [/strategy/grid/status](/api-reference/strategy/strategy-grid-status.md) | Get strategy status    |
| GET    | /strategy/grid/list                                                      | List active strategies |

## What is Grid Trading?

Grid trading places buy and sell orders at regular price intervals (the "grid"). When price moves up, sell orders execute. When price moves down, buy orders execute. This captures profit from price oscillation.

## Grid Parameters

| Parameter  | Description                                   |
| ---------- | --------------------------------------------- |
| lowerPrice | Bottom of the grid range                      |
| upperPrice | Top of the grid range                         |
| gridLevels | Number of grid lines (more = tighter spacing) |
| orderSize  | Size per order in quote currency              |

## Example Setup

A grid from $40,000 to $44,000 with 10 levels creates orders every $400:

* Buy orders: $40,000, $40,400, $40,800, ...
* Sell orders: $42,800, $43,200, $43,600, $44,000

See [Grid Strategy Guide](/guides/grid_strategy.md) for advanced configuration.


---

# 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.openmm.io/api-reference/strategy.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.
