bitunix-automated-crypto-trading 3.2.1__tar.gz → 3.2.4__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.
Files changed (25) hide show
  1. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/PKG-INFO +1 -1
  2. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/BitunixSignal.py +3 -1
  3. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/bitunix.py +1 -1
  4. bitunix_automated_crypto_trading-3.2.4/bitunix_automated_crypto_trading/version.py +1 -0
  5. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/PKG-INFO +1 -1
  6. bitunix_automated_crypto_trading-3.2.1/bitunix_automated_crypto_trading/version.py +0 -1
  7. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/README.md +0 -0
  8. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/AsyncThreadRunner.py +0 -0
  9. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/BitunixApi.py +0 -0
  10. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/BitunixWebSocket.py +0 -0
  11. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py +0 -0
  12. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/NotificationManager.py +0 -0
  13. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/SupportResistance.py +0 -0
  14. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/ThreadManager.py +0 -0
  15. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/TickerManager.py +0 -0
  16. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/__init__.py +0 -0
  17. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/config.py +0 -0
  18. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading/logger.py +0 -0
  19. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/SOURCES.txt +0 -0
  20. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/dependency_links.txt +0 -0
  21. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/entry_points.txt +0 -0
  22. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/requires.txt +0 -0
  23. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/bitunix_automated_crypto_trading.egg-info/top_level.txt +0 -0
  24. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/setup.cfg +0 -0
  25. {bitunix_automated_crypto_trading-3.2.1 → bitunix_automated_crypto_trading-3.2.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.2.1
3
+ Version: 3.2.4
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -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("bitunix_automated_crypto_trading/version.py")
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.2.1
3
+ Version: 3.2.4
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001