From 7c8bf95f8f7b2f04286e8f48208da43b5455bc8e Mon Sep 17 00:00:00 2001 From: creslinux Date: Mon, 4 Jun 2018 16:45:47 +0300 Subject: [PATCH 1/4] To be able to start bot with USDT in fiat_display_currency in config.json There are use case that build the base pair to consider price of whitelist pairs. On Binance this is USDT not USD. --- freqtrade/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index a22a06ebe..9560afae8 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -28,7 +28,8 @@ SUPPORTED_FIAT = [ "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", - "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD" + "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD", + "USDT" ] # Required json-schema for user specified config From a44978a0680b489a5123b1c7f46d28faba24b5c3 Mon Sep 17 00:00:00 2001 From: creslinux Date: Mon, 4 Jun 2018 21:48:15 +0300 Subject: [PATCH 2/4] Per steer from project core member, add other valid coinmarketcap listed crypto base currencies that are valid during conversion lookup Here is the test of USDT working: https://api.coinmarketcap.com/v2/ticker/1027/?convert=USDT&limit=10 CMK page lists: "BTC", "ETH" "XRP", "LTC", and "BCH" as valid. --- freqtrade/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 9560afae8..f40efec9a 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -29,7 +29,7 @@ SUPPORTED_FIAT = [ "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD", - "USDT" + "BTC", "ETH", "XRP", "LTC", "BCH", "USDT" ] # Required json-schema for user specified config From b13658b3198c5e6c855ae0801f231dae9bddc24e Mon Sep 17 00:00:00 2001 From: creslinux Date: Mon, 4 Jun 2018 22:17:10 +0300 Subject: [PATCH 3/4] Updated configuration doc with new fiat values accepted. --- docs/configuration.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index bd867857c..4c101e8a3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -92,8 +92,10 @@ The bot was tested with the following exchanges: Feel free to test other exchanges and submit your PR to improve the bot. ### What values for fiat_display_currency? -`fiat_display_currency` set the fiat to use for the conversion form coin to fiat in Telegram. -The valid value are: "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD". +`fiat_display_currency` set the base currency to use for the conversion form coin to fiat in Telegram. +The valid values are: "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD". +In addition to central bank currencies, a range of cryto currencies are supported. +The valid values are: "BTC", "ETH", "XRP", "LTC", "BCH", "USDT". ## Switch to dry-run mode We recommend starting the bot in dry-run mode to see how your bot will From e52ec145886212dde7fdc50a7ba1f46e4f01b904 Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Mon, 4 Jun 2018 22:19:25 +0300 Subject: [PATCH 4/4] Update configuration.md typo, form to from. --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 4c101e8a3..2cc6294f4 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -92,7 +92,7 @@ The bot was tested with the following exchanges: Feel free to test other exchanges and submit your PR to improve the bot. ### What values for fiat_display_currency? -`fiat_display_currency` set the base currency to use for the conversion form coin to fiat in Telegram. +`fiat_display_currency` set the base currency to use for the conversion from coin to fiat in Telegram. The valid values are: "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR", "USD". In addition to central bank currencies, a range of cryto currencies are supported. The valid values are: "BTC", "ETH", "XRP", "LTC", "BCH", "USDT".