From 2600e189bd25ece7f002b94afeea4edc17ac01e6 Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Wed, 30 May 2018 10:42:51 +0300 Subject: [PATCH] Add USDT to the list of fiat currencies USDT is common many exchanges and treated as a currency. It is helpful to allow USDT to be accepted as a fiat current when testing config.json By way of example of a usecase A strategy or otherwise report may not query: config['stake_currency'] and currency = config['fiat_display_currency'] as the config.json with fail test, so cannot build a base/pair such as BTC/USDT that is valid will not be built cleanly. Pulling BTC/USDT from config values can be useful to download query ticker file name and data, enumerating base/pair price to whitelist target pairs, performing correlation coefficient statistics etc. As example: building a dataframe such as here date BTC/USDT ETH/BTC XLM/BTC LTC/BTC 0 1517443200 10283.00 0.109475 0.000052 0.016031 The transposing to actual USDT ticker value row-wise per pair date BTC/USDT ETH/USD XLM/USD LTC/USD 1517443200 10283.00 1125.731425 0.535950 164.846773 --- freqtrade/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 7731ea610..48b8963e9 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -40,7 +40,8 @@ CONF_SCHEMA = { 'KRW', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', - 'TRY', 'TWD', 'ZAR', 'USD']}, + 'TRY', 'TWD', 'ZAR', 'USD', + 'USDT']}, 'dry_run': {'type': 'boolean'}, 'minimal_roi': { 'type': 'object',