Skip to content

A polybar script that displays the price of crypto-currencies based on local (Indonesia) crypto exchange: Indodax.

License

Notifications You must be signed in to change notification settings

ditatompel/polybar-indodax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polybar-indodax

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.

both

Setup

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

Update

cd ~/.config/polybar/scripts/polybar-indodax && git pull

Dependency

  • Python >=3.6

Example Configuration

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

display = percentage

percentage

display = price

price

display = both

both

Notes

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.

About

A polybar script that displays the price of crypto-currencies based on local (Indonesia) crypto exchange: Indodax.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%