Skip to content

Uniswap V3 position value daily auto update to google spreadsheet

License

Notifications You must be signed in to change notification settings

cryptic-core/uniswapv3-gsheet-autoupdate

Repository files navigation

uniswapv3-gsheet-autoupdate

Uniswap V3 position value daily auto update to google spreadsheet.


setup steps

    1. change the file .example.env to .env .
    1. apply api key in google developer console
    1. download credential.json to this workspace
    1. apply api key in etherscan and paste the apikey in .env 'etherscan_api_key' section.
    1. apply api key in infura and paste the apikey in .env 'etherscan_api_key' section.
    1. create a google spreadsheet and copy the sheet ID(in the URL) to .env 'gsheet' section. and don't forget to add modify the accessablity of your api account to the sheet.
    1. change tab index(0 based) if your tab is not the first in .env gindex section.
    1. modify your wallet address in myaddr section.
    1. run npm i
    1. npm run start

Some parameters you can change

    1. change spread sheet format change the adddata @index.js line 28 to any format you want . example sheet
    1. change daily auto report time index.js line 79 if you don't want your daily record to be adde at 4 pm.
    1. if you do not want just to record the total value . instead to split the fee and the liquidity position change the v3-value-calculator.js line 191 . which fee and liquidity pos can be seperated.

About

Uniswap V3 position value daily auto update to google spreadsheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published