Skip to content

Commit

Permalink
fix(ws): exclude connection_name from data
Browse files Browse the repository at this point in the history
  • Loading branch information
Atem18 committed Nov 3, 2021
1 parent 2af83cd commit 8176b07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
__pycache__
.vscode
env
.env
dist
build
.mypy_cache
Expand Down
8 changes: 4 additions & 4 deletions kraky/ws.py
Expand Up @@ -223,7 +223,7 @@ async def add_order(
data = {
arg: value
for arg, value in locals().items()
if arg != "self" and value is not None
if arg != "self" and arg != "connection_name" and value is not None
}
await self._send(data=data, connection_name=connection_name)

Expand All @@ -239,7 +239,7 @@ async def cancel_order(
data = {
arg: value
for arg, value in locals().items()
if arg != "self" and value is not None
if arg != "self" and arg != "connection_name" and value is not None
}
await self._send(data=data, connection_name=connection_name)

Expand All @@ -254,7 +254,7 @@ async def cancel_all(
data = {
arg: value
for arg, value in locals().items()
if arg != "self" and value is not None
if arg != "self" and arg != "connection_name" and value is not None
}
await self._send(data=data, connection_name=connection_name)

Expand All @@ -270,6 +270,6 @@ async def cancel_all_orders_after(
data = {
arg: value
for arg, value in locals().items()
if arg != "self" and value is not None
if arg != "self" and arg != "connection_name" and value is not None
}
await self._send(data=data, connection_name=connection_name)

0 comments on commit 8176b07

Please sign in to comment.