/polybar-binance-ticker

Retrieve ticker information from Binance

Primary LanguageShellGNU General Public License v3.0GPL-3.0

polybar-binance-ticker

polybar-binance-ticker

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.

Usage

~/.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

Install

$ cd ~/.config/polybar && git clone https://github.com/Jarreddebeer/polybar-binance-ticker.git

Install font

see crypto-icons (may vary by environment)

$ sudo mv polybar-binance-ticker/coins.otf /usr/share/fonts
$ fc-cache -f -v

Observe

$ fc-list | grep coins
/usr/share/fonts/coins.otf: coins:style=Regular