bitunix-automated-crypto-trading 3.2.8__tar.gz → 3.2.9__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.
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/PKG-INFO +1 -1
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/BitunixApi.py +4 -4
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/BitunixSignal.py +1 -0
- bitunix_automated_crypto_trading-3.2.9/bitunix_automated_crypto_trading/version.py +1 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/PKG-INFO +1 -1
- bitunix_automated_crypto_trading-3.2.8/bitunix_automated_crypto_trading/version.py +0 -1
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/README.md +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/AsyncThreadRunner.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/BitunixWebSocket.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/NotificationManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/SupportResistance.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/ThreadManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/TickerManager.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/__init__.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/bitunix.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/config.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading/logger.py +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/SOURCES.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/dependency_links.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/requires.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/bitunix_automated_crypto_trading.egg-info/top_level.txt +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/setup.cfg +0 -0
- {bitunix_automated_crypto_trading-3.2.8 → bitunix_automated_crypto_trading-3.2.9}/setup.py +0 -0
@@ -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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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')
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.2.9"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.2.8"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|