Skip to content

Commit

Permalink
Update mexc_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kienvc authored Aug 27, 2024
1 parent aece7f9 commit 8a6bf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hummingbot/connector/exchange/mexc/mexc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 8a6bf8b

Please sign in to comment.