You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Try this: replace "coinmarketcap" (for me, line 7) with this:
function coinmarketcap() {
var options = {
'headers' : {
'X-CMC_PRO_API_KEY' : 'YOUR_API_KEY'
}
}
var url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?convert=EUR&limit=400";
var response = UrlFetchApp.fetch(url, options);
var text = response.getContentText();
var obj_array = JSON.parse(text);
return obj_array;
}
I can't verify it works with the rest of the scripts as I'm having trouble with a seemingly separate problem with the Binance API and Google Docs. However, the code above is valid at least. You might have to edit the above URL with the correct end point as I'm not sure if the script expects "listings/latest". I'll update here if I get everything working correctly :).
Hey,
The Coinmarketcap API requires a key and the endpoints have changed :-)
It's now reachable over https://pro-api.coinmarketcap.com/v1/** and it is possible to get a free API Key here https://pro.coinmarketcap.com
however I dont know how to fix the .js files
Thanks!
The text was updated successfully, but these errors were encountered: