Super simple node.js crypto tracker app powered by CoinGecko and Eth Gas Station APIs. Customize the config.toml set the coins you want to see as well as your aave info to see the health factor!
- Clone the repo
$ gh repo clone Pandaphobic/node-crypto-ticker - cd into the directory
$ cd node-crypto-ticker - Install with
$ npm install
A config.toml file must be present alongside a .env in the root folder. Your .env should contain your Eth Gas Station API Key. You can setup both manually based off the examples, or you can use the configurator
Launch the configurator with $ npm run config
This will allow you to set:
- Coins / Tokens in the Ticker
- Base currency
- Ticker Refresh Rate
- API Key if .env not present already
Modify you API Keys with $ npm run apikeys
- Ticker Coins:
$ npm run addCoins - Ticker Base Currency:
$ npm run changeCurrency
Set your desired coins, currency and refresh rate by adding them to the array in the config.toml file. For AAVE, the three existing entries are the minimum requirement to get health factor. For now, you will need to update these manually.
config.toml
[ticker]
coins = ["ethereum","litecoin","bitcoin","weth","usd-coin"]
vsCurrency = "usd"
refreshRate = 500
[aave]
collateralInEth = 5
borrowedInEth = 4
borrowedInUsd = 8655
.env
ETH_GAS_API_KEY=paste_your_api_key_here
- Coin Gecko Coins
/coins/list - Eth Gas Price
ethgasAPI.json?api-key=ETH_GAS_API_KEY - Coin Gecko API
/api/v3/simple/price?ids=COINS_TO_GET&vs_currencies=VS_CURRENCY&include_24hr_change=true&include_last_updated_at=true
