From 96397ad909ebd01de032b8a5925181bd93935278 Mon Sep 17 00:00:00 2001 From: Paulo Antunes Date: Sat, 9 Oct 2021 22:58:32 +0200 Subject: [PATCH] Removed not needed HISTORY_FREQUENCY's & LTO/BNB for no Liquidity --- xtcryptosignals/client/api/tickers/views.py | 2 +- xtcryptosignals/client/api/tools/views.py | 4 ++-- xtcryptosignals/server/api/charts/views.py | 2 -- xtcryptosignals/settings.py | 2 -- xtcryptosignals/settings_exchanges.py | 4 +--- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/xtcryptosignals/client/api/tickers/views.py b/xtcryptosignals/client/api/tickers/views.py index a568dc60..b38493c4 100644 --- a/xtcryptosignals/client/api/tickers/views.py +++ b/xtcryptosignals/client/api/tickers/views.py @@ -35,7 +35,7 @@ "price_change_1h": "1h", "price_change_1d": "1d", "price_change_1w": "1w", - "price_change_4w": "1m", + "price_change_4w": "4w", # /PRICE_CHANGE_FREQUENCIES "volume_24h": "Volume 24h", "volume_change": "Change", diff --git a/xtcryptosignals/client/api/tools/views.py b/xtcryptosignals/client/api/tools/views.py index ca446e6a..a5e35a9b 100644 --- a/xtcryptosignals/client/api/tools/views.py +++ b/xtcryptosignals/client/api/tools/views.py @@ -68,7 +68,7 @@ def coin_or_token_frequency(coin_or_token): template_name_or_list="tools/coin-token.html", socket_base_url=current_app.config["SOCKET_BASE_URL"], frequency=g.HISTORY_FREQUENCY[0], - frequencies_charts=["10s", "1m", "10m", "30m", "1h", "4h", "12h", "1d"], + frequencies_charts=["10s", "10m", "30m", "1h", "4h", "12h", "1d", "4w"], attributes={"price_usdt": "Price USDT"}, coin_or_token=coin_or_token, reference=g.COINS_OR_TOKENS_REFERENCE[coin_or_token], @@ -84,7 +84,7 @@ def tether(coin_or_token): return dict( template_name_or_list="tools/tether.html", frequency=g.HISTORY_FREQUENCY[0], - frequencies_charts=["1h", "1d", "4d", "1w", "4w"], + frequencies_charts=["1h", "1d", "1w", "4w"], coin_or_token=coin_or_token, reference=g.COINS_OR_TOKENS_REFERENCE[coin_or_token], ) diff --git a/xtcryptosignals/server/api/charts/views.py b/xtcryptosignals/server/api/charts/views.py index a9a36855..d4f4d397 100644 --- a/xtcryptosignals/server/api/charts/views.py +++ b/xtcryptosignals/server/api/charts/views.py @@ -46,7 +46,6 @@ def get(self, frequency): """ if frequency not in ( "1d", - "4d", "1w", "4w", ): @@ -110,7 +109,6 @@ def get(self, frequency): if frequency not in ( "1h", "1d", - "4d", "1w", "4w", ): diff --git a/xtcryptosignals/settings.py b/xtcryptosignals/settings.py index b6ae8b92..293a7fe0 100644 --- a/xtcryptosignals/settings.py +++ b/xtcryptosignals/settings.py @@ -13,7 +13,6 @@ # mongodb collections created during runtime HISTORY_FREQUENCY = ( str(TICKER_SCHEDULE) + "s", - "30s", "1m", "10m", "30m", @@ -21,7 +20,6 @@ "4h", "12h", "1d", - "4d", "1w", "4w", "12w", diff --git a/xtcryptosignals/settings_exchanges.py b/xtcryptosignals/settings_exchanges.py index ed057007..295a9e4e 100644 --- a/xtcryptosignals/settings_exchanges.py +++ b/xtcryptosignals/settings_exchanges.py @@ -256,9 +256,7 @@ SYMBOLS_PER_EXCHANGE.append( { BINANCE_DEX: { - "pairs": [ - ("LTO", "BNB"), - ], + "pairs": [], "single_request": True, } }