{"repo":"shubhank-saxeena/uniswapv3-liquidity","free":true,"listed":false,"github":"https://github.com/shubhank-saxeena/uniswapv3-liquidity","clone":"git clone https://github.com/shubhank-saxeena/uniswapv3-liquidity.git","description":"Code examples for the technical note \"Liquidity Math in Uniswap v3\" Topics","language":"Python","stars":10,"topics":["blockchain","defi","dex","uniswap","uniswap-v3"],"license":null,"category":"blockchain-web3","readme_excerpt":"Overview See the technical note Liquidity Math in Uniswap v3 and the Uniswap v3 whitepaper for the description of the purpose of this code. For a Jupyter Notebook version of the code, see yj's work here: https://github.com/uniyj/uni-v3-peri/tree/main/atiselsts-uniswap-v3-liquidity-math. Contents uniswap-v3-liquidity-math.py - implementation of the equations and examples from the \"Liquidity Math in Uniswap v3\" paper subgraph-liquidity-query-example.py - query the Uniswap v3 subgraph information to show the amounts locked in the current tick range of the USDC/WETH 0.3% pool subgraph-liquidity-range-example.py - shows the amounts locked in all ticks with nonzero liquidityNet in the USDC/WETH 0.3% pool subgraph-liquidity-positions-example.py - shows the amounts locked in all active positions in the USDC/WETH 0.3% pool Installation and usage Install dependency with: pip install -r requirements.txt Execute from the command line, for example with: ./subgraph-liquidity-range-example.py Example outputs Example output of uniswap-v3-liquidity-math.py Example output of subgraph-liquidity-query-example.py Example output of subgraph-liquidity-range-example.py","default_branch":null,"files":null,"tree":[],"storefront":"/r/shubhank-saxeena","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shubhank-saxeena/uniswapv3-liquidity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}