bitunix-automated-crypto-trading 3.2.1__py3-none-any.whl → 3.2.4__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.
- bitunix_automated_crypto_trading/BitunixSignal.py +3 -1
- bitunix_automated_crypto_trading/bitunix.py +1 -1
- bitunix_automated_crypto_trading/version.py +1 -1
- {bitunix_automated_crypto_trading-3.2.1.dist-info → bitunix_automated_crypto_trading-3.2.4.dist-info}/METADATA +1 -1
- {bitunix_automated_crypto_trading-3.2.1.dist-info → bitunix_automated_crypto_trading-3.2.4.dist-info}/RECORD +8 -8
- {bitunix_automated_crypto_trading-3.2.1.dist-info → bitunix_automated_crypto_trading-3.2.4.dist-info}/WHEEL +0 -0
- {bitunix_automated_crypto_trading-3.2.1.dist-info → bitunix_automated_crypto_trading-3.2.4.dist-info}/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.1.dist-info → bitunix_automated_crypto_trading-3.2.4.dist-info}/top_level.txt +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__}")
|
|
@@ -65,7 +65,7 @@ HOST = os.getenv('HOST')
|
|
|
65
65
|
logger = Logger(__name__, LOG_FILE).get_logger()
|
|
66
66
|
|
|
67
67
|
def get_version():
|
|
68
|
-
version_file = os.path.abspath("
|
|
68
|
+
version_file = os.path.abspath("version.py")
|
|
69
69
|
with open(version_file) as f:
|
|
70
70
|
return re.search(r'__version__ = "(.*?)"', f.read()).group(1)
|
|
71
71
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "3.2.
|
|
1
|
+
__version__ = "3.2.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
bitunix_automated_crypto_trading/AsyncThreadRunner.py,sha256=bNIM_1xRYQOFEsIn74EX6qVpC59-GMhhr2CeiPr_GWg,3253
|
|
2
2
|
bitunix_automated_crypto_trading/BitunixApi.py,sha256=udgBwbWowf7v46jVVyfs-VjeNh9ajnghTiJf70lvn5w,11269
|
|
3
|
-
bitunix_automated_crypto_trading/BitunixSignal.py,sha256=
|
|
3
|
+
bitunix_automated_crypto_trading/BitunixSignal.py,sha256=6IZJiFh7OiEYNBIMdUQcfQ7ErcfP64JKyUqnpJ8V4Fc,74449
|
|
4
4
|
bitunix_automated_crypto_trading/BitunixWebSocket.py,sha256=-_7wRAZxJXG63joBq2k3TUC4qd06v7Miki-LGVtNIDk,11234
|
|
5
5
|
bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py,sha256=Pqdzhh_nfIxFEZH9L_R5QXB8moDPbgeTGT_hmBkHWMg,2899
|
|
6
6
|
bitunix_automated_crypto_trading/NotificationManager.py,sha256=exs6REABBA1omTeTGuUuECzxs5dGqdyL7oI8WyxS6Xc,798
|
|
@@ -8,12 +8,12 @@ bitunix_automated_crypto_trading/SupportResistance.py,sha256=x_to4M4OHg0h8o40DXD
|
|
|
8
8
|
bitunix_automated_crypto_trading/ThreadManager.py,sha256=Lw5_1EIT0m3AFSv5CIMpnjtA0DnNw2qQ6JtSpT34LyM,2349
|
|
9
9
|
bitunix_automated_crypto_trading/TickerManager.py,sha256=xzFzH1qDxCGi2bNji1fO8t7WM971RtN-HsUTWxTn7Ic,42717
|
|
10
10
|
bitunix_automated_crypto_trading/__init__.py,sha256=1hzk6nX8NnUCr1tsq8oFq1qGCNhNwnwldWE75641Eew,78
|
|
11
|
-
bitunix_automated_crypto_trading/bitunix.py,sha256=
|
|
11
|
+
bitunix_automated_crypto_trading/bitunix.py,sha256=dNCrQfUNj8jn0jxnP47p9G7QGGuta4nC6GanXPeV9yw,27132
|
|
12
12
|
bitunix_automated_crypto_trading/config.py,sha256=H9iMKzibh295kQrf4RG66hv7_zF_x8Dvp7uCnFU7Voo,5478
|
|
13
13
|
bitunix_automated_crypto_trading/logger.py,sha256=NHnA5JZdUFkTAhB7i-1iCAwrdf1fxhDuRvJUkbKPi9Y,2923
|
|
14
|
-
bitunix_automated_crypto_trading/version.py,sha256=
|
|
15
|
-
bitunix_automated_crypto_trading-3.2.
|
|
16
|
-
bitunix_automated_crypto_trading-3.2.
|
|
17
|
-
bitunix_automated_crypto_trading-3.2.
|
|
18
|
-
bitunix_automated_crypto_trading-3.2.
|
|
19
|
-
bitunix_automated_crypto_trading-3.2.
|
|
14
|
+
bitunix_automated_crypto_trading/version.py,sha256=HAz1UlgZ1AFtG13RBhKvesPWp2FTZ-LY6ZnDnZDjX40,21
|
|
15
|
+
bitunix_automated_crypto_trading-3.2.4.dist-info/METADATA,sha256=2i59ePmLkywA_I_EiOPeVq-83nT899jrd9YSYIPo5ZE,996
|
|
16
|
+
bitunix_automated_crypto_trading-3.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
bitunix_automated_crypto_trading-3.2.4.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
|
|
18
|
+
bitunix_automated_crypto_trading-3.2.4.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
|
|
19
|
+
bitunix_automated_crypto_trading-3.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|