Hi guys i'm working with the Coingecko API to get values from the site.
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
cg.get_price(ids=['bitcoin'], vs_currencies='brl')
Yep you can access it like that
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
dict = cg.get_price(ids=['bitcoin'], vs_currencies='brl')
print(dict['bitcoin']['brl'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.