ccxt 4.4.22__py2.py3-none-any.whl → 4.4.23__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.
- ccxt/__init__.py +3 -1
- ccxt/abstract/binance.py +64 -43
- ccxt/abstract/binancecoinm.py +64 -43
- ccxt/abstract/binanceus.py +64 -43
- ccxt/abstract/binanceusdm.py +64 -43
- ccxt/abstract/coincatch.py +94 -0
- ccxt/async_support/__init__.py +3 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/binance.py +87 -62
- ccxt/async_support/bitfinex.py +4 -0
- ccxt/async_support/bitflyer.py +1 -0
- ccxt/async_support/bitrue.py +3 -0
- ccxt/async_support/bybit.py +2 -2
- ccxt/async_support/cex.py +4 -0
- ccxt/async_support/coinbase.py +1 -1
- ccxt/async_support/coinbaseexchange.py +3 -0
- ccxt/async_support/coincatch.py +4955 -0
- ccxt/async_support/coinex.py +60 -1
- ccxt/async_support/latoken.py +6 -0
- ccxt/async_support/mexc.py +1 -1
- ccxt/async_support/oceanex.py +2 -0
- ccxt/async_support/okcoin.py +1 -0
- ccxt/async_support/poloniex.py +5 -0
- ccxt/base/exchange.py +1 -1
- ccxt/binance.py +87 -62
- ccxt/bitfinex.py +4 -0
- ccxt/bitflyer.py +1 -0
- ccxt/bitrue.py +3 -0
- ccxt/bybit.py +2 -2
- ccxt/cex.py +4 -0
- ccxt/coinbase.py +1 -1
- ccxt/coinbaseexchange.py +3 -0
- ccxt/coincatch.py +4955 -0
- ccxt/coinex.py +60 -1
- ccxt/latoken.py +6 -0
- ccxt/mexc.py +1 -1
- ccxt/oceanex.py +2 -0
- ccxt/okcoin.py +1 -0
- ccxt/poloniex.py +5 -0
- ccxt/pro/__init__.py +3 -1
- ccxt/pro/coincatch.py +1429 -0
- ccxt/test/tests_async.py +15 -1
- ccxt/test/tests_sync.py +15 -1
- ccxt-4.4.23.dist-info/METADATA +636 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/RECORD +48 -44
- ccxt-4.4.22.dist-info/METADATA +0 -635
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/WHEEL +0 -0
- {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/top_level.txt +0 -0
ccxt/test/tests_async.py
CHANGED
@@ -1071,7 +1071,7 @@ class testMainClass:
|
|
1071
1071
|
# -----------------------------------------------------------------------------
|
1072
1072
|
# --- Init of brokerId tests functions-----------------------------------------
|
1073
1073
|
# -----------------------------------------------------------------------------
|
1074
|
-
promises = [self.test_binance(), self.test_okx(), self.test_cryptocom(), self.test_bybit(), self.test_kucoin(), self.test_kucoinfutures(), self.test_bitget(), self.test_mexc(), self.test_htx(), self.test_woo(), self.test_bitmart(), self.test_coinex(), self.test_bingx(), self.test_phemex(), self.test_blofin(), self.test_hyperliquid(), self.test_coinbaseinternational(), self.test_coinbase_advanced(), self.test_woofi_pro(), self.test_oxfun(), self.test_xt(), self.test_vertex(), self.test_paradex(), self.test_hashkey()]
|
1074
|
+
promises = [self.test_binance(), self.test_okx(), self.test_cryptocom(), self.test_bybit(), self.test_kucoin(), self.test_kucoinfutures(), self.test_bitget(), self.test_mexc(), self.test_htx(), self.test_woo(), self.test_bitmart(), self.test_coinex(), self.test_bingx(), self.test_phemex(), self.test_blofin(), self.test_hyperliquid(), self.test_coinbaseinternational(), self.test_coinbase_advanced(), self.test_woofi_pro(), self.test_oxfun(), self.test_xt(), self.test_vertex(), self.test_paradex(), self.test_hashkey(), self.test_coincatch()]
|
1075
1075
|
await asyncio.gather(*promises)
|
1076
1076
|
success_message = '[' + self.lang + '][TEST_SUCCESS] brokerId tests passed.'
|
1077
1077
|
dump('[INFO]' + success_message)
|
@@ -1533,3 +1533,17 @@ class testMainClass:
|
|
1533
1533
|
if not is_sync():
|
1534
1534
|
await close(exchange)
|
1535
1535
|
return True
|
1536
|
+
|
1537
|
+
async def test_coincatch(self):
|
1538
|
+
exchange = self.init_offline_exchange('coincatch')
|
1539
|
+
req_headers = None
|
1540
|
+
id = '47cfy'
|
1541
|
+
try:
|
1542
|
+
await exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000)
|
1543
|
+
except Exception as e:
|
1544
|
+
# we expect an error here, we're only interested in the headers
|
1545
|
+
req_headers = exchange.last_request_headers
|
1546
|
+
assert req_headers['X-CHANNEL-API-CODE'] == id, 'coincatch - id: ' + id + ' not in headers.'
|
1547
|
+
if not is_sync():
|
1548
|
+
await close(exchange)
|
1549
|
+
return True
|
ccxt/test/tests_sync.py
CHANGED
@@ -1068,7 +1068,7 @@ class testMainClass:
|
|
1068
1068
|
# -----------------------------------------------------------------------------
|
1069
1069
|
# --- Init of brokerId tests functions-----------------------------------------
|
1070
1070
|
# -----------------------------------------------------------------------------
|
1071
|
-
promises = [self.test_binance(), self.test_okx(), self.test_cryptocom(), self.test_bybit(), self.test_kucoin(), self.test_kucoinfutures(), self.test_bitget(), self.test_mexc(), self.test_htx(), self.test_woo(), self.test_bitmart(), self.test_coinex(), self.test_bingx(), self.test_phemex(), self.test_blofin(), self.test_hyperliquid(), self.test_coinbaseinternational(), self.test_coinbase_advanced(), self.test_woofi_pro(), self.test_oxfun(), self.test_xt(), self.test_vertex(), self.test_paradex(), self.test_hashkey()]
|
1071
|
+
promises = [self.test_binance(), self.test_okx(), self.test_cryptocom(), self.test_bybit(), self.test_kucoin(), self.test_kucoinfutures(), self.test_bitget(), self.test_mexc(), self.test_htx(), self.test_woo(), self.test_bitmart(), self.test_coinex(), self.test_bingx(), self.test_phemex(), self.test_blofin(), self.test_hyperliquid(), self.test_coinbaseinternational(), self.test_coinbase_advanced(), self.test_woofi_pro(), self.test_oxfun(), self.test_xt(), self.test_vertex(), self.test_paradex(), self.test_hashkey(), self.test_coincatch()]
|
1072
1072
|
(promises)
|
1073
1073
|
success_message = '[' + self.lang + '][TEST_SUCCESS] brokerId tests passed.'
|
1074
1074
|
dump('[INFO]' + success_message)
|
@@ -1530,3 +1530,17 @@ class testMainClass:
|
|
1530
1530
|
if not is_sync():
|
1531
1531
|
close(exchange)
|
1532
1532
|
return True
|
1533
|
+
|
1534
|
+
def test_coincatch(self):
|
1535
|
+
exchange = self.init_offline_exchange('coincatch')
|
1536
|
+
req_headers = None
|
1537
|
+
id = '47cfy'
|
1538
|
+
try:
|
1539
|
+
exchange.create_order('BTC/USDT', 'limit', 'buy', 1, 20000)
|
1540
|
+
except Exception as e:
|
1541
|
+
# we expect an error here, we're only interested in the headers
|
1542
|
+
req_headers = exchange.last_request_headers
|
1543
|
+
assert req_headers['X-CHANNEL-API-CODE'] == id, 'coincatch - id: ' + id + ' not in headers.'
|
1544
|
+
if not is_sync():
|
1545
|
+
close(exchange)
|
1546
|
+
return True
|