- As a person interested in investing in cryptocurrencies, I would like to know about the various exchanges that I can use to buy/sell cryptocurrencies
-
API Provider - CoinGecko API V3 (3.0.0) Link
-
Endpoint - /exchanges
- Define the dataframe structure where you want to store the data before plotting it on the dashboard
df_exchanges_data = pd.DataFrame(columns=['Rank', 'Logo', 'ID', 'Name', 'URL', 'trade_volume_24h_btc'], index=None)
- Using the request library in python, call the get() method to receive the data in JSON format
enpoint_url = f"https://api.coingecko.com/api/v3/exchanges"
exc_data_json = api.get(enpoint_url).json()
-
Do data cleansing, if there are any null values
-
Populate the dataframe and return it to the calling .py file for plotting on the dashboard