bitunix-automated-crypto-trading 2.6.8__tar.gz → 3.0.1__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 (22) hide show
  1. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/PKG-INFO +1 -1
  2. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/BitunixSignal.py +1 -1
  3. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/TickerManager.py +11 -11
  4. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/config.py +1 -1
  5. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/PKG-INFO +1 -1
  6. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/setup.py +1 -1
  7. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/README.md +0 -0
  8. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/AsyncThreadRunner.py +0 -0
  9. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/BitunixApi.py +0 -0
  10. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/BitunixWebSocket.py +0 -0
  11. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py +0 -0
  12. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/NotificationManager.py +0 -0
  13. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/ThreadManager.py +0 -0
  14. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/__init__.py +0 -0
  15. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/bitunix.py +0 -0
  16. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading/logger.py +0 -0
  17. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/SOURCES.txt +0 -0
  18. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/dependency_links.txt +0 -0
  19. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/entry_points.txt +0 -0
  20. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/requires.txt +0 -0
  21. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/bitunix_automated_crypto_trading.egg-info/top_level.txt +0 -0
  22. {bitunix_automated_crypto_trading-2.6.8 → bitunix_automated_crypto_trading-3.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 2.6.8
3
+ Version: 3.0.1
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -100,7 +100,7 @@ class BitunixSignal:
100
100
  olist = [entry['symbol'] for entry in self.pendingOrders['orderList']]
101
101
  newlist=olist+plist+list(set(symbols))
102
102
  self.tickerList=newlist[:300]
103
- #self.tickerList=['POPCATUSDT','MANAUSDT']
103
+ #self.tickerList=['IMXUSDT']
104
104
 
105
105
  [await self.add_ticker_to_tickerObjects(sym) for sym in self.tickerList]
106
106
  self.notifications.add_notification(f"{len(self.tickerList)} ticker list loaded")
@@ -225,26 +225,26 @@ class Interval:
225
225
 
226
226
  # Check for BUY signal
227
227
  buy_conditions = (
228
- (not self.settings.EMA_STUDY or not self.settings.EMA_CHECK_ON_OPEN or self.ema_signal == "BUY") or
229
- (not self.settings.MACD_STUDY or not self.settings.MACD_CHECK_ON_OPEN or self.macd_signal == "BUY") or
230
- (not self.settings.BBM_STUDY or not self.settings.BBM_CHECK_ON_OPEN or self.bbm_signal == "BUY") or
231
- (not self.settings.RSI_STUDY or not self.settings.RSI_CHECK_ON_OPEN or self.rsi_signal == "BUY")
228
+ (self.settings.EMA_STUDY and self.settings.EMA_CHECK_ON_OPEN and self.ema_signal == "BUY") or
229
+ (self.settings.MACD_STUDY and self.settings.MACD_CHECK_ON_OPEN and self.macd_signal == "BUY") or
230
+ (self.settings.BBM_STUDY and self.settings.BBM_CHECK_ON_OPEN and self.bbm_signal == "BUY") or
231
+ (self.settings.RSI_STUDY and self.settings.RSI_CHECK_ON_OPEN and self.rsi_signal == "BUY")
232
232
  )
233
233
  additional_buy_conditions = (
234
- (not self.settings.ADX_STUDY or not self.settings.ADX_CHECK_ON_OPEN or self.adx_signal == "STRONG") and
234
+ (not self.settings.ADX_STUDY or not self.settings.ADX_CHECK_ON_OPEN or self.adx_signal == "STRONG") or
235
235
  (not self.settings.CANDLE_TREND_STUDY or not self.settings.CANDLE_TREND_CHECK_ON_OPEN or self.candle_trend == "BULLISH")
236
236
  )
237
237
 
238
238
  # Check for SELL signal
239
239
  sell_conditions = (
240
- (not self.settings.EMA_STUDY or not self.settings.EMA_CHECK_ON_OPEN or self.ema_signal == "SELL") or
241
- (not self.settings.MACD_STUDY or not self.settings.MACD_CHECK_ON_OPEN or self.macd_signal == "SELL") or
242
- (not self.settings.BBM_STUDY or not self.settings.BBM_CHECK_ON_OPEN or self.bbm_signal == "SELL") or
243
- (not self.settings.RSI_STUDY or not self.settings.RSI_CHECK_ON_OPEN or self.rsi_signal == "SELL")
240
+ (self.settings.EMA_STUDY and self.settings.EMA_CHECK_ON_OPEN and self.ema_signal == "SELL") or
241
+ (self.settings.MACD_STUDY and self.settings.MACD_CHECK_ON_OPEN and self.macd_signal == "SELL") or
242
+ (self.settings.BBM_STUDY and self.settings.BBM_CHECK_ON_OPEN and self.bbm_signal == "SELL") or
243
+ (self.settings.RSI_STUDY and self.settings.RSI_CHECK_ON_OPEN and self.rsi_signal == "SELL")
244
244
  )
245
245
  additional_sell_conditions = (
246
- (not self.settings.ADX_STUDY or not self.settings.ADX_CHECK_ON_OPEN or self.adx_signal == "STRONG") and
247
- (not self.settings.CANDLE_TREND_STUDY or not self.settings.CANDLE_TREND_CHECK_ON_OPEN or self.candle_trend == "BEARISH")
246
+ (self.settings.ADX_STUDY and self.settings.ADX_CHECK_ON_OPEN and self.adx_signal == "STRONG") or
247
+ (self.settings.CANDLE_TREND_STUDY and self.settings.CANDLE_TREND_CHECK_ON_OPEN or self.candle_trend == "BEARISH")
248
248
  )
249
249
 
250
250
  # Determine current signal
@@ -87,4 +87,4 @@ class Settings(BaseSettings):
87
87
 
88
88
  class Config:
89
89
  # Specify the file name for loading environment variables
90
- env_file = "config.txt"
90
+ env_file = os.path.dirname(os.path.abspath(__file__))+"/config.txt"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 2.6.8
3
+ Version: 3.0.1
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -66,7 +66,7 @@ class CustomInstall(install):
66
66
 
67
67
  setup(
68
68
  name="bitunix_automated_crypto_trading",
69
- version="2.6.8",
69
+ version="3.0.1",
70
70
  license="MIT",
71
71
  author="tcj2001",
72
72
  author_email="thomsonmathews@hotmail.com",