mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 07:14:20 +01:00
subscription: fix unsubscrbe
This commit is contained in:
@@ -39,7 +39,7 @@ class Subscription:
|
||||
"""
|
||||
if not self.is_subscribed():
|
||||
raise Exception("Subscription is not subscribed to websocket")
|
||||
payload = {'event': 'unsubscribe', 'chan_id': self.chan_id}
|
||||
payload = {'event': 'unsubscribe', 'chanId': self.chan_id}
|
||||
await self._ws.send(json.dumps(payload))
|
||||
|
||||
async def subscribe(self):
|
||||
|
||||
Reference in New Issue
Block a user