The FetchCoin App is a Google Apps Script application that fetches coin data from CoinMarketCap API and displays the coin names and their total supplies in a Google Sheet.
Before using the FetchCoin App, ensure you have the following:
- A Google account
- Access to Google Sheets
- A CoinMarketCap API key (obtainable from the CoinMarketCap website)
To install and use the FetchCoin App, follow these steps:
- Open a new or existing Google Sheet.
- Go to "Extensions" in the menu and select "Apps Script".
- Replace the existing code in the Apps Script editor with the provided
fetchCoinData
function code. - Replace
"YOUR_COINMARKETCAP_API_KEY"
with your actual CoinMarketCap API key. - Save the script and close the Apps Script editor.
- Go back to your Google Sheet and you should see a new menu option named "Custom Menu".
- Click on "Custom Menu" and select "Fetch Coin Data".
- The script will fetch the latest coin data from CoinMarketCap API and populate the coin names and total supplies in the active sheet.
Note: The script fetches data for the top 10 cryptocurrencies by default. You can modify the
limit
parameter in theurl
variable to fetch more or fewer coins as required.
Contributions to the FetchCoin App are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.