Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

haythemsellami/opyn-kpi

Repository files navigation

Opyn KPI

How To Run

Install dependencies:

$ npm i

To get total insurance coverage in dollar

$ node index.js -m insurance-coverage

To get total USD locked in protocol

$ node index.js -m usd-locked

To get total ETH locked in protocol

$ node index.js -m eth-locked

To get total token amount locked in protocol

$ node index.js -m token-locked -t tokenName

# tokenName: usdc, dai

e.g:

$ node index.js -m token-locked -t usdc

To get unique addresses that interacted with all oTokens (sent or received any oToken)

$ node index.js -m interacted-addresses

To get TVL for a specifc date

Make sure to add DeFi Pulse API Key in .env file as the below format (The api-key parameter is not strictly required, but calling the API without it will get you rate limited.)

API_KEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx       
$ node index.js -m history -d date

the date should be in the following format: YYYY-MM-DD

e.g:

$ node index.js -m history -d 2020-02-13

To get token 0x data

$ node index.js -m 0x-data -t tokenAddress

About

Opyn KPIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors