A simple CLI utility script that fetches current price in USD for ADA, XRP and MATIC and save them to a csv file with time.
To run this project, you will need to add the following environment variables to your .env file. You can take reference from the .env-example file present in the project.
COINMARKETCAP_API_KEY
To run the script:
Clone the project
git clone https://github.com/bhagyamudgal/crypto-price-fetcher.git
Go to the project directory
cd crypto-price-fetcher
Install dependencies
yarn install
Set up environment variables - you can take reference from the example env file (.env-example)
After you are done with env
Run the following command to start the script
yarn start
You can see the output in data.csv file present in root directory.
If you have any feedback, please reach out to me at [email protected]