mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-23 08:31:31 +00:00
9 lines
185 B
Bash
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 €"
|