> For the complete documentation index, see [llms.txt](https://ajaib.gitbook.io/ajaib-exchange-open-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajaib.gitbook.io/ajaib-exchange-open-api/getting-started/timing-security.md).

# Timing Security

* An additional parameter, `recv_window`, may be sent to specify the number of milliseconds after `timestamp` the request is valid for. If `recv_window` is not sent, **it defaults to 5000**.
* The logic is as follows:

  ```
  if (timestamp < (serverTime + 1000) && (serverTime - timestamp) <= recvWindow) {
    // process request
  } else {
    // reject request
  }
  ```

<br>
