Skip to content

App: Crypto

Patrik Janoušek edited this page Jan 21, 2022 · 8 revisions

Description

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

Examples

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': ' ',
},

Required parameters

name

Identify the app by its name.

crypto

Ticker of a cryptocurrency.

base_currency

The base currency you are familiar with (e.g. usd, eur, gbp, btc, sats, etc.).

Other app-specific parameters

decimals

You can specify the number of decimal places shown. This is a practical solution e.g. cardano/btc, ethereum/btc pairs.

thousands_separator

You can specify your own thousands separator e.g. ' ', ','.

Clone this wiki locally