trd-utils 0.0.33__py3-none-any.whl → 0.0.34__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.

Potentially problematic release.


This version of trd-utils might be problematic. Click here for more details.

trd_utils/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- __version__ = "0.0.33"
2
+ __version__ = "0.0.34"
3
3
 
@@ -23,6 +23,7 @@ from trd_utils.exchanges.blofin.blofin_types import (
23
23
  ShareConfigResponse,
24
24
  )
25
25
  from trd_utils.cipher import AESCipher
26
+ from trd_utils.exchanges.errors import ExchangeError
26
27
  from trd_utils.exchanges.exchange_base import ExchangeBase
27
28
 
28
29
 
@@ -141,6 +142,17 @@ class BlofinClient(ExchangeBase):
141
142
  from_param=current_id_from,
142
143
  limit_param=chunk_limit,
143
144
  )
145
+ if current_result.code != 200:
146
+ if current_result.msg:
147
+ raise ExchangeError(
148
+ f"blofin get_copy_trader_all_order_list: {current_result.msg}; "
149
+ f"code: {current_result.code}"
150
+ )
151
+ raise ExchangeError(
152
+ "blofin get_copy_trader_all_order_list: unknown error; "
153
+ f"code: {current_result.code}"
154
+ )
155
+
144
156
  if not isinstance(current_result, CopyTraderOrderListResponse):
145
157
  raise ValueError(
146
158
  "get_copy_trader_order_list returned invalid value of "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: trd_utils
3
- Version: 0.0.33
3
+ Version: 0.0.34
4
4
  Summary: Common Basic Utils for Python3. By ALiwoto.
5
5
  Keywords: utils,trd_utils,basic-utils,common-utils
6
6
  Author: ALiwoto
@@ -1,4 +1,4 @@
1
- trd_utils/__init__.py,sha256=nSoM18hDJ2GE427yOVowkSYX38d1GPSj8rG7RKp-egI,25
1
+ trd_utils/__init__.py,sha256=GsuIE8NCRzLRhMGiCIknc3O6tjSWfykx6tLGfuEkYz4,25
2
2
  trd_utils/cipher/__init__.py,sha256=V05KNuzQwCic-ihMVHlC8sENaJGc3I8MCb4pg4849X8,1765
3
3
  trd_utils/common_utils/float_utils.py,sha256=aYPwJ005LmrRhXAngojwvdDdtRgeb1FfR6hKeQ5ndMU,470
4
4
  trd_utils/common_utils/wallet_utils.py,sha256=OX9q2fymP0VfIWTRIRBP8W33cfyjLXimxMgPOsZe-3g,727
@@ -8,7 +8,7 @@ trd_utils/exchanges/README.md,sha256=UwkpsfcoLCJaMvJe4yBsFkDpf8P6DOLYhtybb6xWMLc
8
8
  trd_utils/exchanges/__init__.py,sha256=sZRyp24q0KyMYASshAfsP-AfvsCADTYqqefxiRulPKE,484
9
9
  trd_utils/exchanges/base_types.py,sha256=NGykHGyY97mcc4gqxa0RLNElro0y3cQsdSCM1XAtIz8,3625
10
10
  trd_utils/exchanges/blofin/__init__.py,sha256=X4r9o4Nyjla4UeOBG8lrgtnGYO2aErFMKaJ7yQrFasE,76
11
- trd_utils/exchanges/blofin/blofin_client.py,sha256=RJcyET62cjxczEdHqQ-Cy6CT8veJYio_efublNBvEo8,12378
11
+ trd_utils/exchanges/blofin/blofin_client.py,sha256=UMPxgGtAiImEjNbAQ3cDqu0Tw9BtKndcj92_2S55HEY,12904
12
12
  trd_utils/exchanges/blofin/blofin_types.py,sha256=ZlHX1ClYTd2pDRTQIlZYyBu5ReGpMgxXxKASsPeBQug,4090
13
13
  trd_utils/exchanges/bx_ultra/__init__.py,sha256=8Ssy-eOemQR32Nv1-FoPHm87nRqRO4Fm2PU5GHEFKfQ,80
14
14
  trd_utils/exchanges/bx_ultra/bx_types.py,sha256=hRe8DfF3sdXlMdk-knwWx4XpZUp1rITpXPnUDtiy93o,34715
@@ -31,7 +31,7 @@ trd_utils/tradingview/tradingview_client.py,sha256=g_eWYaCRQAL8Kvd-r6AnAdbH7Jha6
31
31
  trd_utils/tradingview/tradingview_types.py,sha256=z21MXPVdWHAduEl3gSeMIRhxtBN9yK-jPYHfZSMIbSA,6144
32
32
  trd_utils/types_helper/__init__.py,sha256=lLbUiW1jUV1gjzTMFLthwkvF0hwauH-F_J2JZq--1U0,67
33
33
  trd_utils/types_helper/base_model.py,sha256=Q2KK0r4UXP9PlWeIl6nxdAeCGB5InU5IkTNGAfJasfM,11808
34
- trd_utils-0.0.33.dist-info/LICENSE,sha256=J1EP2xt87RjjmsTV1jTjHDQMLIM9FjdwEftTpw8hyv4,1067
35
- trd_utils-0.0.33.dist-info/METADATA,sha256=6L4kyCagWXrwlvxY_4mSpmd2c-8bqpBSVBu72_d7LJI,1179
36
- trd_utils-0.0.33.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
- trd_utils-0.0.33.dist-info/RECORD,,
34
+ trd_utils-0.0.34.dist-info/LICENSE,sha256=J1EP2xt87RjjmsTV1jTjHDQMLIM9FjdwEftTpw8hyv4,1067
35
+ trd_utils-0.0.34.dist-info/METADATA,sha256=H9rMPrA7U_x3IGEHWivudi9ixFtXr9bKvDqarQgM8SM,1179
36
+ trd_utils-0.0.34.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
+ trd_utils-0.0.34.dist-info/RECORD,,