From 8a6bf8ba1a67dfceef98682a797559eff0ba2563 Mon Sep 17 00:00:00 2001 From: kienvc <17985897+kienvc@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:23:13 +0700 Subject: [PATCH] Update mexc_utils.py --- hummingbot/connector/exchange/mexc/mexc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hummingbot/connector/exchange/mexc/mexc_utils.py b/hummingbot/connector/exchange/mexc/mexc_utils.py index 0acf5520f6..5852362054 100644 --- a/hummingbot/connector/exchange/mexc/mexc_utils.py +++ b/hummingbot/connector/exchange/mexc/mexc_utils.py @@ -22,7 +22,7 @@ def is_exchange_information_valid(exchange_info: Dict[str, Any]) -> bool: :param exchange_info: the exchange information for a trading pair :return: True if the trading pair is enabled, False otherwise """ - return exchange_info.get("status", None) == "ENABLED" and "SPOT" in exchange_info.get("permissions", list()) \ + return exchange_info.get("status", None) == "1" and "SPOT" in exchange_info.get("permissions", list()) \ and exchange_info.get("isSpotTradingAllowed", True) is True