Remove delisted to-be coins from sanitized arr (dont buy)
This commit is contained in:
parent
fe26ff763e
commit
96081e20fe
@ -48,6 +48,13 @@ def refresh_whitelist(whitelist: List[str]) -> List[str]:
|
|||||||
'Ignoring %s from whitelist (reason: %s).',
|
'Ignoring %s from whitelist (reason: %s).',
|
||||||
pair, status.get('Notice') or 'wallet is not active'
|
pair, status.get('Notice') or 'wallet is not active'
|
||||||
)
|
)
|
||||||
|
# Wallet will be delisted soon (and cause a loss)
|
||||||
|
if "delisted" in status['Notice']:
|
||||||
|
sanitized_whitelist.remove(pair)
|
||||||
|
logger.info(
|
||||||
|
'Ignoring %s from whitelist (reason: %s).',
|
||||||
|
pair, status.get('Notice') or 'wallet will be delisted soon'
|
||||||
|
)
|
||||||
|
|
||||||
# We need to remove pairs that are unknown
|
# We need to remove pairs that are unknown
|
||||||
final_list = [x for x in sanitized_whitelist if x in known_pairs]
|
final_list = [x for x in sanitized_whitelist if x in known_pairs]
|
||||||
|
Loading…
Reference in New Issue
Block a user