Forked from willHol/polybar-crypto to suit the Indodax API.
A polybar script that displays the price of various crypto-currencies based on local (Indonesia) crypto exchange: Indodax.
mkdir -p ~/.config/polybar/scripts &&
cd ~/.config/polybar/scripts &&
git clone https://github.com/ditatompel/polybar-indodax.git &&
cd polybar-indodax &&
cp config_sample config
Then in ~/.config/polybar/config
:
[bar/top]
...
modules-right = crypto
...
[module/crypto]
type = custom/script
; Indodax Public API rate limited to 180request/minute, use the resources wisely.
interval = 60
exec = /home/<user>/.config/polybar/scripts/polybar-indodax/indodax.py
cd ~/.config/polybar/scripts/polybar-indodax && git pull
- Python >=3.6
~/.config/polybar/scripts/polybar-indodax/config
[general]
; Information displayed on Polyfill. can be both, percentage, or price.
; default: both
display = both
; Use hexadecimal color code, Polybar alpha value is supported
color_symbol = #0a81f5
color_down = #ff2424
color_up = #00ff84
; begin list of cryptocurrency
[btc_idr]
symbol = BTC
[ada_idr]
symbol = ADA
[eth_idr]
symbol = ETH
[xmr_idr]
symbol = XMR
display = percentage
display = price
display = both
I don't work or have any affiliate with official Dompet Bitcoin Indonesia or INDODAX Trading Platform. This program is free software and distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.