dotfiles/.local/scripts/bbl/0200_30_USDTRUB

10 lines
291 B
Plaintext
Raw Normal View History

2022-10-03 02:06:02 +08:00
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^ USDT ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"