help make a Command to show 1 crypto price

Hey @xheimskr!

It couldn’t be easier! With JSON you move up the keys tree using dots.

So you do it like this:

$(eval e=$(urlfetch json https://api.coingecko.com/api/v3/simple/price?ids=Ergo&vs_currencies=USD).ergo.usd)

Similar topics:


@Jota this API has Shibacoin under “Shiba-inu