# Backtester

We’ve published the [backtester code](https://github.com/revert-finance/revert-backtester) as a [ClojureScript](https://clojurescript.org/) library under the MIT license.

{% embed url="<https://github.com/revert-finance/revert-backtester>" %}

The backtesting technique for Uniswap v3 LP positions that we use, relies on periodic pool snapshot data, such as that provided by the Uniswap v3's subgraph *poolHourData* entities.

This technique is fairly accurate, though the accuracy will be correlated with the proportion of time that a position would have been in range given its selected price ranges. It also has the advantage of being pretty fast.

When the Initiator backtester was launched we ran an accuracy test to check its performance, the results can be found in [this post](https://medium.com/@revert_finance/presenting-the-initiator-3450f63d6b7e).


---

# 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.revert.finance/revert/technical-docs/backtester.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.
