Code Monkey home page Code Monkey logo

arima-garch-in-uniswap-v3's Introduction

Tokka-Labs Uniswap V3 Strategy

Hedging Impermanent Loss and Optimizing Returns with ARIMA-GARCH and Options

This repository contains code and research materials for exploring a novel strategy to minimize impermanent loss and maximize returns in Uniswap V3.

  • main simulation Jupyter Notebook is at src/main.ipynb

Key Features

Asset Selection:

WBTC/ETH pair chosen for its high correlation and potential to reduce impermanent loss.

Modeling:

  • Hybrid ARIMA-GARCH model forecasts pool prices and estimates volatilities.
  • Walk-forward validation technique for model evaluation. Out of Sample

Hedging Impermanent Loss:

  • Options-based hedging strategy to mitigate impermanent loss.
  • Uses BTC-USDT and ETH-USDT options on Deribit exchange.
  • Long Strangle strategy using BTC-USDT and ETH-USDT put/call options at 20/30/40% of current pool price

Investment Strategy:

  • "Hold On Tight" strategy with one or more boundaries, optimized using Monte Carlo simulations.
  • Set up multiple trading windows within investment period based on investor preference
  • Establish price boundaries based on current pool close and Futures estimates per trading window
  • Implement hedging strategy and LP investment per trading window, rebalancing after every trading window

Backtest

Simulation of an LP strategy with 3 windows, 1million notional and 0.95% confidence interval for price boundaries Example Investment

Results vs HODL 50-50

Benchmark comparison against the HODL 50-50 Results Comparison

Project Structure

  • data: Contains historical Uniswap V3 pool data and options data.
  • models: Contains code for ARIMA-GARCH modeling and Monte Carlo simulations.
  • src: backtesting engine for simulating LP investment

Roadmap

  1. Phase 1: Backtesting and Simulation Implementation (in progress)
  2. Phase 2: Analytics Dashboard Development and Backtesting Engine Creation
  3. Phase 3: Optimization

Streamlit-app

https://crypto-whales.streamlit.app

Disclaimer This project is for research and educational purposes only. It does not constitute financial advice. Investing in cryptocurrencies involves significant risks. Use any strategies at your own risk.

For more details, please refer to the full report: [link to report]

arima-garch-in-uniswap-v3's People

Contributors

yinkiatho avatar agarwallakshya avatar lineardimensions avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.