diff --git a/hummingbot/connector/exchange/bing_x/bing_x_exchange.py b/hummingbot/connector/exchange/bing_x/bing_x_exchange.py index cc57fd0f3d..7c4e964cbc 100644 --- a/hummingbot/connector/exchange/bing_x/bing_x_exchange.py +++ b/hummingbot/connector/exchange/bing_x/bing_x_exchange.py @@ -265,14 +265,14 @@ async def _format_trading_rules(self, exchange_info_dict: Dict[str, Any]) -> Lis max_notional_size = rule.get("maxNotional") min_order_size = rule.get("minQty") max_order_size = rule.get("maxQty") - - retval.append( - TradingRule(trading_pair, - min_order_size=Decimal(min_order_size), - max_order_size=Decimal(max_order_size), - min_price_increment=Decimal(min_price_increment), - min_base_amount_increment=Decimal(min_base_amount_increment), - min_notional_size=Decimal(min_notional_size))) + if (trading_pair.count('-') == 1): + retval.append( + TradingRule(trading_pair, + min_order_size=Decimal(min_order_size), + max_order_size=Decimal(max_order_size), + min_price_increment=Decimal(min_price_increment), + min_base_amount_increment=Decimal(min_base_amount_increment), + min_notional_size=Decimal(min_notional_size))) except Exception: self.logger().exception(f"Error parsing the trading pair rule {rule.get('name')}. Skipping.")