austintgriffith / eth.build

🛠🧮 Educational sandbox for building on web3. Visually understand how Ethereum works by doing.
https://eth.build
MIT License
698 stars 183 forks source link

Price (Component) isn't working any more (coinmarketcap) #20

Open austintgriffith opened 4 years ago

austintgriffith commented 4 years ago

Is there another api we could sign up for or something?

tmlee commented 4 years ago

Co-founder at CoinGecko here, may i suggest considering our public and free API at https://www.coingecko.com/en/api

We have helped to power many apps in the Ethereum ecosystem. It is quite easy to implement and flexible with support for contract addresses lookup, etc.

Suggest to give it a try! I am here if you have any questions.

Polycarpik commented 4 years ago

@tmlee maybe you can make a pull request to add this?

iamonuwa commented 4 years ago

@Polycarpik I can integrate this immediately.

Byte1122 commented 4 years ago

@tmlee Its indeed very easy. I am using the request module to extract the price. This eth.build is so flexible. Using the API of coingecko: https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd

ChristophSiegenthaler commented 4 years ago

What would be the cleaner approach for using coingecko:

  1. using coingecko-api npm package: creates 1 new dependency but potentially enables new features e.g. price charts
  2. just using the API directly without package Thoughts?