Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitget subscribe 'BTC-USDT-PERP' fail #994

Open
yangdemin opened this issue Sep 26, 2023 · 0 comments
Open

Bitget subscribe 'BTC-USDT-PERP' fail #994

yangdemin opened this issue Sep 26, 2023 · 0 comments
Labels

Comments

@yangdemin
Copy link

Bitget subscribe 'BTC-USDT-PERP' fail

Bitget(symbols=['BTC-USDT-PERP'], channels=[TICKER], callbacks={TICKER: ticker_bg})

File "C:\Program Files\Python311\Lib\site-packages\cryptofeed\exchange.py", line 143, in std_symbol_to_exchange_symbol
return self.normalized_symbol_mapping[symbol]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'BTC-USDT-PERP'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Mine\MyPy\bitget\rt_price_gap.py", line 98, in task
sub_ws_market_data(sub_list)
File "G:\Mine\MyPy\bitget\rt_price_gap.py", line 87, in sub_ws_market_data
ex_ba = Bitget(symbols=['BTC-USDT-PERP'], channels=[TICKER], callbacks={TICKER: ticker_bg})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\cryptofeed\feed.py", line 117, in init
symbols = [self.std_symbol_to_exchange_symbol(symbol) for symbol in symbols]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\cryptofeed\feed.py", line 117, in
symbols = [self.std_symbol_to_exchange_symbol(symbol) for symbol in symbols]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\cryptofeed\exchange.py", line 148, in std_symbol_to_exchange_symbol
raise UnsupportedSymbol(f'{symbol} is not supported on {self.id}')
cryptofeed.exceptions.UnsupportedSymbol: BTC-USDT-PERP is not supported on BITGET

@yangdemin yangdemin added the bug label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant