> For the complete documentation index, see [llms.txt](https://trader-docs.b2trader.b2broker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trader-docs.b2trader.b2broker.com/knowledge-base/order-types.md).

# Order types

The following order types are supported:

* **Market**: An instruction to instantly buy or sell a certain asset amount at a currently best price on the market. Such orders are not listed in the order book.
* **Limit**: An instruction to buy or sell a certain asset amount at a specified price. Limit orders are placed in the order book and executed only after the market price reaches the specified limit price (or at a better price).
* **Stop Market**: Such an order is not placed unless the current market price meets a specified stop (or trigger) price, after which the order is placed as a regular Market order due to be executed or cancelled, depending on its Time in force.
* **Stop Limit**: The order is similar to the Stop Market order in the sense that you need to indicate the stop price at which the order must be placed, after which it becomes a regular Limit order awaiting execution at a specified limit price.

{% hint style="info" %}
For Stop buy orders, the stop price should be above the best ask price; for Stop sell orders, the stop price should be below the best bid price (otherwise, the orders will be activated instantly).
{% endhint %}

Refer to [Time in force](/knowledge-base/time-in-force.md) to learn about execution parameters that can be specified for different order types.


---

# 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://trader-docs.b2trader.b2broker.com/knowledge-base/order-types.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.
