Skip to content

Commit ebe5265

Browse files
fix #331
1 parent 3af36c8 commit ebe5265

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1010
[How to upgrade to the latest version!](https://unicorn-binance-websocket-api.docs.lucit.tech/README.html#installation-and-upgrade)
1111

1212
## 1.46.0.dev (development stage/unreleased/unstable)
13+
### Fixed
14+
- issue with separation of spot and margin accounts: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/issues/331
1315

1416
## 1.46.0
1517
### Added

unicorn_binance_websocket_api/restclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import logging
3838
import threading
3939
import time
40-
from typing import Optional
40+
from typing import Optional, Union
4141

4242
logger = logging.getLogger("unicorn_binance_websocket_api")
4343

@@ -55,7 +55,7 @@ def __init__(self, manager):
5555
self.api_secret = False
5656
self.symbol = False
5757
self.listen_key = False
58-
self.last_static_ping_listen_key: Optional[bool, int] = False
58+
self.last_static_ping_listen_key: Optional[Union[bool, int]] = False
5959
self.listen_key_output = False
6060
self.threading_lock = threading.Lock()
6161
self.restful_base_uri = self.manager.restful_base_uri
@@ -66,7 +66,7 @@ def _init_vars(self,
6666
api_secret=False,
6767
symbol=False,
6868
listen_key=False,
69-
last_static_ping_listen_key: Optional[bool, int] = False):
69+
last_static_ping_listen_key: Optional[Union[bool, int]] = False):
7070
"""
7171
set default values and load values from stream_list
7272

0 commit comments

Comments
 (0)