ccxt 4.4.26__py2.py3-none-any.whl → 4.4.28__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 (103) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/alpaca.py +2 -0
  3. ccxt/abstract/binance.py +7 -0
  4. ccxt/abstract/binancecoinm.py +7 -0
  5. ccxt/abstract/binanceus.py +7 -0
  6. ccxt/abstract/binanceusdm.py +7 -0
  7. ccxt/abstract/hyperliquid.py +1 -1
  8. ccxt/ace.py +1 -1
  9. ccxt/alpaca.py +186 -6
  10. ccxt/ascendex.py +1 -1
  11. ccxt/async_support/__init__.py +1 -1
  12. ccxt/async_support/ace.py +1 -1
  13. ccxt/async_support/alpaca.py +186 -6
  14. ccxt/async_support/ascendex.py +1 -1
  15. ccxt/async_support/base/exchange.py +19 -1
  16. ccxt/async_support/bequant.py +1 -1
  17. ccxt/async_support/bigone.py +1 -1
  18. ccxt/async_support/binance.py +8 -1
  19. ccxt/async_support/binancecoinm.py +1 -1
  20. ccxt/async_support/binanceus.py +1 -1
  21. ccxt/async_support/binanceusdm.py +1 -1
  22. ccxt/async_support/bingx.py +23 -28
  23. ccxt/async_support/bit2c.py +1 -1
  24. ccxt/async_support/bitbank.py +1 -1
  25. ccxt/async_support/bitbns.py +1 -1
  26. ccxt/async_support/bitfinex.py +1 -1
  27. ccxt/async_support/bitfinex2.py +1 -1
  28. ccxt/async_support/bitflyer.py +1 -1
  29. ccxt/async_support/bitget.py +1 -1
  30. ccxt/async_support/bithumb.py +1 -1
  31. ccxt/async_support/bitmart.py +1 -1
  32. ccxt/async_support/bitmex.py +1 -1
  33. ccxt/async_support/bitopro.py +1 -1
  34. ccxt/async_support/bitrue.py +1 -1
  35. ccxt/async_support/bitso.py +1 -1
  36. ccxt/async_support/bitstamp.py +1 -1
  37. ccxt/async_support/bitteam.py +1 -1
  38. ccxt/async_support/bitvavo.py +1 -1
  39. ccxt/async_support/bl3p.py +1 -1
  40. ccxt/async_support/blockchaincom.py +1 -1
  41. ccxt/async_support/blofin.py +1 -1
  42. ccxt/async_support/btcalpha.py +1 -1
  43. ccxt/async_support/btcbox.py +1 -1
  44. ccxt/async_support/btcmarkets.py +1 -1
  45. ccxt/async_support/btcturk.py +1 -1
  46. ccxt/async_support/bybit.py +4 -1
  47. ccxt/async_support/coinbase.py +89 -11
  48. ccxt/async_support/coinex.py +1 -1
  49. ccxt/async_support/gate.py +20 -16
  50. ccxt/async_support/hyperliquid.py +19 -1
  51. ccxt/async_support/kraken.py +43 -35
  52. ccxt/async_support/lbank.py +97 -2
  53. ccxt/async_support/wavesexchange.py +14 -2
  54. ccxt/base/exchange.py +19 -1
  55. ccxt/bequant.py +1 -1
  56. ccxt/bigone.py +1 -1
  57. ccxt/binance.py +8 -1
  58. ccxt/binancecoinm.py +1 -1
  59. ccxt/binanceus.py +1 -1
  60. ccxt/binanceusdm.py +1 -1
  61. ccxt/bingx.py +23 -28
  62. ccxt/bit2c.py +1 -1
  63. ccxt/bitbank.py +1 -1
  64. ccxt/bitbns.py +1 -1
  65. ccxt/bitfinex.py +1 -1
  66. ccxt/bitfinex2.py +1 -1
  67. ccxt/bitflyer.py +1 -1
  68. ccxt/bitget.py +1 -1
  69. ccxt/bithumb.py +1 -1
  70. ccxt/bitmart.py +1 -1
  71. ccxt/bitmex.py +1 -1
  72. ccxt/bitopro.py +1 -1
  73. ccxt/bitrue.py +1 -1
  74. ccxt/bitso.py +1 -1
  75. ccxt/bitstamp.py +1 -1
  76. ccxt/bitteam.py +1 -1
  77. ccxt/bitvavo.py +1 -1
  78. ccxt/bl3p.py +1 -1
  79. ccxt/blockchaincom.py +1 -1
  80. ccxt/blofin.py +1 -1
  81. ccxt/btcalpha.py +1 -1
  82. ccxt/btcbox.py +1 -1
  83. ccxt/btcmarkets.py +1 -1
  84. ccxt/btcturk.py +1 -1
  85. ccxt/bybit.py +4 -1
  86. ccxt/coinbase.py +89 -11
  87. ccxt/coinex.py +1 -1
  88. ccxt/gate.py +20 -16
  89. ccxt/hyperliquid.py +19 -1
  90. ccxt/kraken.py +43 -35
  91. ccxt/lbank.py +97 -2
  92. ccxt/pro/__init__.py +1 -1
  93. ccxt/pro/binance.py +6 -7
  94. ccxt/pro/bybit.py +1 -1
  95. ccxt/pro/lbank.py +7 -4
  96. ccxt/pro/okx.py +1 -1
  97. ccxt/wavesexchange.py +14 -2
  98. ccxt-4.4.28.dist-info/METADATA +637 -0
  99. {ccxt-4.4.26.dist-info → ccxt-4.4.28.dist-info}/RECORD +102 -102
  100. ccxt-4.4.26.dist-info/METADATA +0 -636
  101. {ccxt-4.4.26.dist-info → ccxt-4.4.28.dist-info}/LICENSE.txt +0 -0
  102. {ccxt-4.4.26.dist-info → ccxt-4.4.28.dist-info}/WHEEL +0 -0
  103. {ccxt-4.4.26.dist-info → ccxt-4.4.28.dist-info}/top_level.txt +0 -0
ccxt/pro/lbank.py CHANGED
@@ -780,10 +780,13 @@ class lbank(ccxt.async_support.lbank):
780
780
  # {ping: 'a13a939c-5f25-4e06-9981-93cb3b890707', action: 'ping'}
781
781
  #
782
782
  pingId = self.safe_string(message, 'ping')
783
- await client.send({
784
- 'action': 'pong',
785
- 'pong': pingId,
786
- })
783
+ try:
784
+ await client.send({
785
+ 'action': 'pong',
786
+ 'pong': pingId,
787
+ })
788
+ except Exception as e:
789
+ self.on_error(client, e)
787
790
 
788
791
  def handle_message(self, client, message):
789
792
  status = self.safe_string(message, 'status')
ccxt/pro/okx.py CHANGED
@@ -930,7 +930,7 @@ class okx(ccxt.async_support.okx):
930
930
  filtered = self.filter_by_since_limit(candles, since, limit, 0, True)
931
931
  return self.create_ohlcv_object(symbol, timeframe, filtered)
932
932
 
933
- async def un_watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], params={}):
933
+ async def un_watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], params={}) -> Any:
934
934
  """
935
935
  unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
936
936
  :param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
ccxt/wavesexchange.py CHANGED
@@ -137,7 +137,13 @@ class wavesexchange(Exchange, ImplicitAPI):
137
137
  'forward': 'https://wx.network/api/v1/forward/matcher',
138
138
  'market': 'https://wx.network/api/v1/forward/marketdata/api/v1',
139
139
  },
140
- 'doc': 'https://docs.wx.network',
140
+ 'doc': [
141
+ 'https://docs.wx.network',
142
+ 'https://docs.waves.tech',
143
+ 'https://api.wavesplatform.com/v0/docs/',
144
+ 'https://nodes.wavesnodes.com/api-docs/index.html',
145
+ 'https://matcher.waves.exchange/api-docs/index.html',
146
+ ],
141
147
  'www': 'https://wx.network',
142
148
  },
143
149
  'api': {
@@ -601,6 +607,7 @@ class wavesexchange(Exchange, ImplicitAPI):
601
607
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
602
608
  """
603
609
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
610
+ :see: https://matcher.waves.exchange/api-docs/index.html#/markets/getOrderBook
604
611
  :param str symbol: unified symbol of the market to fetch the order book for
605
612
  :param int [limit]: the maximum amount of order book entries to return
606
613
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -721,6 +728,7 @@ class wavesexchange(Exchange, ImplicitAPI):
721
728
  def sign_in(self, params={}):
722
729
  """
723
730
  sign in, must be called prior to using other authenticated methods
731
+ :see: https://docs.wx.network/en/api/auth/oauth2-token
724
732
  :param dict [params]: extra parameters specific to the exchange API endpoint
725
733
  :returns: response from exchange
726
734
  """
@@ -831,6 +839,7 @@ class wavesexchange(Exchange, ImplicitAPI):
831
839
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
832
840
  """
833
841
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
842
+ :see: https://api.wavesplatform.com/v0/docs/#/pairs/getPairsListAll
834
843
  :param str symbol: unified symbol of the market to fetch the ticker for
835
844
  :param dict [params]: extra parameters specific to the exchange API endpoint
836
845
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -872,7 +881,7 @@ class wavesexchange(Exchange, ImplicitAPI):
872
881
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
873
882
  """
874
883
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
875
- :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
884
+ :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
876
885
  :param dict [params]: extra parameters specific to the exchange API endpoint
877
886
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
878
887
  """
@@ -911,6 +920,7 @@ class wavesexchange(Exchange, ImplicitAPI):
911
920
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
912
921
  """
913
922
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
923
+ :see: https://api.wavesplatform.com/v0/docs/#/candles/getCandles
914
924
  :param str symbol: unified symbol of the market to fetch OHLCV data for
915
925
  :param str timeframe: the length of time each candle represents
916
926
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1216,6 +1226,7 @@ class wavesexchange(Exchange, ImplicitAPI):
1216
1226
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1217
1227
  """
1218
1228
  create a trade order
1229
+ :see: https://matcher.waves.exchange/api-docs/index.html#/serialize/serializeOrder
1219
1230
  :param str symbol: unified symbol of the market to create an order in
1220
1231
  :param str type: 'market' or 'limit'
1221
1232
  :param str side: 'buy' or 'sell'
@@ -1431,6 +1442,7 @@ class wavesexchange(Exchange, ImplicitAPI):
1431
1442
  def fetch_order(self, id: str, symbol: Str = None, params={}):
1432
1443
  """
1433
1444
  fetches information on an order made by the user
1445
+ :see: https://matcher.waves.exchange/api-docs/index.html#/status/getOrderStatusByPKAndIdWithSig
1434
1446
  :param str symbol: unified symbol of the market the order was made in
1435
1447
  :param dict [params]: extra parameters specific to the exchange API endpoint
1436
1448
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`