# Open Order

Execution of orders is based on the bid and ask prices between buyers and sellers, and occurs sequentially for corresponding orders, starting with the orders placed first. The entire order quantity may be executed at once, but depending on order conditions, it may be partially executed or remain as an unfilled order. The main reasons for unexecuted orders are as follows:

1. **When there is no matching order price :**

   Buy orders are prioritized by executing the highest bid first, while sell orders are prioritized by executing the lowest ask first.

   If there is no matching order price between buy and sell orders, the order will not be executed.
2. **When there are many preceding orders :**

   When orders are placed at the same price, execution is based on the order of submission. Since earlier orders are prioritized based on time, if preceding orders are not fully executed, your order may remain unfilled.

<figure><img src="/files/tEkhCro6h0naMNQvNMWF" alt=""><figcaption></figcaption></figure>

*🌟 Unexecuted orders will remain until the user cancels them directly. However, in certain cases, such as server maintenance, orders may be canceled to protect users' assets. Notifications of such cancellations will be announced before the server maintenance begins.*


---

# Agent Instructions: 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:

```
GET https://docs.alt.town/user-guide/dna-trading/open-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
