This project aims to:
- Provide a simple way to access the CoinGecko API in python
- Exist
https://repl.it/@Hchedd/CoinGecko
Just to test if you can connect to the api. Index 0 contains a boolean. True for successful connection. False if failed. In Index 1 is the api response.
For example getCoinValue(bitcoin, gbp) will tell you how much one Bitcoin is in GBP. Returns a float of the value
Examples:
convertToCrypto(dogecoin, gbp, 50) - Will return how much 50 gbp is in dogecoin convertToCrypto(litecoin, usd, 1.5) - Will return how much 1.5 usd is in litecoin
Examples:
convertToCrypto(dogecoin, gbp, 50) - Will return how much 50 dogecoin is in gbp convertToCrypto(litecoin, usd, 1.5) - Will return how much 1.5 litecoin is in usd