1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-08 18:03:13 +00:00
Dotfiles/.config/polybar/polybar-scripts/ticker-crypto/ticker-crypto.sh
2020-07-27 07:59:00 +03:00

9 lines
185 B
Bash

#!/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"