A custom WayBar module to display market information on a cryptocurrency using the Binance API.
- Download a release for your platform from the releases page
- Move the binary into your path e.g
/usr/bin/local - Create a toml file at
~/.config/waybar-crypto/config.toml - Populate the config file with your variables. Toggle features depending on what you want to see.
# Binance API Credentials
api_key = "YOUR_BIANCE_API_KEY"
secret_key = "YOUR_BINANCE_SECRET_KEY"
# Market Ticker
ticker = "BTCUSDT"
# Feature Toggles
show_funding_rate = true
show_open_interest = true
show_volume_change = true
show_long_short_ratio = true
# Custom Colors
color_positive = "#a6e3a1" # Green
color_negative = "#f38ba8" # RedCheck the installation by running waybar-crypto from the command line and you
should see some json output
waybar-crypto{"text":" $83400.01 \u003cspan color='#a6e3a1'\u003e0.37%\u003c/span\u003e | Funding: \u003cspan color='#a6e3a1'\u003e0.0060%\u003c/span\u003e | OI: \u003cspan color='#a6e3a1'\u003e0.31%\u003c/span\u003e | Vol: \u003cspan color='#a6e3a1'\u003e11.48%\u003c/span\u003e | LSR: \u003cspan color='#a6e3a1'\u003e1.76\u003c/span\u003e","tooltip":"Price Change: 0.37% | Funding Rate: 0.0060% | Open Interest Change: 0.31% | Volume Change: 11.48% | Long-Short Ratio: 1.76"}Modify ~/.config/waybar/config and add the custom module.
"custom/waybar-crypto": {
"exec": "/usr/local/bin/waybar-crypto",
"interval": 60,
"return-type": "json"
}Choose where to display the module. Here it is displayed in the middle.
"modules-center": [
"custom/btc",
],