kucoin-api 0.0.52__py3-none-any.whl → 0.0.54__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kucoin/ccxt/async_support/base/ws/cache.py +6 -1
- kucoin/ccxt/base/errors.py +6 -0
- {kucoin_api-0.0.52.dist-info → kucoin_api-0.0.54.dist-info}/METADATA +1 -1
- {kucoin_api-0.0.52.dist-info → kucoin_api-0.0.54.dist-info}/RECORD +5 -5
- {kucoin_api-0.0.52.dist-info → kucoin_api-0.0.54.dist-info}/WHEEL +0 -0
@@ -1,5 +1,7 @@
|
|
1
1
|
import collections
|
2
|
+
import logging
|
2
3
|
|
4
|
+
logger = logging.getLogger(__name__)
|
3
5
|
|
4
6
|
class Delegate:
|
5
7
|
def __init__(self, name, delegated):
|
@@ -151,7 +153,10 @@ class ArrayCacheBySymbolById(ArrayCache):
|
|
151
153
|
if len(self._deque) == self._deque.maxlen:
|
152
154
|
delete_item = self._deque.popleft()
|
153
155
|
self._index.popleft()
|
154
|
-
|
156
|
+
try:
|
157
|
+
del self.hashmap[delete_item['symbol']][delete_item['id']]
|
158
|
+
except Exception as e:
|
159
|
+
logger.error(f"Error deleting item from hashmap: {delete_item}. Error:{e}")
|
155
160
|
self._deque.append(item)
|
156
161
|
self._index.append(item['id'])
|
157
162
|
if self._clear_all_updates:
|
kucoin/ccxt/base/errors.py
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
|
3
|
+
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
4
|
+
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
|
+
# EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
6
|
+
|
1
7
|
error_hierarchy = {
|
2
8
|
'BaseError': {
|
3
9
|
'ExchangeError': {
|
@@ -9,7 +9,7 @@ kucoin/ccxt/async_support/base/exchange.py,sha256=Ozc443GgOx2zlkUwR8x3EwHScNGDvL
|
|
9
9
|
kucoin/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
10
10
|
kucoin/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
11
11
|
kucoin/ccxt/async_support/base/ws/aiohttp_client.py,sha256=Y5HxAVXyyYduj6b6SbbUZETlq3GrVMzrkW1r-TMgpb8,6329
|
12
|
-
kucoin/ccxt/async_support/base/ws/cache.py,sha256=
|
12
|
+
kucoin/ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
|
13
13
|
kucoin/ccxt/async_support/base/ws/client.py,sha256=J5lTz3QGTaURZYeqW4R5xNw1orDlHYoOVXIJIX6d5Zc,8188
|
14
14
|
kucoin/ccxt/async_support/base/ws/fast_client.py,sha256=WPXKqSi9OPDtpgAvt19T1EVtTg4BNk8WGSLtxUVMh08,3956
|
15
15
|
kucoin/ccxt/async_support/base/ws/functions.py,sha256=qwvEnjtINWL5ZU-dbbeIunjyBxzFqbGWHfVhxqAcKug,1499
|
@@ -18,7 +18,7 @@ kucoin/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_H
|
|
18
18
|
kucoin/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
|
19
19
|
kucoin/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
20
20
|
kucoin/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
21
|
-
kucoin/ccxt/base/errors.py,sha256=
|
21
|
+
kucoin/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
|
22
22
|
kucoin/ccxt/base/exchange.py,sha256=1y1XgdaAMiN5CyMzmwFXi-qEm3-94gOFaq7m7eyowEw,327221
|
23
23
|
kucoin/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
24
24
|
kucoin/ccxt/base/types.py,sha256=SfxIKDSsxP7MPHWiOVI965Nr5NSEPpAno5fuveTRi3w,11423
|
@@ -283,6 +283,6 @@ kucoin/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
|
|
283
283
|
kucoin/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
284
284
|
kucoin/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
285
285
|
kucoin/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
286
|
-
kucoin_api-0.0.
|
287
|
-
kucoin_api-0.0.
|
288
|
-
kucoin_api-0.0.
|
286
|
+
kucoin_api-0.0.54.dist-info/METADATA,sha256=MR1NvCk4pziwrGoj3doX5sCEpCaCyBVpT-EzD_w-_gU,18571
|
287
|
+
kucoin_api-0.0.54.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
288
|
+
kucoin_api-0.0.54.dist-info/RECORD,,
|
File without changes
|