trd-utils 0.0.37__tar.gz → 0.0.38__tar.gz
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-0.0.37 → trd_utils-0.0.38}/PKG-INFO +1 -1
- {trd_utils-0.0.37 → trd_utils-0.0.38}/pyproject.toml +1 -1
- trd_utils-0.0.38/trd_utils/__init__.py +3 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/bx_ultra/bx_ultra_client.py +3 -1
- trd_utils-0.0.37/trd_utils/__init__.py +0 -3
- {trd_utils-0.0.37 → trd_utils-0.0.38}/LICENSE +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/README.md +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/cipher/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/common_utils/float_utils.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/common_utils/wallet_utils.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/date_utils/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/date_utils/datetime_helpers.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/README.md +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/base_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/blofin/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/blofin/blofin_client.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/blofin/blofin_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/bx_ultra/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/bx_ultra/bx_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/bx_ultra/bx_utils.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/errors.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/exchange_base.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/hyperliquid/README.md +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/hyperliquid/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/hyperliquid/hyperliquid_client.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/hyperliquid/hyperliquid_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/okx/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/okx/okx_client.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/okx/okx_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/exchanges/price_fetcher.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/html_utils/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/html_utils/html_formats.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/tradingview/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/tradingview/tradingview_client.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/tradingview/tradingview_types.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/types_helper/__init__.py +0 -0
- {trd_utils-0.0.37 → trd_utils-0.0.38}/trd_utils/types_helper/base_model.py +0 -0
|
@@ -1008,6 +1008,7 @@ class BXUltraClient(ExchangeBase, IPriceFetcher):
|
|
|
1008
1008
|
uid: int | str,
|
|
1009
1009
|
page_offset: int = 0,
|
|
1010
1010
|
page_size: int = 50,
|
|
1011
|
+
delay_amount: float = 1,
|
|
1011
1012
|
) -> UnifiedTraderPositions:
|
|
1012
1013
|
unified_result = UnifiedTraderPositions()
|
|
1013
1014
|
unified_result.positions = []
|
|
@@ -1053,9 +1054,10 @@ class BXUltraClient(ExchangeBase, IPriceFetcher):
|
|
|
1053
1054
|
|
|
1054
1055
|
unified_result.positions.append(unified_pos)
|
|
1055
1056
|
|
|
1056
|
-
if
|
|
1057
|
+
if result.data.total_str.find("+") == -1:
|
|
1057
1058
|
# all is done
|
|
1058
1059
|
return unified_result
|
|
1060
|
+
await asyncio.sleep(delay_amount)
|
|
1059
1061
|
except Exception as ex:
|
|
1060
1062
|
logger.warning(
|
|
1061
1063
|
f"Failed to fetch std positions from exchange for {uid}: {ex}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|