# Order Execution

When a Limit, Stop-Loss, or Take-Profit order reaches its trigger price, the system will attempt to execute the order. However, if the price impact is too high or the acceptable price isn't met due to insufficient liquidity, the order may enter a "frozen" state.

Regular orders will be executed at the price closest to the trigger price. For frozen orders, they will be executed at the latest available price, but only if that price meets the acceptable price criteria. If the acceptable price cannot be met, the frozen order will remain unexecuted.


---

# 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.onlyperps.com/welcome-to-onlyperps/trading/order-execution.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.
