Skip to main content

better back testing tool for uniswap v3

Project description

Readme

Introduction

This repository is an uniswap v3 backtest framework for LP provider.It is inspired by gammaStrategy and backtrader. with following features:

  1. backtrader style
  2. better abstraction and well-organised
  3. tested

Feel free to make an issue or pr to help this repository.

Design rationale

data

Evm's event is better than graphQL. Event approach is cheaper and easier to use than subgraph approach. It is found that official subgraph had some bugs in some corner cases.

We provide a bigquery downloader to produce daily pool csv files. Data downloading is an independent step for backtesting .You can download and clean it on you your ownself. More info about download can be found in here.

abstraction

Strategy: quote/base price.

Broker: storage user asset and trade data.

pool: no state. just calculation. deal with tick, token0,decimal, total L.

plot and strategy performance

User may have different choices about plot and metrics of strategy performance. So we did not make such decisions for you. We provide some examples in strategy-example.Hope it can help you to write your own strategy.

We plan to improve metrics in recent.

how to use

try quickstart in our docs

license

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zelos-demeter-0.1.5.tar.gz (31.9 kB view details)

Uploaded Source

File details

Details for the file zelos-demeter-0.1.5.tar.gz.

File metadata

  • Download URL: zelos-demeter-0.1.5.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for zelos-demeter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 13cd8718aebe53152f17a2bb40cb812b7660c8cfe6886566d6bb9a829004dabe
MD5 b754589fb4acf0ceeb1902082f36e22a
BLAKE2b-256 290c786b3f38c12f394ad9ddaac817367c7cad5a31b8bdcd4c193f4bf57c2a8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page