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.
Files changed (49) hide show
  1. ccxt/__init__.py +3 -1
  2. ccxt/abstract/binance.py +64 -43
  3. ccxt/abstract/binancecoinm.py +64 -43
  4. ccxt/abstract/binanceus.py +64 -43
  5. ccxt/abstract/binanceusdm.py +64 -43
  6. ccxt/abstract/coincatch.py +94 -0
  7. ccxt/async_support/__init__.py +3 -1
  8. ccxt/async_support/base/exchange.py +1 -1
  9. ccxt/async_support/binance.py +87 -62
  10. ccxt/async_support/bitfinex.py +4 -0
  11. ccxt/async_support/bitflyer.py +1 -0
  12. ccxt/async_support/bitrue.py +3 -0
  13. ccxt/async_support/bybit.py +2 -2
  14. ccxt/async_support/cex.py +4 -0
  15. ccxt/async_support/coinbase.py +1 -1
  16. ccxt/async_support/coinbaseexchange.py +3 -0
  17. ccxt/async_support/coincatch.py +4955 -0
  18. ccxt/async_support/coinex.py +60 -1
  19. ccxt/async_support/latoken.py +6 -0
  20. ccxt/async_support/mexc.py +1 -1
  21. ccxt/async_support/oceanex.py +2 -0
  22. ccxt/async_support/okcoin.py +1 -0
  23. ccxt/async_support/poloniex.py +5 -0
  24. ccxt/base/exchange.py +1 -1
  25. ccxt/binance.py +87 -62
  26. ccxt/bitfinex.py +4 -0
  27. ccxt/bitflyer.py +1 -0
  28. ccxt/bitrue.py +3 -0
  29. ccxt/bybit.py +2 -2
  30. ccxt/cex.py +4 -0
  31. ccxt/coinbase.py +1 -1
  32. ccxt/coinbaseexchange.py +3 -0
  33. ccxt/coincatch.py +4955 -0
  34. ccxt/coinex.py +60 -1
  35. ccxt/latoken.py +6 -0
  36. ccxt/mexc.py +1 -1
  37. ccxt/oceanex.py +2 -0
  38. ccxt/okcoin.py +1 -0
  39. ccxt/poloniex.py +5 -0
  40. ccxt/pro/__init__.py +3 -1
  41. ccxt/pro/coincatch.py +1429 -0
  42. ccxt/test/tests_async.py +15 -1
  43. ccxt/test/tests_sync.py +15 -1
  44. ccxt-4.4.23.dist-info/METADATA +636 -0
  45. {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/RECORD +48 -44
  46. ccxt-4.4.22.dist-info/METADATA +0 -635
  47. {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/LICENSE.txt +0 -0
  48. {ccxt-4.4.22.dist-info → ccxt-4.4.23.dist-info}/WHEEL +0 -0
  49. {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