Skip to content

Hyperliquid - Getting unhandled error on spot candles #83

@rapcmia

Description

@rapcmia

Describe the bug

After successfully connected few connectors and test backtests and deploy, observed that for the hyperliquid spot we are getting spam of unexpected error occurr when listening to public klines keyError:BTC on every tick ❌

Image
 hummingbot.data_feed.candles_feed.hyperliquid_spot_candles.hyperliquid_spot_candles - ERROR - Unexpected error occurred when listening to public klines. Retrying in 1 seconds...
Traceback (most recent call last):
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/data_feed/candles_feed/candles_base.py", line 355, in listen_for_subscriptions
    await self._subscribe_channels(ws)
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/data_feed/candles_feed/candles_base.py", line 384, in _subscribe_channels
    subscribe_candles_request: WSJSONRequest = WSJSONRequest(payload=self.ws_subscription_payload())
                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/data_feed/candles_feed/hyperliquid_spot_candles/hyperliquid_spot_candles.py", line 123, in ws_subscription_payload
    "coin": self._coins_dict[self._base_asset],
            ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'BTC
  • This was observed after we check each folder and then this spam of unhandled error occurred when on trading page
  • Tried to change the BTC to UBTC-USDC but no go, same behavior

Steps to reproduce bug

  1. Setup hummingbot deploy on docker using sh setup.sh
  2. Launch dashboard and add hyperliquid spot
  3. Go to Bot orchestration then select Trading
  4. Check terminal and open logs using docker logs -f hummingbot-api

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions