Skip to content

Commit

Permalink
Update websocket.py (#203)
Browse files Browse the repository at this point in the history
* Update websocket.py

* Bump version
  • Loading branch information
samtin0x authored Jul 22, 2024
1 parent fd85b1e commit d30504b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion v4-client-py-v2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dydx-v4-client"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Piotr Piwoński <piwonskp@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit d30504b

Please sign in to comment.