You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a configuration file at `$XDG_CONFIG_HOME/waybar-crypto/config.ini` (This location can be customised with the `--config-path` flag). The module **will not** run without first creating this configuration file.
47
+
48
+
An example can be found in [`config.ini.example`](./config.ini.example) with further options described below in the [Configuration](#configuration) section.
-**currency:** Any valid currency code should be accepted
77
+
-**currency:** A valid currency code
94
78
-**currency_symbol:** A corresponding symbol of the currency you wish to display
95
-
-**spacer_symbol:** A string/character to use as a spacer between tickers. Comment out to disable.
96
-
-**api_key:** CoinmarketCap API key obtained from their [API Dashboard](https://coinmarketcap.com/api).
79
+
-**spacer_symbol:** A string/character to use as a spacer between tickers. Comment out to disable
97
80
-**display:** A list of metrics you wish to display for each crypto currency. No spaces.
98
81
Valid options are:
99
-
-**price:** Displays the current price.
100
-
-**percent_change_1h:** Price change over the past hour.
101
-
-**percent_change_24h:** Price change over the past 24 hours.
102
-
-**percent_change_7d:** Price change over the past week.
103
-
-**percent_change_30d:** Price change over the past thirty days.
104
-
-**percent_change_60d:** Price change over the past sixty days.
105
-
-**percent_change_90d:** Price change over the past ninety days.
106
-
-**volume_24h:** Market volume in your chosen currency, over the past 24 hours.
107
-
-**volume_change_24h:** Market volume change in your chosen currency, over the past 24 hours.
108
-
109
-
*Alternatively, the CoinMarketCap API key can be set through the environment variable `COINMARKETCAP_API_KEY`, if you do not wish to save it to the `config.ini` configuration file.*
82
+
-**price:** current price
83
+
-**percent_change_1h:** Price change over the past hour
84
+
-**percent_change_24h:** Price change over the past 24 hours
85
+
-**percent_change_7d:** Price change over the past week
86
+
-**percent_change_30d:** Price change over the past thirty days
87
+
-**percent_change_60d:** Price change over the past sixty days
88
+
-**percent_change_90d:** Price change over the past ninety days
89
+
-**volume_24h:** Market volume in your chosen currency, over the past 24 hours
90
+
-**volume_change_24h:** Market volume change in your chosen currency, over the past 24 hours
91
+
-**api_key:** CoinmarketCap API key obtained from their [API Dashboard](https://coinmarketcap.com/api)
92
+
93
+
*Alternatively, the CoinMarketCap API key can be set through the environment variable `COINMARKETCAP_API_KEY`, if you do not wish to save it to the `config.ini` configuration file.*
110
94
111
95
### Adding Cryptocurrencies
112
96
113
97
For each cryptocurrency you wish to display, add a section as shown in the example above, where the section name is the **short** cryptocurrency name as found on [CoinMarketCap](https://coinmarketcap.com/).
114
98
115
99
Valid options:
116
100
117
-
-**icon:** A character symbol to display next to this cryptocurrency's metrics.
118
-
-**in_tooltip:** Whether to display the data in the tooltip instead of the bar (defaults to false).
119
-
-**price_precision** The decimal precision at which to display the price value of the cryptocurrency.
120
-
-**change_precision** The decimal precision at which to display the change value(s) of the cryptocurrency.
121
-
-**volume_precision** The decimal precision at which to display the volume value of the cryptocurrency.
101
+
-**icon:** A character symbol to display next to this cryptocurrency's metrics
102
+
-**in_tooltip:** Whether to display the data in the tooltip instead of the bar (defaults to false)
103
+
-**price_precision** The decimal precision at which to display the price value of the cryptocurrency
104
+
-**change_precision** The decimal precision at which to display the change value(s) of the cryptocurrency
105
+
-**volume_precision** The decimal precision at which to display the volume value of the cryptocurrency
0 commit comments