ccxt 2.8.70__py2.py3-none-any.whl → 2.8.71__py2.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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bybit.py +6 -4
- ccxt/base/exchange.py +1 -1
- ccxt/bybit.py +6 -4
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/base/exchange.py +1 -1
- {ccxt-2.8.70.dist-info → ccxt-2.8.71.dist-info}/METADATA +4 -4
- {ccxt-2.8.70.dist-info → ccxt-2.8.71.dist-info}/RECORD +12 -12
- {ccxt-2.8.70.dist-info → ccxt-2.8.71.dist-info}/WHEEL +0 -0
- {ccxt-2.8.70.dist-info → ccxt-2.8.71.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/bybit.py
CHANGED
@@ -1049,6 +1049,8 @@ class bybit(Exchange):
|
|
1049
1049
|
},
|
1050
1050
|
'precisionMode': TICK_SIZE,
|
1051
1051
|
'options': {
|
1052
|
+
'enableUnifiedMargin': None,
|
1053
|
+
'enableUnifiedAccount': None,
|
1052
1054
|
'createMarketBuyOrderRequiresPrice': True,
|
1053
1055
|
'createUnifiedMarginAccount': False,
|
1054
1056
|
'defaultType': 'swap', # 'swap', 'future', 'option', 'spot'
|
@@ -6758,7 +6760,7 @@ class bybit(Exchange):
|
|
6758
6760
|
isUnifiedAccount = self.safe_value(values, 1)
|
6759
6761
|
if isUnifiedAccount:
|
6760
6762
|
return await self.set_unified_margin_mode(marginMode, symbol, params)
|
6761
|
-
return await self.
|
6763
|
+
return await self.set_derivatives_margin_mode(marginMode, symbol, params)
|
6762
6764
|
|
6763
6765
|
async def set_unified_margin_mode(self, marginMode, symbol=None, params={}):
|
6764
6766
|
await self.load_markets()
|
@@ -6775,7 +6777,7 @@ class bybit(Exchange):
|
|
6775
6777
|
#
|
6776
6778
|
return response
|
6777
6779
|
|
6778
|
-
async def
|
6780
|
+
async def set_derivatives_margin_mode(self, marginMode, symbol=None, params={}):
|
6779
6781
|
self.check_required_symbol('setMarginMode', symbol)
|
6780
6782
|
await self.load_markets()
|
6781
6783
|
market = self.market(symbol)
|
@@ -6801,8 +6803,8 @@ class bybit(Exchange):
|
|
6801
6803
|
request = {
|
6802
6804
|
'symbol': market['id'],
|
6803
6805
|
'tradeMode': tradeMode,
|
6804
|
-
'buyLeverage':
|
6805
|
-
'sellLeverage':
|
6806
|
+
'buyLeverage': buyLeverage,
|
6807
|
+
'sellLeverage': sellLeverage,
|
6806
6808
|
}
|
6807
6809
|
response = await self.privatePostContractV3PrivatePositionSwitchIsolated(self.extend(request, params))
|
6808
6810
|
#
|
ccxt/base/exchange.py
CHANGED
ccxt/bybit.py
CHANGED
@@ -1048,6 +1048,8 @@ class bybit(Exchange):
|
|
1048
1048
|
},
|
1049
1049
|
'precisionMode': TICK_SIZE,
|
1050
1050
|
'options': {
|
1051
|
+
'enableUnifiedMargin': None,
|
1052
|
+
'enableUnifiedAccount': None,
|
1051
1053
|
'createMarketBuyOrderRequiresPrice': True,
|
1052
1054
|
'createUnifiedMarginAccount': False,
|
1053
1055
|
'defaultType': 'swap', # 'swap', 'future', 'option', 'spot'
|
@@ -6756,7 +6758,7 @@ class bybit(Exchange):
|
|
6756
6758
|
isUnifiedAccount = self.safe_value(values, 1)
|
6757
6759
|
if isUnifiedAccount:
|
6758
6760
|
return self.set_unified_margin_mode(marginMode, symbol, params)
|
6759
|
-
return self.
|
6761
|
+
return self.set_derivatives_margin_mode(marginMode, symbol, params)
|
6760
6762
|
|
6761
6763
|
def set_unified_margin_mode(self, marginMode, symbol=None, params={}):
|
6762
6764
|
self.load_markets()
|
@@ -6773,7 +6775,7 @@ class bybit(Exchange):
|
|
6773
6775
|
#
|
6774
6776
|
return response
|
6775
6777
|
|
6776
|
-
def
|
6778
|
+
def set_derivatives_margin_mode(self, marginMode, symbol=None, params={}):
|
6777
6779
|
self.check_required_symbol('setMarginMode', symbol)
|
6778
6780
|
self.load_markets()
|
6779
6781
|
market = self.market(symbol)
|
@@ -6799,8 +6801,8 @@ class bybit(Exchange):
|
|
6799
6801
|
request = {
|
6800
6802
|
'symbol': market['id'],
|
6801
6803
|
'tradeMode': tradeMode,
|
6802
|
-
'buyLeverage':
|
6803
|
-
'sellLeverage':
|
6804
|
+
'buyLeverage': buyLeverage,
|
6805
|
+
'sellLeverage': sellLeverage,
|
6804
6806
|
}
|
6805
6807
|
response = self.privatePostContractV3PrivatePositionSwitchIsolated(self.extend(request, params))
|
6806
6808
|
#
|
ccxt/pro/__init__.py
CHANGED
ccxt/pro/base/exchange.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 2.8.
|
3
|
+
Version: 2.8.71
|
4
4
|
Summary: A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges
|
5
5
|
Home-page: https://ccxt.com
|
6
6
|
Author: Igor Kroitor
|
@@ -258,13 +258,13 @@ console.log (ccxt.exchanges) // print all available exchanges
|
|
258
258
|
|
259
259
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
260
260
|
|
261
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.
|
262
|
-
* unpkg: https://unpkg.com/ccxt@2.8.
|
261
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.71/dist/ccxt.browser.js
|
262
|
+
* unpkg: https://unpkg.com/ccxt@2.8.71/dist/ccxt.browser.js
|
263
263
|
|
264
264
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
265
265
|
|
266
266
|
```HTML
|
267
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.
|
267
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.71/dist/ccxt.browser.js"></script>
|
268
268
|
```
|
269
269
|
|
270
270
|
Creates a global `ccxt` object:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ccxt/__init__.py,sha256=
|
1
|
+
ccxt/__init__.py,sha256=daXIsz_uDgpFY1AkpNM2Lr4s41ydbPV8eMOMbkZXD0I,15913
|
2
2
|
ccxt/ace.py,sha256=LHJs8ki3q_vhTf67M2dY5PhdhlNe3iYdWpI8Ac2rtB8,41009
|
3
3
|
ccxt/alpaca.py,sha256=dd8lDHGg24qRhOyfvXgyjiLZ6YgnJ5ODpW4t4GFR8d8,32910
|
4
4
|
ccxt/ascendex.py,sha256=lmBXXBJxSnfQP_Yl2e8djgx1v1aKPdMEFHNRXKv_f1o,125846
|
@@ -39,7 +39,7 @@ ccxt/btcmarkets.py,sha256=trlczer8FfF-G8goHx7JGL69t4dKEicqN1s3vTPkLNc,48035
|
|
39
39
|
ccxt/btctradeua.py,sha256=eyflzEU3iWPLTnc2Rlpwztj3mrhfl4CeMB4kDpvCnfk,21661
|
40
40
|
ccxt/btcturk.py,sha256=nCpy58mPkvJexbFgYpBVTK42r0KbBPzMVYDR4LQMujY,34977
|
41
41
|
ccxt/buda.py,sha256=HIpIBjMN50t_PUfp8LA5YzA62WawZKkkH5NdJnfGUyU,45286
|
42
|
-
ccxt/bybit.py,sha256=
|
42
|
+
ccxt/bybit.py,sha256=gQGZJTDkuzibyH5LZfZpOcBeA5rnbjI87O1iFbdS4eE,382372
|
43
43
|
ccxt/cex.py,sha256=qxO3CZhOYPC_CVZIjeAaZsed9GKwDMBkdcdjHysOcng,64493
|
44
44
|
ccxt/coinbase.py,sha256=Z55ziczlCLoLbvGEMRv-mOdyVz5aJZ0TW_zMQSUVgSM,123514
|
45
45
|
ccxt/coinbaseprime.py,sha256=R4S5GPob14ELGeKZHtn1yCAdWO8Z48DCqA1tU6dHa1w,1154
|
@@ -110,7 +110,7 @@ ccxt/yobit.py,sha256=XSwUxMPj7615KMSJ0uO_6r_XC86PVI9JmoFW7Sa5rhQ,50480
|
|
110
110
|
ccxt/zaif.py,sha256=amUZYqnOc_YQHoEHYmXQDAuprZX9IiLwIVQELrM4EdY,27619
|
111
111
|
ccxt/zb.py,sha256=ET77-_n6472ce0w2rEvmm9yaxTaH3fsXHoVn58i-tEA,183164
|
112
112
|
ccxt/zonda.py,sha256=BgryogRDDWndzXIhzUCVmDp-Z-4NStgUQ52KveQ3F_k,72727
|
113
|
-
ccxt/async_support/__init__.py,sha256=
|
113
|
+
ccxt/async_support/__init__.py,sha256=DbHlRNoEFps2uve1gpqyl2vv2U-Z2pk_nOtWy9bmo8Y,15746
|
114
114
|
ccxt/async_support/ace.py,sha256=KBkF9jOtfuexziucqdz9hVQ8EQDYEaHAnF7qpb3sUT8,41239
|
115
115
|
ccxt/async_support/alpaca.py,sha256=4vMmD34LgVuwoWN4AK_2Wt12dL5KA3uwGJKQuzG6sAg,33056
|
116
116
|
ccxt/async_support/ascendex.py,sha256=epuquvLlW0vwcjs46tlMTuRf2kAP3rqzCqUMg9IDppw,126460
|
@@ -151,7 +151,7 @@ ccxt/async_support/btcmarkets.py,sha256=mqB-YZnh_ZRK9PwpvAcp579Cj6Ul_A3d3AIEOtGm
|
|
151
151
|
ccxt/async_support/btctradeua.py,sha256=B5OlisST-2mpE_r8svLfxqj4LWZ1EMyaAMcOb971cg0,21807
|
152
152
|
ccxt/async_support/btcturk.py,sha256=jhTw3LqZNdkfnBcF-3nJubvMKdr_nICJ_-u2qFy9UyM,35195
|
153
153
|
ccxt/async_support/buda.py,sha256=I0l06fNVF5SW8lIQ1l5V1wEWK67j3lw-E-8giUt9XE0,45654
|
154
|
-
ccxt/async_support/bybit.py,sha256=
|
154
|
+
ccxt/async_support/bybit.py,sha256=2rEKd0ZitdzHU3mtfUWc93moGz8SuKRCUWFduYx1g98,384330
|
155
155
|
ccxt/async_support/cex.py,sha256=Woavpr_Sw_AQnxsPrQsM4_WG9SgsEE2rphi6jsWoXD4,64819
|
156
156
|
ccxt/async_support/coinbase.py,sha256=vOXow_M1c5vwUOoV7RyDqCbG0P5s3tPt_hbDi2UKpAQ,124158
|
157
157
|
ccxt/async_support/coinbaseprime.py,sha256=u9CmGA9iAq5eSsFzyn4vDSwEBxt5iFTKQOYy-9ZTnJ0,1168
|
@@ -223,14 +223,14 @@ ccxt/async_support/zaif.py,sha256=pU8VIbfzoal-aYYOwXjCJom1wv39QQHp2QWVmf7v5uI,27
|
|
223
223
|
ccxt/async_support/zb.py,sha256=f91YoThqWGOyYl_ywW2x6pw_LQABGS8_4DczWAQKLpU,183868
|
224
224
|
ccxt/async_support/zonda.py,sha256=9pqglR6VBN-iqEYj7CBIZC-96tl05WFrkLf_5csxPVk,73017
|
225
225
|
ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
226
|
-
ccxt/async_support/base/exchange.py,sha256=
|
226
|
+
ccxt/async_support/base/exchange.py,sha256=ELXmfh43NsAR2CXrjgyG9NHHBGDjjbNRtgTjLZs8NKc,108099
|
227
227
|
ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
228
228
|
ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
229
229
|
ccxt/base/decimal_to_precision.py,sha256=FG3IBmZKwWPg7Kj2mgCX7txELUEhfgfmnxrbKwVVtok,6531
|
230
230
|
ccxt/base/errors.py,sha256=-LVeTNyXvu3QEgb-p-KzMpcBgzHlvFTwDzmZK7Gfc14,3401
|
231
|
-
ccxt/base/exchange.py,sha256=
|
231
|
+
ccxt/base/exchange.py,sha256=XeVjej9F7FAa-W3oyqh5R10Jfq2P5XPFBYXFcjx8-Dw,163551
|
232
232
|
ccxt/base/precise.py,sha256=_xfu54sV0vWNnOfGTKRFykeuWP8mn4K1m9lk1tcllX4,8565
|
233
|
-
ccxt/pro/__init__.py,sha256=
|
233
|
+
ccxt/pro/__init__.py,sha256=7PT7xWso0rFnSGPcFaHSbegeVjkqDLnjPWHMCxKh230,5947
|
234
234
|
ccxt/pro/alpaca.py,sha256=7o59h7qBbF9U1_jVBFVlGvstywQOh_dkfV4yqXuspgo,26426
|
235
235
|
ccxt/pro/ascendex.py,sha256=03zsxfX2clG0bNUMT0c0XQJiw2dVvIC0miZX4ywJMAs,34201
|
236
236
|
ccxt/pro/bequant.py,sha256=qz8JjnpkAQY_CFiFSKGqrjjgZ2167_TBKjSJOb9NeDw,1081
|
@@ -289,7 +289,7 @@ ccxt/pro/base/__init__.py,sha256=XscxcHui5I8za8dAzz0O3J-UeyxGkUEXlErAaBWHCjY,184
|
|
289
289
|
ccxt/pro/base/aiohttp_client.py,sha256=wd0ae_KYgQ3gqYgj7uYeJcDPfJWzxMKUQsxs8ZZcTr4,4961
|
290
290
|
ccxt/pro/base/cache.py,sha256=r9l1tEvR3sfN4Joqj6bPBRS0Xrg7mjAFjTDW4QBMozY,6085
|
291
291
|
ccxt/pro/base/client.py,sha256=XvQt-puPiGBXYw1s9nFXj_xXRNkDxc8hF5kvQBVwBnk,7270
|
292
|
-
ccxt/pro/base/exchange.py,sha256=
|
292
|
+
ccxt/pro/base/exchange.py,sha256=pgbVPJI8hKl0ilO2vlKpskQxPhOqY8qaJnnHdi1DWkg,8213
|
293
293
|
ccxt/pro/base/fast_client.py,sha256=NCAHUS35OzhsPve2owVLzM9BmM7cTsYcNFEJBw1UESU,3245
|
294
294
|
ccxt/pro/base/functions.py,sha256=vf2FUrlCak5Tf5a6-vbTtmtzHzbXi0nECRygTmNhxFw,1495
|
295
295
|
ccxt/pro/base/future.py,sha256=hcvcH5rUP4Jn7qbQwx19P4ItM1DWZU2vvRS8Ob6MIDU,249
|
@@ -326,7 +326,7 @@ ccxt/test/test_sync.py,sha256=omZA0xK_2nl58Gwoz65Oi4xRN4uLyuZ0AWZwf2Eqa9w,22795
|
|
326
326
|
ccxt/test/test_throttle.py,sha256=GvLQWtA4fAk_yJrxeisek-wAz7eJdHj0DDKR4_V1beg,3123
|
327
327
|
ccxt/test/test_trade.py,sha256=-pw3gxe26wozFeN_Vy4zWNUQr0fSXOg3FRu-gVvOrqE,3243
|
328
328
|
ccxt/test/test_transaction.py,sha256=IlyTFDWDwGUGzk94yx6vLaJy9zyCRlhEVigXE6hDd40,1514
|
329
|
-
ccxt-2.8.
|
330
|
-
ccxt-2.8.
|
331
|
-
ccxt-2.8.
|
332
|
-
ccxt-2.8.
|
329
|
+
ccxt-2.8.71.dist-info/METADATA,sha256=1WTzCfCNB14Em5tiZKwr7RXyLrOLgoMPgGYblGAZ1cA,109916
|
330
|
+
ccxt-2.8.71.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
331
|
+
ccxt-2.8.71.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
|
332
|
+
ccxt-2.8.71.dist-info/RECORD,,
|
File without changes
|
File without changes
|