Revert
  • Introduction
  • Position Analytics
    • Uniswap V2 Positions
    • Uniswap V3 Positions
    • Detecting staked LP tokens
  • Liquidity incentives
    • Time-vested v3 Staker
    • Migrating from Mainnet
      • To Optimism
      • To Polygon
  • Top Positions
  • Initiator
    • Start providing liquidity
  • Auto-compounder
    • User Guide
    • Performance improvement
  • Position Management
  • Auto-Exit
  • Auto-Range
  • Revert Lend
    • Borrowing
    • Lending
    • Repaying
    • Withdrawing
    • Leverage
    • Liquidations
  • TECHNICAL DOCS
    • Auto-compounder
    • Backtester
    • Self-compounder
    • Auto-Exit
    • Auto-Range
    • Revert Lend
      • Configuration parameters
  • Resources
    • Contract Addresses
    • Security
    • Auto-compounder v1 FAQ
    • Twitter
    • Discord
    • GitHub
    • Blog
Powered by GitBook
On this page
  1. TECHNICAL DOCS

Backtester

PreviousAuto-compounderNextSelf-compounder

Last updated 8 months ago

We’ve published the as a library under the MIT license.

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
backtester code
ClojureScript
GitHub - revert-finance/revert-backtester: A fast backtester for Uniswap v3 positions.GitHub
Logo