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?
Help with a crypto command
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`)
Polar Cat said:
```
$(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)
```
do you know if there is another website/api for shibacoin?, thx for dogecoin i appreciate it a lot