Skip to content

Hyperliquid HIP-3 markets watch_trades fails, symbol None #28623

@L1nkus

Description

@L1nkus

Operating System

No response

Programming Language

No response

CCXT Version

Latest

Description

Exception in callback Client.receive_loop..after_interrupt() at /home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/base/ws/client.p
y:139
handle: <Handle Client.receive_loop..after_interrupt() at /home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/base/ws/client.py:139>
Traceback (most recent call last):
File "/usr/lib/python3.14/asyncio/events.py", line 94, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/base/ws/client.py", line 142, in after_interrupt
self.handle_message(resolved.result())
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/base/ws/client.py", line 257, in handle_message
self.handle_text_or_binary_message(message.data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/base/ws/client.py", line 252, in handle_text_or_binary_message
self.on_message_callback(self, decode)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/pro/hyperliquid.py", line 1538, in handle_message
exacMethod(client, message)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/pro/hyperliquid.py", line 711, in handle_trades
market = self.market(marketId)
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/async_support/hyperliquid.py", line 392, in market
return super(hyperliquid, self).market(symbol)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/ubuntu/.local/lib/python3.14/site-packages/ccxt/base/exchange.py", line 6626, in market
elif (symbol.endswith('-C')) or (symbol.endswith('-P')) or (symbol.startswith('C-')) or (symbol.startswith('P-')):
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'endswith'

Added debug prints of symbol in the 6626 line market function -> there is a None symbol name occuring, probably on one of the hip-3 markets. also the @142, @234 is sus:

Symbol | PnL/hr | A:PnL A:Vol A:Reb | B:PnL B:Vol B:Reb | C:PnL C:Vol C:Reb

BTC/USDC | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
BTC/USDC:USDC | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
BTC/USDH | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
CASH-BTC/USDT0:USDT0 | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
FLX-BTC/USDH:USDH | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
HYNA-BTC/USDE:USDE | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
PARA-BTCD/USDC:USDC | 0.00 | 0.00 0 0.00 | 0.00 0 0.00 | 0.00 0 0.00 |
symbol @142
symbol BTC/USDC
symbol BTC/USDC:USDC
symbol BTC/USDC:USDC
symbol @234
symbol BTC/USDH
symbol None

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions