forked from bujna94/MoonClock
-
Notifications
You must be signed in to change notification settings - Fork 2
App: Crypto
Patrik Janoušek edited this page Jan 21, 2022
·
8 revisions
Crypto is an application that shows the current price of any cryptocurrency supported by CoinGecko. You can find the list of supported coins at Coingecko API Documentaion
This is a minimum you must specify in your conf.py
{
'name': 'crypto',
'crypto': 'bitcoin',
'base_currency': 'usd',
},
These are examples of other parameters you can configure. Look into Configuration to see all possibilities.
{
'name': 'crypto',
'crypto': 'cardano',
'base_currency': 'sats',
'decimals': 2,
},
{
'name': 'crypto',
'crypto': 'ethereum',
'base_currency': 'btc',
'duration': 60,
},
{
'name': 'crypto',
'crypto': 'polkadot',
'base_currency': 'usd',
'update_frequency': 5,
},
{
'name': 'crypto',
'crypto': 'bitcoin',
'base_currency': 'usd',
'thousands_separator': ' ',
},
Identify the app by its name.
Ticker of a cryptocurrency.
The base currency you are familiar with (e.g. usd, eur, gbp, btc, sats, etc.).
You can specify the number of decimal places shown. This is a practical solution e.g. cardano/btc, ethereum/btc pairs.
You can specify your own thousands separator e.g. ' ', ','.