From cf0f034accb2e85f4d99ae71b155e3ca927a6b82 Mon Sep 17 00:00:00 2001 From: Marius Kotlarz Date: Fri, 25 May 2018 15:40:19 +0200 Subject: [PATCH] Update coinmarketcap configuration to use currency_id instead of currency (#5422) --- source/_components/sensor.coinmarketcap.markdown | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/_components/sensor.coinmarketcap.markdown b/source/_components/sensor.coinmarketcap.markdown index 1fc1300ab50..e31c656efae 100644 --- a/source/_components/sensor.coinmarketcap.markdown +++ b/source/_components/sensor.coinmarketcap.markdown @@ -25,17 +25,22 @@ sensor: ``` {% configuration %} -currency: - description: The cryptocurrency to use. +currency_id: + description: The ID of the cryptocurrency to use, default is the ID of Bitcoin. required: false - type: string - default: Bitcoin + type: int + default: 1 display_currency: description: The currency to display. required: false type: string default: USD +display_currency_decimals: + description: The amount of decimals to round to. + required: false + type: int + default: 2 {% endconfiguration %} -All supported currencies can be found [here](https://coinmarketcap.com/api/). +All supported currencies can be found [here](https://coinmarketcap.com/api/), a list of currency IDs can be found [here](https://api.coinmarketcap.com/v2/ticker/).