Skip to content

Commit

Permalink
Update websocket.py
Browse files Browse the repository at this point in the history
Fix invalid subscription ID for candles channel
  • Loading branch information
nodje1z committed Jun 27, 2024
1 parent 1f8ad15 commit 169ebd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v4-client-py-v2/dydx_v4_client/indexer/socket/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class Candles(Channel):
channel = "v4_candles"

def subscribe(self, id, resolution: CandlesResolution, batched=True) -> Self:
return super().subscribe(id=f"{id}/{resolution}", batched=batched)
return super().subscribe(id=f"{id}/{resolution.value}", batched=batched)

def unsubscribe(self, id, resolution: CandlesResolution):
return super().unsubscribe(id=f"{id}/{resolution}")
return super().unsubscribe(id=f"{id}/{resolution.value}")


class Subaccounts(Channel):
Expand Down

0 comments on commit 169ebd5

Please sign in to comment.