# Duplicate Orders Error

The Duplicate Orders Error occurs when a resting limit order in your brokerage platform duplicates or contradicts a bot's closing action order for the same position.

<figure><img src="https://cdn.prod.website-files.com/5fba23eb8789c3c7fcfb5f31/63fd00366ac37ee0190f4b77_Duplicat%20order%20rejection.png" alt="Duplicat order rejection"><figcaption></figcaption></figure>

For example, if there is already an order to exit a position, the broker won't accept an additional duplicate order.

To avoid the broker rejection error, it is best to allow bots to manage positions. If you prefer to take control of an active position in your brokerage platform, use the [manual override](https://optionalpha.com/help/managing-positions) to prevent the error when the bot attempts to close the position.


---

# 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.optionalpha.com/technical-documentation/troubleshooting/duplicate-orders-error.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.
