ccxt 4.3.64__py2.py3-none-any.whl → 4.3.65__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 +11 -4
- ccxt/base/exchange.py +1 -1
- ccxt/bybit.py +11 -4
- ccxt/pro/__init__.py +1 -1
- {ccxt-4.3.64.dist-info → ccxt-4.3.65.dist-info}/METADATA +4 -4
- {ccxt-4.3.64.dist-info → ccxt-4.3.65.dist-info}/RECORD +12 -12
- {ccxt-4.3.64.dist-info → ccxt-4.3.65.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.3.64.dist-info → ccxt-4.3.65.dist-info}/WHEEL +0 -0
- {ccxt-4.3.64.dist-info → ccxt-4.3.65.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/bybit.py
CHANGED
@@ -2914,7 +2914,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2914
2914
|
:see: https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
2915
2915
|
:see: https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
2916
2916
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2917
|
-
:param str [params.type]: wallet type, ['spot', 'swap', '
|
2917
|
+
:param str [params.type]: wallet type, ['spot', 'swap', 'funding']
|
2918
2918
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
2919
2919
|
"""
|
2920
2920
|
await self.load_markets()
|
@@ -2922,10 +2922,17 @@ class bybit(Exchange, ImplicitAPI):
|
|
2922
2922
|
enableUnifiedMargin, enableUnifiedAccount = await self.is_unified_enabled()
|
2923
2923
|
isUnifiedAccount = (enableUnifiedMargin or enableUnifiedAccount)
|
2924
2924
|
type = None
|
2925
|
-
|
2925
|
+
# don't use getBybitType here
|
2926
|
+
type, params = self.handle_market_type_and_params('fetchBalance', None, params)
|
2927
|
+
subType = None
|
2928
|
+
subType, params = self.handle_sub_type_and_params('fetchBalance', None, params)
|
2929
|
+
if (type == 'swap') or (type == 'future'):
|
2930
|
+
type = subType
|
2931
|
+
lowercaseRawType = type.lower() if (type is not None) else None
|
2926
2932
|
isSpot = (type == 'spot')
|
2927
2933
|
isLinear = (type == 'linear')
|
2928
2934
|
isInverse = (type == 'inverse')
|
2935
|
+
isFunding = (lowercaseRawType == 'fund') or (lowercaseRawType == 'funding')
|
2929
2936
|
if isUnifiedAccount:
|
2930
2937
|
if isInverse:
|
2931
2938
|
type = 'contract'
|
@@ -2941,10 +2948,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
2941
2948
|
response = None
|
2942
2949
|
if isSpot and (marginMode is not None):
|
2943
2950
|
response = await self.privateGetV5SpotCrossMarginTradeAccount(self.extend(request, params))
|
2944
|
-
elif
|
2951
|
+
elif isFunding:
|
2945
2952
|
# use self endpoint only we have no other choice
|
2946
2953
|
# because it requires transfer permission
|
2947
|
-
request['accountType'] =
|
2954
|
+
request['accountType'] = 'FUND'
|
2948
2955
|
response = await self.privateGetV5AssetTransferQueryAccountCoinsBalance(self.extend(request, params))
|
2949
2956
|
else:
|
2950
2957
|
request['accountType'] = unifiedType
|
ccxt/base/exchange.py
CHANGED
ccxt/bybit.py
CHANGED
@@ -2913,7 +2913,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
2913
2913
|
:see: https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
2914
2914
|
:see: https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
2915
2915
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2916
|
-
:param str [params.type]: wallet type, ['spot', 'swap', '
|
2916
|
+
:param str [params.type]: wallet type, ['spot', 'swap', 'funding']
|
2917
2917
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
2918
2918
|
"""
|
2919
2919
|
self.load_markets()
|
@@ -2921,10 +2921,17 @@ class bybit(Exchange, ImplicitAPI):
|
|
2921
2921
|
enableUnifiedMargin, enableUnifiedAccount = self.is_unified_enabled()
|
2922
2922
|
isUnifiedAccount = (enableUnifiedMargin or enableUnifiedAccount)
|
2923
2923
|
type = None
|
2924
|
-
|
2924
|
+
# don't use getBybitType here
|
2925
|
+
type, params = self.handle_market_type_and_params('fetchBalance', None, params)
|
2926
|
+
subType = None
|
2927
|
+
subType, params = self.handle_sub_type_and_params('fetchBalance', None, params)
|
2928
|
+
if (type == 'swap') or (type == 'future'):
|
2929
|
+
type = subType
|
2930
|
+
lowercaseRawType = type.lower() if (type is not None) else None
|
2925
2931
|
isSpot = (type == 'spot')
|
2926
2932
|
isLinear = (type == 'linear')
|
2927
2933
|
isInverse = (type == 'inverse')
|
2934
|
+
isFunding = (lowercaseRawType == 'fund') or (lowercaseRawType == 'funding')
|
2928
2935
|
if isUnifiedAccount:
|
2929
2936
|
if isInverse:
|
2930
2937
|
type = 'contract'
|
@@ -2940,10 +2947,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
2940
2947
|
response = None
|
2941
2948
|
if isSpot and (marginMode is not None):
|
2942
2949
|
response = self.privateGetV5SpotCrossMarginTradeAccount(self.extend(request, params))
|
2943
|
-
elif
|
2950
|
+
elif isFunding:
|
2944
2951
|
# use self endpoint only we have no other choice
|
2945
2952
|
# because it requires transfer permission
|
2946
|
-
request['accountType'] =
|
2953
|
+
request['accountType'] = 'FUND'
|
2947
2954
|
response = self.privateGetV5AssetTransferQueryAccountCoinsBalance(self.extend(request, params))
|
2948
2955
|
else:
|
2949
2956
|
request['accountType'] = unifiedType
|
ccxt/pro/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.3.65
|
4
4
|
Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
|
5
5
|
Home-page: https://ccxt.com
|
6
6
|
Author: Igor Kroitor
|
@@ -268,13 +268,13 @@ console.log(version, Object.keys(exchanges));
|
|
268
268
|
|
269
269
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
270
270
|
|
271
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
272
|
-
* unpkg: https://unpkg.com/ccxt@4.3.
|
271
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.65/dist/ccxt.browser.min.js
|
272
|
+
* unpkg: https://unpkg.com/ccxt@4.3.65/dist/ccxt.browser.min.js
|
273
273
|
|
274
274
|
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.
|
275
275
|
|
276
276
|
```HTML
|
277
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
277
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.65/dist/ccxt.browser.min.js"></script>
|
278
278
|
```
|
279
279
|
|
280
280
|
Creates a global `ccxt` object:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ccxt/__init__.py,sha256=
|
1
|
+
ccxt/__init__.py,sha256=VwMgybUOVOIDuo4uKTPQgTGwbCctjJ-9AFEI0daBTEI,16319
|
2
2
|
ccxt/ace.py,sha256=5DwQ9rmdDCRh-l-65Mi2Ei_o1GqR0xqWZiiU7Lz-LvM,42379
|
3
3
|
ccxt/alpaca.py,sha256=HQuhQZSFGRlT-BaCUSEZmxpzYp6tll2zn63qn3gTmoU,47470
|
4
4
|
ccxt/ascendex.py,sha256=4aEwibO_me6khr66z8JFqDBxe2gtFOWIFBE7ulBEJPs,151933
|
@@ -35,7 +35,7 @@ ccxt/btcalpha.py,sha256=UcCCDZ_7EM-Q2tHU1IQPEA2DErFsLhrSfX-Oy-Q2uL4,36715
|
|
35
35
|
ccxt/btcbox.py,sha256=RksPuQd_i3c-Qs5MZr1dPAa7ig8IePFpYJK3suQyemE,27747
|
36
36
|
ccxt/btcmarkets.py,sha256=0gMC0vvmuDJwcnllHMUZsQRV6QWA1-Cbq1N1F9rIUW8,52697
|
37
37
|
ccxt/btcturk.py,sha256=bQ8sJq5iEj9oq2R17uDadPWKcnIQG8id5UmdlpHfFy8,36992
|
38
|
-
ccxt/bybit.py,sha256=
|
38
|
+
ccxt/bybit.py,sha256=ncl49FzsSzVFE2KM_IgV_wmD43HzB7M760eluwDhE_E,415847
|
39
39
|
ccxt/cex.py,sha256=YQtARIBP7cY3y-AqRarEH_mVh7_ftt18jLebhpL3hxQ,70084
|
40
40
|
ccxt/coinbase.py,sha256=OLcnNdnOxnbTY54BEvptJCysDBU3ZZGw6eJcHalaFFc,217105
|
41
41
|
ccxt/coinbaseadvanced.py,sha256=d5g6nRx-NCcCwZDdtp8FsI2D-pRjSvnAP9ISSKY_nCQ,538
|
@@ -216,7 +216,7 @@ ccxt/abstract/xt.py,sha256=JkWvsic3L2O968BCr9H5Wd5NIbRE9aTT2A-9WbAtl0c,27146
|
|
216
216
|
ccxt/abstract/yobit.py,sha256=8ycfCO8ORFly9hc0Aa47sZyX4_ZKPXS9h9yJzI-uQ7Q,1339
|
217
217
|
ccxt/abstract/zaif.py,sha256=m15WHdl3gYy0GOXNZ8NEH8eE7sVh8c0T_ITNuU8vXeU,3935
|
218
218
|
ccxt/abstract/zonda.py,sha256=X-hCW0SdX3YKZWixDyW-O2211M58Rno8kKJ6quY7rw4,7183
|
219
|
-
ccxt/async_support/__init__.py,sha256=
|
219
|
+
ccxt/async_support/__init__.py,sha256=JkCrhlfZInxjy9ORf5KAUzaG0TJkZ8PPP6L8tw_8bkw,16122
|
220
220
|
ccxt/async_support/ace.py,sha256=GxXMtM5Como1NVqXhOqJntxhLO1w9pNe1yYbQP_4ylQ,42603
|
221
221
|
ccxt/async_support/alpaca.py,sha256=495vDvdF1IWlsh9QhUnMtkMuINdD0EzeFGlUVqCf8TE,47682
|
222
222
|
ccxt/async_support/ascendex.py,sha256=LK259BdUqU0_STGRH6DmTgaR-7lXqFpZHFVACf2um5c,152721
|
@@ -253,7 +253,7 @@ ccxt/async_support/btcalpha.py,sha256=DgzrJ6cczUCDZr-QLUxMpazeudEFdQ_OzXiQiJM4Hb
|
|
253
253
|
ccxt/async_support/btcbox.py,sha256=s36BAKOFcZYnqTp-IqRDHvgiXpZQ-rirZHCj1JAzhvs,27971
|
254
254
|
ccxt/async_support/btcmarkets.py,sha256=x1-s5uVioHyvNJoBxhxP8eUUslTDwQnZMU0FWfu1Fd4,53047
|
255
255
|
ccxt/async_support/btcturk.py,sha256=P3bg0XG0sAi-8ge9ZFzQqZHsoGOGfxBjkhIDo4VPSK4,37210
|
256
|
-
ccxt/async_support/bybit.py,sha256=
|
256
|
+
ccxt/async_support/bybit.py,sha256=UjBrW-vap05VR3FCD64kuoHzhkjJgtJKblR8Bq2GjaU,417687
|
257
257
|
ccxt/async_support/cex.py,sha256=5KZ9qt4WsUAkH2rkHn7zW7SwlB9FumruLELdKF4LFoE,70434
|
258
258
|
ccxt/async_support/coinbase.py,sha256=RMcQFh7tSzTe8QqFaz9WmH2Op8sXD8jWpZfLBt_13QQ,218259
|
259
259
|
ccxt/async_support/coinbaseadvanced.py,sha256=Kupwnuxiu_qTjwCNV2asacoDUNFQvcaHNAznUJPhdQs,552
|
@@ -326,7 +326,7 @@ ccxt/async_support/yobit.py,sha256=rndL_bMH17YAFCGX__ZPid-Rym1sKoikKO2At7Mbe2Y,5
|
|
326
326
|
ccxt/async_support/zaif.py,sha256=-ZTr8M2JaIRCL90VrbCDXBMAsZwbiwsFChSQ2rWODuQ,29044
|
327
327
|
ccxt/async_support/zonda.py,sha256=3Lk1ZKvnxDcJjN5_dIJcaoxq30tL8HZ48pPiuYJGjIM,81725
|
328
328
|
ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
329
|
-
ccxt/async_support/base/exchange.py,sha256=
|
329
|
+
ccxt/async_support/base/exchange.py,sha256=yP0m6OnWCGjhGDWF0IZreaXUiEFUoxC29pYnBkiHTcA,110793
|
330
330
|
ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
331
331
|
ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
332
332
|
ccxt/async_support/base/ws/aiohttp_client.py,sha256=5IEiT0elWI9a7Vr-KV0jgmlbpLJWBzIlrLaCkTKGaqY,5752
|
@@ -340,10 +340,10 @@ ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmB
|
|
340
340
|
ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
341
341
|
ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
342
342
|
ccxt/base/errors.py,sha256=tosnf1tDaBn4YMCbWVNWyDYzqft-ImVtyjqJb6q83Y4,4369
|
343
|
-
ccxt/base/exchange.py,sha256=
|
343
|
+
ccxt/base/exchange.py,sha256=I72FO2tBOwYpSlXq9KLVkCYA6B-4Iul-igmaijCLnVU,282079
|
344
344
|
ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
345
345
|
ccxt/base/types.py,sha256=JfD1eNzfKS06XwwLUobK9d2SfVGRqbVfMY0ApU-Hn9A,9349
|
346
|
-
ccxt/pro/__init__.py,sha256=
|
346
|
+
ccxt/pro/__init__.py,sha256=K9PEH04EZ9wyyUrye_dzKO_bA1ER73ibEPSh49Ma7Ck,7405
|
347
347
|
ccxt/pro/alpaca.py,sha256=TGfyNTaYawHIUWDzoVKXitCPMWO1wKn9VcgmdWMex58,27212
|
348
348
|
ccxt/pro/ascendex.py,sha256=181FIeztchLqGmgecRJEN8F8xEM45D5aMKhC-5nuNfU,35467
|
349
349
|
ccxt/pro/bequant.py,sha256=5zbsP8BHQTUZ8ZNL6uaACxDbUClgkOV4SYfXT_LfQVg,1351
|
@@ -514,8 +514,8 @@ ccxt/test/tests_async.py,sha256=rQN7Ac7qQ9Ag8zaDS7LCijM4Y4tpxlMN1Q2uJjZuntM,8093
|
|
514
514
|
ccxt/test/tests_helpers.py,sha256=RLDL2iakRjfCc2FuiTUvgmFcRyObizOPX3Ww3a4uXsQ,9670
|
515
515
|
ccxt/test/tests_init.py,sha256=eVwwUHujX9t4rjgo4TqEeg7DDhR1Hb_e2SJN8NVGyl0,998
|
516
516
|
ccxt/test/tests_sync.py,sha256=01AYWrs1Gt0LEM9rhEZmqmZKH2RtToz37XzOZIizfEg,80041
|
517
|
-
ccxt-4.3.
|
518
|
-
ccxt-4.3.
|
519
|
-
ccxt-4.3.
|
520
|
-
ccxt-4.3.
|
521
|
-
ccxt-4.3.
|
517
|
+
ccxt-4.3.65.dist-info/LICENSE.txt,sha256=EIb9221AhMHV7xF1_55STFdKTFsnJVJYkRpY2Lnvo5w,1068
|
518
|
+
ccxt-4.3.65.dist-info/METADATA,sha256=oGX_vGhJvVeOmhoPLNeF2afbEnUYKRwbiqNjUEdI-7w,115795
|
519
|
+
ccxt-4.3.65.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
520
|
+
ccxt-4.3.65.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
|
521
|
+
ccxt-4.3.65.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|