(If you have already submitted this assignment in the past but couldn’t hear back from us, you can re-submit the same links in the below form again)
Job Details:
Assignment Objective
Develop a server side application using Node.js and MongoDB and complete the following tasks.
Task 1
- Implement a background job that will fetch the current price in USD, market cap in USD and 24 hour change of 3 cryptocurrencies: Bitcoin, Matic, and Ethereum and store it in a database. This job should run once every 2 hours.
- The above details about a cryptocurrency can be fetched using an API from CoinGecko. You also have to search for the relevant API from their documentation: https://docs.coingecko.com/v3.0.1/reference/introduction.
- Hint: Coingecko IDs for the above listed coins are
bitcoin
, matic-network
and ethereum
.
Task 2
- Implement an API
/stats
, that will return the latest data about the requested cryptocurrency.
- Query params:
{
coin: `bitcoin` // Could be one of the above 3 coins
}