bitunix-automated-crypto-trading 3.2.8__py3-none-any.whl → 3.2.9__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.
@@ -145,7 +145,7 @@ class BitunixApi:
145
145
  "slPrice": stopLossPrice,
146
146
  "slStopType":'MARK_PRICE',
147
147
  "slStopType": self.settings.PROFIT_LOSS_PRICE_TYPE,
148
- "slpOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
148
+ "slOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
149
149
  "positionId":positionId
150
150
  }
151
151
  datajs = await self._post_authenticated(self.placeOrder_Url,data)
@@ -159,7 +159,7 @@ class BitunixApi:
159
159
  "tradeSide":tradeSide,
160
160
  "tpPrice": takeProfitPrice,
161
161
  "tpStopType": self.settings.PROFIT_LOSS_PRICE_TYPE,
162
- "tppOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
162
+ "tpOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
163
163
  "tpOrderPrice":takeProfitPrice,
164
164
  "positionId":positionId
165
165
  }
@@ -174,11 +174,11 @@ class BitunixApi:
174
174
  "tradeSide":tradeSide,
175
175
  "tpPrice": takeProfitPrice,
176
176
  "tpStopType": self.settings.PROFIT_LOSS_PRICE_TYPE,
177
- "tppOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
177
+ "tpOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
178
178
  "tpOrderPrice":takeProfitPrice,
179
179
  "slPrice": stopLossPrice,
180
180
  "slStopType": self.settings.PROFIT_LOSS_PRICE_TYPE,
181
- "slpOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
181
+ "slOrderType": self.settings.PROFIT_LOSS_ORDER_TYPE,
182
182
  "slOrderPrice": stopLossPrice,
183
183
  "positionId":positionId
184
184
  }
@@ -705,6 +705,7 @@ class BitunixSignal:
705
705
  for index, row in df.iterrows():
706
706
 
707
707
  # Calculate the duration in minutes since the position was opened
708
+ await asyncio.sleep(5)
708
709
  data = await self.bitunixApi.GetPositionHistoryData({'symbol': row['symbol']})
709
710
  xtime = float(data['positionList'][0]['mtime'])
710
711
  mtime = pd.to_datetime(xtime, unit='ms').tz_localize('UTC').tz_convert(cst).strftime('%Y-%m-%d %H:%M:%S')
@@ -1 +1 @@
1
- __version__ = "3.2.8"
1
+ __version__ = "3.2.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.2.8
3
+ Version: 3.2.9
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
- bitunix_automated_crypto_trading/BitunixApi.py,sha256=m9eY6mVax82d1gFvwVkIkn8rgxSBbvRP-7emxUX99eE,13549
3
- bitunix_automated_crypto_trading/BitunixSignal.py,sha256=FzYwh43L1VXMrhKNQhX435pazZ933hfhY_FxXc_LrLk,74652
2
+ bitunix_automated_crypto_trading/BitunixApi.py,sha256=NnvI8_PhliZmNEJHjwV6-AwDixU2sBFpTrtItVkyz58,13545
3
+ bitunix_automated_crypto_trading/BitunixSignal.py,sha256=rKwPJ-XbKNRryxZFBxV1ED6nqho9Uvqcwuqeo2eMM8c,74699
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
@@ -11,9 +11,9 @@ bitunix_automated_crypto_trading/__init__.py,sha256=1hzk6nX8NnUCr1tsq8oFq1qGCNhN
11
11
  bitunix_automated_crypto_trading/bitunix.py,sha256=lxwnYARxldA2oU6GdjupilXIlnUh4RX8rQLCOn7x13I,27143
12
12
  bitunix_automated_crypto_trading/config.py,sha256=7h8GvMH1SFuFPhKM3azA2pVS0w2CRzKtUankhI-IKHY,5655
13
13
  bitunix_automated_crypto_trading/logger.py,sha256=NHnA5JZdUFkTAhB7i-1iCAwrdf1fxhDuRvJUkbKPi9Y,2923
14
- bitunix_automated_crypto_trading/version.py,sha256=SKNhDsZ81Bke2WUvgUQFQ7DVlPfRwWZkO5mgyJWSzxo,21
15
- bitunix_automated_crypto_trading-3.2.8.dist-info/METADATA,sha256=M8KtEy_NidCclMGbRkimkMRjthP5ShKLpsEwmZhnv8g,996
16
- bitunix_automated_crypto_trading-3.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- bitunix_automated_crypto_trading-3.2.8.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
18
- bitunix_automated_crypto_trading-3.2.8.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
19
- bitunix_automated_crypto_trading-3.2.8.dist-info/RECORD,,
14
+ bitunix_automated_crypto_trading/version.py,sha256=2stnwoFx_N57ue44omsLCY3PMJmR-I2ZBFSGy-Dn8kM,21
15
+ bitunix_automated_crypto_trading-3.2.9.dist-info/METADATA,sha256=8e5lNlFeNHBH0fnqHs_p9RgQ4dKIx_bfaUtwBq1CBEg,996
16
+ bitunix_automated_crypto_trading-3.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ bitunix_automated_crypto_trading-3.2.9.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
18
+ bitunix_automated_crypto_trading-3.2.9.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
19
+ bitunix_automated_crypto_trading-3.2.9.dist-info/RECORD,,