@reinis_frp/boba-tvl

1.0.0 • Public • Published

Boba network TVL calculation script

Installing

Install dependencies by running yarn from the root of the repo.

Running

Provide Ethereum mainnet node RPC as NODE_URL_CHAIN_1 environment variable.

Run the script with node ./index.js by providing following optional arguments:

  • --ccy provides TVL denomination currency, defaults to usd. This should match vs_currency supported by CoinGecko.
  • --from UNIX timestamp for the begining of TWAP calculation range.
  • --to UNIX timestamp for the end of TWAP calculation range.
  • --interval interval in seconds to split TWAP range for charting. This defaults to 1h if range is less than day or 1d for larger ranges.

Readme

Keywords

none

Package Sidebar

Install

npm i @reinis_frp/boba-tvl

Weekly Downloads

1

Version

1.0.0

License

AGPL-3.0-or-later

Unpacked Size

26.3 kB

Total Files

5

Last publish

Collaborators

  • reinis_frp