Skip to content

Commit

Permalink
Removed not needed HISTORY_FREQUENCY's & LTO/BNB for no Liquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed Oct 9, 2021
1 parent 0d31f82 commit 96397ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion xtcryptosignals/client/api/tickers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions xtcryptosignals/client/api/tools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
)
Expand Down
2 changes: 0 additions & 2 deletions xtcryptosignals/server/api/charts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def get(self, frequency):
"""
if frequency not in (
"1d",
"4d",
"1w",
"4w",
):
Expand Down Expand Up @@ -110,7 +109,6 @@ def get(self, frequency):
if frequency not in (
"1h",
"1d",
"4d",
"1w",
"4w",
):
Expand Down
2 changes: 0 additions & 2 deletions xtcryptosignals/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
# mongodb collections created during runtime
HISTORY_FREQUENCY = (
str(TICKER_SCHEDULE) + "s",
"30s",
"1m",
"10m",
"30m",
"1h",
"4h",
"12h",
"1d",
"4d",
"1w",
"4w",
"12w",
Expand Down
4 changes: 1 addition & 3 deletions xtcryptosignals/settings_exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@
SYMBOLS_PER_EXCHANGE.append(
{
BINANCE_DEX: {
"pairs": [
("LTO", "BNB"),
],
"pairs": [],
"single_request": True,
}
}
Expand Down

0 comments on commit 96397ad

Please sign in to comment.