From 13dc0f92912049f3fc5d62a88bce392bc35083b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Mon, 11 Nov 2024 14:34:17 -0300 Subject: [PATCH] pair selection --- utils/fetch_pair_volatility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/fetch_pair_volatility.py b/utils/fetch_pair_volatility.py index ae176a2..e706da4 100644 --- a/utils/fetch_pair_volatility.py +++ b/utils/fetch_pair_volatility.py @@ -87,7 +87,8 @@ def get_pair_list(broker, inclusions = ["/USDT"], exclusions = []): "enableRateLimit": True }) - pair_list = [pair for pair in exchange.load_markets() if ":" not in pair] + markets = exchange.load_markets() + pair_list = [pair for pair in markets if ":" not in pair and markets[pair]["active"]] for inclusion in inclusions: for pair in pair_list.copy():