The greeks are a toolbox used to measure risk in option trading. The most important greeks are delta, gamma, vega and thetha. This repository provides code to compute delta and gamma for concentrated liquidity positions in Uniswap V3 [1] and to setup LP positions with a given target value of delta [2].
This work is part of the research conducted while designing the Haptic protocol and is made available for educational purposes.
- R
- Install R from here (Ubuntu)
- Clone this repository
- Open a terminal and navigate to the repository
- Check that the file has executable permissions or grant them with
chmod +x gen.r
- Run
./gen.r
[2] https://lambert-guillaume.medium.com/how-to-create-a-perpetual-options-in-uniswap-v3-3c40007ccf1