这是indexloc提供的服务,不要输入任何密码
Skip to content

Issues with binance_us connector #7834

@OmniSkr

Description

@OmniSkr

Describe the bug

When using the binance_us connector it still seems to use some binance settings and the mapping for the trading pairs are different. I don't think there should be a "-" in the trading pair.

1762044709.2552001 - hummingbot.connector.exchange.binance.binance_api_order_book_data_source.BinanceAPIOrderBookDataSource: Unexpected error occurred subscribing to order book trading and delta streams...
Traceback (most recent call last):
File "/home/hummingbot/hummingbot/connector/exchange/binance/binance_api_order_book_data_source.py", line 75, in _subscribe_channels
symbol = await self._connector.exchange_symbol_associated_to_pair(trading_pair=trading_pair)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "hummingbot/connector/exchange_base.pyx", line 97, in exchange_symbol_associated_to_pair
return symbol_map.inverse[trading_pair]
File "/opt/conda/envs/hummingbot/lib/python3.12/site-packages/bidict/_base.py", line 524, in getitem
return self._fwdm[key]
~~~~~~~~~~^^^^^
KeyError: 'BTC-USDT'

Steps to reproduce

  1. Use binance_us connector
  2. Try to run a strategy

Release version

deploy - newest version

Type of installation

Docker

Attach required files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions