coinex-api 0.0.28__py3-none-any.whl → 0.0.30__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.
- coinex/ccxt/__init__.py +1 -1
- coinex/ccxt/async_support/__init__.py +1 -1
- coinex/ccxt/async_support/base/exchange.py +1 -1
- coinex/ccxt/base/exchange.py +21 -3
- coinex/ccxt/pro/__init__.py +1 -1
- {coinex_api-0.0.28.dist-info → coinex_api-0.0.30.dist-info}/METADATA +1 -1
- {coinex_api-0.0.28.dist-info → coinex_api-0.0.30.dist-info}/RECORD +8 -8
- {coinex_api-0.0.28.dist-info → coinex_api-0.0.30.dist-info}/WHEEL +0 -0
coinex/ccxt/__init__.py
CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
|
|
26
26
|
|
27
27
|
# ----------------------------------------------------------------------------
|
28
28
|
|
29
|
-
__version__ = '4.4.
|
29
|
+
__version__ = '4.4.82'
|
30
30
|
|
31
31
|
# ----------------------------------------------------------------------------
|
32
32
|
|
coinex/ccxt/base/exchange.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
# -----------------------------------------------------------------------------
|
6
6
|
|
7
|
-
__version__ = '4.4.
|
7
|
+
__version__ = '4.4.82'
|
8
8
|
|
9
9
|
# -----------------------------------------------------------------------------
|
10
10
|
|
@@ -1000,7 +1000,7 @@ class Exchange(object):
|
|
1000
1000
|
return string
|
1001
1001
|
|
1002
1002
|
@staticmethod
|
1003
|
-
def urlencode(params={}, doseq=False):
|
1003
|
+
def urlencode(params={}, doseq=False, sort=False):
|
1004
1004
|
newParams = params.copy()
|
1005
1005
|
for key, value in params.items():
|
1006
1006
|
if isinstance(value, bool):
|
@@ -3008,7 +3008,7 @@ class Exchange(object):
|
|
3008
3008
|
currency['networks'][key]['active'] = True
|
3009
3009
|
elif deposit is not None and withdraw is not None:
|
3010
3010
|
currency['networks'][key]['active'] = False
|
3011
|
-
active = self.safe_bool(
|
3011
|
+
active = self.safe_bool(currency['networks'][key], 'active') # dict might have been updated on above lines, so access directly instead of `network` variable
|
3012
3012
|
currencyActive = self.safe_bool(currency, 'active')
|
3013
3013
|
if currencyActive is None or active:
|
3014
3014
|
currency['active'] = active
|
@@ -5522,6 +5522,24 @@ class Exchange(object):
|
|
5522
5522
|
def create_expired_option_market(self, symbol: str):
|
5523
5523
|
raise NotSupported(self.id + ' createExpiredOptionMarket() is not supported yet')
|
5524
5524
|
|
5525
|
+
def is_leveraged_currency(self, currencyCode, checkBaseCoin: Bool = False, existingCurrencies: dict = None):
|
5526
|
+
leverageSuffixes = [
|
5527
|
+
'2L', '2S', '3L', '3S', '4L', '4S', '5L', '5S', # Leveraged Tokens(LT)
|
5528
|
+
'UP', 'DOWN', # exchange-specific(e.g. BLVT)
|
5529
|
+
'BULL', 'BEAR', # similar
|
5530
|
+
]
|
5531
|
+
for i in range(0, len(leverageSuffixes)):
|
5532
|
+
leverageSuffix = leverageSuffixes[i]
|
5533
|
+
if currencyCode.endswith(leverageSuffix):
|
5534
|
+
if not checkBaseCoin:
|
5535
|
+
return True
|
5536
|
+
else:
|
5537
|
+
# check if base currency is inside dict
|
5538
|
+
baseCurrencyCode = currencyCode.replace(leverageSuffix, '')
|
5539
|
+
if baseCurrencyCode in existingCurrencies:
|
5540
|
+
return True
|
5541
|
+
return False
|
5542
|
+
|
5525
5543
|
def handle_withdraw_tag_and_params(self, tag, params):
|
5526
5544
|
if (tag is not None) and (isinstance(tag, dict)):
|
5527
5545
|
params = self.extend(tag, params)
|
coinex/ccxt/pro/__init__.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
coinex/__init__.py,sha256=d633U2PpNFHvpDWLb3lItS0ObcBN0E2XgS5QkOEejI8,246
|
2
|
-
coinex/ccxt/__init__.py,sha256=
|
2
|
+
coinex/ccxt/__init__.py,sha256=iqZCOOFCgvbwlhWsSxNsTKyxp9VEEhYDgVhe514QbLI,6048
|
3
3
|
coinex/ccxt/coinex.py,sha256=z900_rtENIahJ6h5IVKeMQnG_AvQBoFBUi8nqeyExUc,267343
|
4
4
|
coinex/ccxt/abstract/coinex.py,sha256=4TRXtWgONqkm3eSL55Y5T7Q4QxJrnOTuhP0ugsKHAWo,34856
|
5
|
-
coinex/ccxt/async_support/__init__.py,sha256=
|
5
|
+
coinex/ccxt/async_support/__init__.py,sha256=bCU_fcegCykpEJGH1CtnNhRdqz__B-pVOVCynfhYpQI,4781
|
6
6
|
coinex/ccxt/async_support/coinex.py,sha256=B-40JNdBoWgj-BCMVrdyCNpTTiN-TTV85d8Hv8WxG6E,268631
|
7
7
|
coinex/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
8
|
-
coinex/ccxt/async_support/base/exchange.py,sha256=
|
8
|
+
coinex/ccxt/async_support/base/exchange.py,sha256=xymY5wNLj91rnBu030hAcaAJS8HQQ-x4fQfx9t18fJU,117601
|
9
9
|
coinex/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
10
10
|
coinex/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
11
11
|
coinex/ccxt/async_support/base/ws/aiohttp_client.py,sha256=Y5HxAVXyyYduj6b6SbbUZETlq3GrVMzrkW1r-TMgpb8,6329
|
@@ -19,10 +19,10 @@ coinex/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9pr
|
|
19
19
|
coinex/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
20
20
|
coinex/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
21
21
|
coinex/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
|
22
|
-
coinex/ccxt/base/exchange.py,sha256=
|
22
|
+
coinex/ccxt/base/exchange.py,sha256=AC0yetauIbF4BSdnHV9TtWx-g5Dbaq4rPDDNDzdFMlM,327221
|
23
23
|
coinex/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
24
24
|
coinex/ccxt/base/types.py,sha256=SfxIKDSsxP7MPHWiOVI965Nr5NSEPpAno5fuveTRi3w,11423
|
25
|
-
coinex/ccxt/pro/__init__.py,sha256=
|
25
|
+
coinex/ccxt/pro/__init__.py,sha256=YwteZN2uFVYbITWsGCdfc160xIgV3Tj9PMM10LA8tCc,619
|
26
26
|
coinex/ccxt/pro/coinex.py,sha256=aQ6Xa4ML0PTCgGleDJuhjqntspAREz6XxQwX9IcD6OY,56616
|
27
27
|
coinex/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
|
28
28
|
coinex/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
|
@@ -283,6 +283,6 @@ coinex/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
|
|
283
283
|
coinex/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
284
284
|
coinex/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
285
285
|
coinex/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
286
|
-
coinex_api-0.0.
|
287
|
-
coinex_api-0.0.
|
288
|
-
coinex_api-0.0.
|
286
|
+
coinex_api-0.0.30.dist-info/METADATA,sha256=bpf5Puvdtx0aowsnRx5yHiEykzP7UkQxOaGMTIneg2c,19969
|
287
|
+
coinex_api-0.0.30.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
288
|
+
coinex_api-0.0.30.dist-info/RECORD,,
|
File without changes
|