Giter Site home page Giter Site logo

Comments (2)

stevegwh avatar stevegwh commented on June 11, 2024 3

Hey there,

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 :).

from cryptocurrency-portfolio.

KZkici avatar KZkici commented on June 11, 2024 1

The code above works great thank you, however in my portfolio the Coins just have these symbols for values: ??????
Hoping this project gets updated :)

Thank you

from cryptocurrency-portfolio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.