pair selection

This commit is contained in:
Nicolás Sánchez 2024-11-11 14:34:17 -03:00
parent 77c772306a
commit 13dc0f9291
1 changed files with 2 additions and 1 deletions

View File

@ -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():