> This page is for TWS API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Reset Order ID Sequence

The next valid identifier is persistent between TWS sessions.

If necessary, you can reset the order ID sequence within the API Settings dialogue. Note however that the order sequence Id can only be reset if there are no active API orders.

!["Reset API order ID sequence" button in the API Settings.](/docs/_fern-img/a1d3e8fb968af26baa1af260bb7b94ad8f504a2a29c99a86ecae9543d72316d7.webp)