bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.14k stars 666 forks source link

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

Open yangdemin opened 9 months ago

yangdemin commented 9 months ago

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 <listcomp>
    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