1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-23 08:31:31 +00:00
Dotfiles/.config/polybar/polybar-scripts/ticker-crypto/ticker-crypto.sh

9 lines
185 B
Bash
Raw Normal View History

2020-07-27 04:59:00 +00:00
#!/bin/sh
API="https://api.kraken.com/0/public/Ticker"
quote=$(curl -sf $API?pair=BTCEUR | jq -r ".result.XXBTZEUR.c[0]")
quote=$(LANG=C printf "%.2f" "$quote")
echo "#1 $quote"