Challenge 28: Finding Top Gainers in the Crypto Market
Level: Medium
Description: As a data scientist working in finance, you are tasked with researching the current crypto market. Perform a GET request on the provided API to obtain up-to-date information, convert the data so that each token/crypto has its own row, and extract the name of the crypto, 'marketCapUSD' , and column 'changePercent24Hr' from the JSON body. With this data at hand, obtain the top 10 gainers and losers in the current crypto market and visualize them with a simple tree map. The size of each crypto should be scaled off the market cap, and its color should be determined by whether or not the percent change is positive (green) or negative (red). Hint 1: Use the Generic ECharts View for the tree map. Here's an example of a simple tree map visualization that can be useful. Hint 2: Tree maps usually do not display negative values. One simple way to handle it is to use an absolute value.