You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2022-07-21 20:37:22,401 : INFO : PHEMEX.ws.1: Auth request result: success
2022-07-21 20:37:22,402 : DEBUG : PHEMEX.ws.1: Subscribing to authenticated channels: {"id":101,"method":"aop.subscribe","params":[]}
2022-07-21 20:37:22,596 : INFO : PHEMEX.ws.1: Subscribe to auth channels request result: success
2022-07-21 20:37:23,297 : INFO : PHEMEX.ws.1: closed connection 'WebSocketClientProtocol'
2022-07-21 20:37:23,297 : ERROR : PHEMEX.ws.1: encountered an exception, reconnecting in 1.0 seconds
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/cryptofeed/connection_handler.py", line 69, in _create_connection
await self._handler(connection, self.handler)
File "/usr/local/lib/python3.9/dist-packages/cryptofeed/connection_handler.py", line 119, in _handler
await handler(message, connection, self.conn.last_message)
File "/usr/local/lib/python3.9/dist-packages/cryptofeed/exchanges/phemex.py", line 621, in message_handler
await self._user_data(msg, timestamp)
File "/usr/local/lib/python3.9/dist-packages/cryptofeed/exchanges/phemex.py", line 592, in _user_data
b = Balance(
File "cryptofeed/types.pyx", line 600, in cryptofeed.types.Balance.__init__
TypeError: __init__() got multiple values for keyword argument 'raw'
I have tried various symbol combinations but all return that the symbol does not exist on Phemex,
BTC-USD-PERP is the only symbol that tries to retrieve balances but fails with above error,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I seem to be unable to get BALANCES to work with Phemex
Using this code
Will produce this error ..
I have tried various symbol combinations but all return that the symbol does not exist on Phemex,
BTC-USD-PERP is the only symbol that tries to retrieve balances but fails with above error,
any help would be greatly appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions