Install dependencies:
$ npm i
$ node index.js -m insurance-coverage
$ node index.js -m usd-locked
$ node index.js -m eth-locked
$ node index.js -m token-locked -t tokenName
# tokenName: usdc, daie.g:
$ node index.js -m token-locked -t usdc
$ node index.js -m interacted-addressesMake 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 datethe date should be in the following format: YYYY-MM-DD
e.g:
$ node index.js -m history -d 2020-02-13
$ node index.js -m 0x-data -t tokenAddress