Skip to content

Commit

Permalink
Resolve "Subscribing to "balances" channel using KrakenSpotWSClientV2…
Browse files Browse the repository at this point in the history
… fails" (#229)
  • Loading branch information
btschwertfeger authored Jun 10, 2024
1 parent cb27c95 commit e4a51fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kraken/spot/websocket_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def private_channel_names(self: KrakenSpotWSClientV2) -> list[str]:
:return: List of available private channel names
:rtype: list[str]
"""
return ["executions"]
return ["executions", "balances"]

@property
def private_methods(self: KrakenSpotWSClientV2) -> list[str]:
Expand Down
2 changes: 1 addition & 1 deletion tests/spot/test_spot_websocket_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def check_access() -> None:
auth_client: SpotWebsocketClientV2TestWrapper = (
SpotWebsocketClientV2TestWrapper(key=spot_api_key, secret=spot_secret_key)
)
assert auth_client.private_channel_names == ["executions"]
assert auth_client.private_channel_names == ["executions", "balances"]
assert auth_client.private_methods == [
"add_order",
"batch_add",
Expand Down

0 comments on commit e4a51fe

Please sign in to comment.