bitunix-automated-crypto-trading 3.3.4__py3-none-any.whl → 3.3.5__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.
@@ -784,7 +784,7 @@ class BitunixSignal:
784
784
  f'{colors.YELLOW} Opening {"long" if side=="BUY" else "short"} position for {row.symbol} with {qty} qty @ {price})'
785
785
  )
786
786
  datajs = None
787
- if self.settings.BOT_TAKE_PROFIT_STOP_LOSS:
787
+ if self.settings.BOT_CONTROLS_TP_SL:
788
788
  datajs = await self.bitunixApi.PlaceOrder(row.symbol, qty, price, side)
789
789
  else:
790
790
  if tpPrice == 0 and slPrice == 0:
@@ -846,7 +846,7 @@ class BitunixSignal:
846
846
 
847
847
  if select and int(self.settings.MAX_AUTO_TRADES)!=0:
848
848
 
849
- if self.settings.BOT_TRAIL_STOP_LOSS and self.settings.PROFIT_PERCENTAGE > 0 and self.settings.LOSS_PERCENTAGE > 0:
849
+ if self.settings.BOT_TRAIL_TP_SL and self.settings.PROFIT_PERCENTAGE > 0 and self.settings.LOSS_PERCENTAGE > 0:
850
850
  last, bid, ask, mtv = await self.GetTickerBidLastAsk(row.symbol)
851
851
  price = (bid if side == "BUY" else ask if side == "SELL" else last) if bid<=last<=ask else last
852
852
  decimal_places = abs(Decimal(str(price)).as_tuple().exponent)
@@ -913,7 +913,7 @@ class BitunixSignal:
913
913
  )
914
914
 
915
915
 
916
- if self.settings.BOT_TAKE_PROFIT_STOP_LOSS:
916
+ if self.settings.BOT_CONTROLS_TP_SL:
917
917
  # check take profit amount or accept loss amount
918
918
  if float(self.settings.LOSS_AMOUNT) > 0 and total_pnl < -float(self.settings.LOSS_AMOUNT):
919
919
  last, bid, ask, mtv = await self.GetTickerBidLastAsk(row.symbol)
@@ -21,8 +21,8 @@ class Settings(BaseSettings):
21
21
  LOSS_PERCENTAGE: float = Field(default=10, ge=0.0)
22
22
  PROFIT_AMOUNT: float = Field(default=0, ge=0.0)
23
23
  LOSS_AMOUNT: float = Field(default=5.0, ge=0.0)
24
- BOT_TAKE_PROFIT_STOP_LOSS: bool = Field(default=False)
25
- BOT_TRAIL_STOP_LOSS: bool = Field(default=False)
24
+ BOT_CONTROLS_TP_SL: bool = Field(default=False)
25
+ BOT_TRAIL_TP_SL: bool = Field(default=False)
26
26
  TP_STOP_TYPE: str = Field(default="MARK_PRICE")
27
27
  TP_ORDER_TYPE: str = Field(default="LIMIT")
28
28
  SL_STOP_TYPE: str = Field(default="MARK_PRICE")
@@ -1 +1 @@
1
- __version__ = "3.3.4"
1
+ __version__ = "3.3.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.3.4
3
+ Version: 3.3.5
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -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=5qg-K5IcsAbb6K1feP9zL7RzSz7JzdGAxoY8R_YWxWE,15666
3
- bitunix_automated_crypto_trading/BitunixSignal.py,sha256=VHLcdjz1dZ43iTHOUzFJQCrURHGKnjOQgKIVnjG59Z8,88192
3
+ bitunix_automated_crypto_trading/BitunixSignal.py,sha256=ke8KNlorfmmifTWhdFPUR63Zsl__gPRdalAqcdR6zSo,88174
4
4
  bitunix_automated_crypto_trading/BitunixWebSocket.py,sha256=uiqAcis3u-ct07tjaTiC87ujzvcAtVRZ31CMiTBDW_M,11309
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
@@ -9,11 +9,11 @@ bitunix_automated_crypto_trading/ThreadManager.py,sha256=Lw5_1EIT0m3AFSv5CIMpnjt
9
9
  bitunix_automated_crypto_trading/TickerManager.py,sha256=CLd7pvE-qyYBPBauy--A54z7srmMMJsiaWcrY4ezFFU,41939
10
10
  bitunix_automated_crypto_trading/__init__.py,sha256=1hzk6nX8NnUCr1tsq8oFq1qGCNhNwnwldWE75641Eew,78
11
11
  bitunix_automated_crypto_trading/bitunix.py,sha256=lxwnYARxldA2oU6GdjupilXIlnUh4RX8rQLCOn7x13I,27143
12
- bitunix_automated_crypto_trading/config.py,sha256=lumxhgx8zqUQpnY65iRLglPwwhCrwehfVY4TwIfF1VU,5849
12
+ bitunix_automated_crypto_trading/config.py,sha256=J-YIrcbS-FOlLze1QvAocelYPA53thJODVyhuZwQW5E,5838
13
13
  bitunix_automated_crypto_trading/logger.py,sha256=NHnA5JZdUFkTAhB7i-1iCAwrdf1fxhDuRvJUkbKPi9Y,2923
14
- bitunix_automated_crypto_trading/version.py,sha256=10TOVNZCc0P5Tfy_k826pnCvkOFvKve5F1qX7NHLl5w,21
15
- bitunix_automated_crypto_trading-3.3.4.dist-info/METADATA,sha256=caYTHU-LQsI9koHx6O6IC1WYmCFHpUfdjNyZ1niw3qA,996
16
- bitunix_automated_crypto_trading-3.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- bitunix_automated_crypto_trading-3.3.4.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
18
- bitunix_automated_crypto_trading-3.3.4.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
19
- bitunix_automated_crypto_trading-3.3.4.dist-info/RECORD,,
14
+ bitunix_automated_crypto_trading/version.py,sha256=tC7feJeEXvyWQbCx5glWxCoo1hKMycavaWn-uadNZ0E,21
15
+ bitunix_automated_crypto_trading-3.3.5.dist-info/METADATA,sha256=gQpnt3MalX-CV_EokXNyadl2q679NfFj2Cw8bgtzudg,996
16
+ bitunix_automated_crypto_trading-3.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ bitunix_automated_crypto_trading-3.3.5.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
18
+ bitunix_automated_crypto_trading-3.3.5.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
19
+ bitunix_automated_crypto_trading-3.3.5.dist-info/RECORD,,