Display ticker information from Binance in Polybar
It is similar to polybar-crypto and polybar-cryptocurrency but does not rely on Python. The code is simpler and only uses 44 bytes per tick.
Binance API:
Uncompressed size : 44 Bytes
Compressed size : 59 Bytes
Coinranking API:
Uncompressed size : 65.71 KiB
Compressed size : 12.80 KiB\
Coinmarketcap API:
Error 410: WARNING This API is now offline.
~/.config/polybar/config
font-2 = "coins:style=Regular:size=10;2"
[module/crypto]
format = <label>
label = %output%
type = custom/script
interval = 300
exec = ~/.config/polybar/polybar-binance-ticker/exec.sh --base-coin=USDT BTC ETH XLM
$ cd ~/.config/polybar && git clone https://github.com/Jarreddebeer/polybar-binance-ticker.git
see crypto-icons (may vary by environment)
$ sudo mv polybar-binance-ticker/coins.otf /usr/share/fonts
$ fc-cache -f -v
$ fc-list | grep coins
/usr/share/fonts/coins.otf: coins:style=Regular