bitunix-automated-crypto-trading 3.2.1__tar.gz → 3.2.2__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.
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/PKG-INFO +1 -1
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/BitunixSignal.py +3 -1
- bitunix_automated_crypto_trading-3.2.2/bitunix_automated_crypto_trading/version.py +1 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/PKG-INFO +1 -1
- bitunix_automated_crypto_trading-3.2.1/bitunix_automated_crypto_trading/version.py +0 -1
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/README.md +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/AsyncThreadRunner.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/BitunixApi.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/BitunixWebSocket.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/NotificationManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/SupportResistance.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/ThreadManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/TickerManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/__init__.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/bitunix.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/config.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading/logger.py +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/SOURCES.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/dependency_links.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/requires.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/bitunix_automated_crypto_trading.egg-info/top_level.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/setup.cfg +0 -0
- {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.2}/setup.py +0 -0
@@ -406,9 +406,11 @@ class BitunixSignal:
|
|
406
406
|
self.portfolioData = await self.bitunixApi.GetportfolioData()
|
407
407
|
if self.portfolioData:
|
408
408
|
self.portfoliodf=pd.DataFrame(self.portfolioData,index=[0])[["marginCoin","available","margin","crossUnrealizedPNL"]]
|
409
|
+
self.portfoliodf = self.portfoliodf.astype({"marginCoin": str, "available": float, "margin": float, "crossUnrealizedPNL": float})
|
410
|
+
self.portfoliodf['Value'] =round(self.portfoliodf['margin'] + self.portfoliodf['crossUnrealizedPNL'] + self.portfoliodf['available'],2)
|
409
411
|
else:
|
410
412
|
self.portfolioData = pd.DataFrame()
|
411
|
-
self.portfoliodfStyle= self.portfoliodfrenderer.render_html(self.portfoliodf)
|
413
|
+
self.portfoliodfStyle= self.portfoliodfrenderer.render_html(self.portfoliodf[["Value", "marginCoin", "available", "margin", "crossUnrealizedPNL"]])
|
412
414
|
|
413
415
|
except Exception as e:
|
414
416
|
self.logger.info(f"Function: GetportfolioData, {e}, {e.args}, {type(e).__name__}")
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.2.2"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.2.1"
|
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
|