21isenough / LightningATM

This ATM sends bitcoin over the Lightning Network - pretty fun.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove the dependency "pycoingecko"

21isenough opened this issue · comments

Actual Behavior:
Currently the ATM relies on the python library "pycoingecko" for the exchange rate. It's a (quick and dirty) replacement for the recently closed API of bitcoinaverage.com

Expected Behavior:
Since this is only one simple GET request to the CoinGecko API, this could simply be done in python and does not need a library. Remove and use the "requests" package in python.

price = CoinGeckoAPI().get_price(ids="bitcoin", vs_currencies=fiat_code)