Help with a crypto command

Asked Apr 19, 2021·4 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello, can someone help me with a crypto command, i want something like this "$(eval x=$(urlfetch json https://api.coindesk.com/v1/bpi/currentprice.json); try { Ultima actualización: + x.time.updated + | Precio: 1 Bitcoin = + x.bpi.USD.rate + $ } catch(e) { " " })" but with SHIBA and DOGE crypto, it is possible?

4 replies

Hey @Marble Crab!

They don't track Shibacoin on that website, but you can have the value of Dogecoin, sure, you just need to use a newer version of their API, however, they don't seem to open it to the public directly, so they don't guarantee support, which means if there are any changes on it, it could break, at any time.

$(eval d=$(urlfetch json https://production.api.coindesk.com/v2/price/ticker/sparkline?assets=DOGE).data.DOGE.sparkline; d=d[d.length-1][1]; `1 Dogecoin = ${d} USD`)

I don't know any, no, otherwise I would have suggested another one, but I'm not into cryptocurrency.
Just look around the web, if you can find a website that tracks Shibacoin, there likely is an API we can use.

okay thank you so much for helping me, i'll look around for shibacoin