ccxt 4.4.28__py2.py3-none-any.whl → 4.4.29__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 (151) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/bybit.py +0 -13
  3. ccxt/alpaca.py +1 -1
  4. ccxt/async_support/__init__.py +1 -1
  5. ccxt/async_support/alpaca.py +1 -1
  6. ccxt/async_support/base/exchange.py +4 -1
  7. ccxt/async_support/bigone.py +1 -1
  8. ccxt/async_support/binance.py +1 -1
  9. ccxt/async_support/bingx.py +1 -1
  10. ccxt/async_support/bitbank.py +1 -1
  11. ccxt/async_support/bitfinex.py +1 -1
  12. ccxt/async_support/bitfinex2.py +1 -1
  13. ccxt/async_support/bitflyer.py +1 -1
  14. ccxt/async_support/bitget.py +96 -8
  15. ccxt/async_support/bithumb.py +1 -1
  16. ccxt/async_support/bitmart.py +1 -1
  17. ccxt/async_support/bitmex.py +1 -1
  18. ccxt/async_support/bitopro.py +22 -22
  19. ccxt/async_support/bitrue.py +29 -29
  20. ccxt/async_support/bitso.py +1 -1
  21. ccxt/async_support/bitstamp.py +1 -1
  22. ccxt/async_support/bitvavo.py +4 -1
  23. ccxt/async_support/blockchaincom.py +1 -1
  24. ccxt/async_support/btcmarkets.py +1 -1
  25. ccxt/async_support/bybit.py +50 -585
  26. ccxt/async_support/coinbase.py +1 -1
  27. ccxt/async_support/coinbaseexchange.py +1 -1
  28. ccxt/async_support/coinbaseinternational.py +1 -1
  29. ccxt/async_support/coincatch.py +25 -5
  30. ccxt/async_support/coinex.py +1 -1
  31. ccxt/async_support/coinlist.py +1 -1
  32. ccxt/async_support/coinmate.py +1 -1
  33. ccxt/async_support/coinsph.py +1 -1
  34. ccxt/async_support/cryptocom.py +1 -1
  35. ccxt/async_support/deribit.py +1 -1
  36. ccxt/async_support/digifinex.py +1 -1
  37. ccxt/async_support/exmo.py +1 -1
  38. ccxt/async_support/gate.py +1 -1
  39. ccxt/async_support/gemini.py +1 -1
  40. ccxt/async_support/hashkey.py +1 -1
  41. ccxt/async_support/hitbtc.py +1 -1
  42. ccxt/async_support/hollaex.py +1 -1
  43. ccxt/async_support/htx.py +1 -1
  44. ccxt/async_support/huobijp.py +1 -1
  45. ccxt/async_support/idex.py +1 -1
  46. ccxt/async_support/independentreserve.py +1 -1
  47. ccxt/async_support/indodax.py +1 -1
  48. ccxt/async_support/kraken.py +1 -1
  49. ccxt/async_support/kucoin.py +1 -1
  50. ccxt/async_support/kuna.py +1 -1
  51. ccxt/async_support/lbank.py +6 -1
  52. ccxt/async_support/lykke.py +1 -1
  53. ccxt/async_support/mercado.py +1 -1
  54. ccxt/async_support/mexc.py +1 -1
  55. ccxt/async_support/ndax.py +1 -1
  56. ccxt/async_support/novadax.py +1 -1
  57. ccxt/async_support/okcoin.py +1 -1
  58. ccxt/async_support/okx.py +1 -1
  59. ccxt/async_support/onetrading.py +1 -1
  60. ccxt/async_support/oxfun.py +1 -1
  61. ccxt/async_support/phemex.py +1 -1
  62. ccxt/async_support/poloniex.py +1 -1
  63. ccxt/async_support/probit.py +1 -1
  64. ccxt/async_support/tokocrypto.py +1 -1
  65. ccxt/async_support/upbit.py +1 -1
  66. ccxt/async_support/vertex.py +52 -8
  67. ccxt/async_support/wavesexchange.py +1 -1
  68. ccxt/async_support/whitebit.py +1 -1
  69. ccxt/async_support/woo.py +1 -1
  70. ccxt/async_support/woofipro.py +1 -1
  71. ccxt/async_support/xt.py +1 -1
  72. ccxt/async_support/yobit.py +2 -2
  73. ccxt/async_support/zaif.py +1 -1
  74. ccxt/async_support/zonda.py +1 -1
  75. ccxt/base/exchange.py +4 -1
  76. ccxt/bigone.py +1 -1
  77. ccxt/binance.py +1 -1
  78. ccxt/bingx.py +1 -1
  79. ccxt/bitbank.py +1 -1
  80. ccxt/bitfinex.py +1 -1
  81. ccxt/bitfinex2.py +1 -1
  82. ccxt/bitflyer.py +1 -1
  83. ccxt/bitget.py +96 -8
  84. ccxt/bithumb.py +1 -1
  85. ccxt/bitmart.py +1 -1
  86. ccxt/bitmex.py +1 -1
  87. ccxt/bitopro.py +22 -22
  88. ccxt/bitrue.py +29 -29
  89. ccxt/bitso.py +1 -1
  90. ccxt/bitstamp.py +1 -1
  91. ccxt/bitvavo.py +4 -1
  92. ccxt/blockchaincom.py +1 -1
  93. ccxt/btcmarkets.py +1 -1
  94. ccxt/bybit.py +50 -585
  95. ccxt/coinbase.py +1 -1
  96. ccxt/coinbaseexchange.py +1 -1
  97. ccxt/coinbaseinternational.py +1 -1
  98. ccxt/coincatch.py +25 -5
  99. ccxt/coinex.py +1 -1
  100. ccxt/coinlist.py +1 -1
  101. ccxt/coinmate.py +1 -1
  102. ccxt/coinsph.py +1 -1
  103. ccxt/cryptocom.py +1 -1
  104. ccxt/deribit.py +1 -1
  105. ccxt/digifinex.py +1 -1
  106. ccxt/exmo.py +1 -1
  107. ccxt/gate.py +1 -1
  108. ccxt/gemini.py +1 -1
  109. ccxt/hashkey.py +1 -1
  110. ccxt/hitbtc.py +1 -1
  111. ccxt/hollaex.py +1 -1
  112. ccxt/htx.py +1 -1
  113. ccxt/huobijp.py +1 -1
  114. ccxt/idex.py +1 -1
  115. ccxt/independentreserve.py +1 -1
  116. ccxt/indodax.py +1 -1
  117. ccxt/kraken.py +1 -1
  118. ccxt/kucoin.py +1 -1
  119. ccxt/kuna.py +1 -1
  120. ccxt/lbank.py +6 -1
  121. ccxt/lykke.py +1 -1
  122. ccxt/mercado.py +1 -1
  123. ccxt/mexc.py +1 -1
  124. ccxt/ndax.py +1 -1
  125. ccxt/novadax.py +1 -1
  126. ccxt/okcoin.py +1 -1
  127. ccxt/okx.py +1 -1
  128. ccxt/onetrading.py +1 -1
  129. ccxt/oxfun.py +1 -1
  130. ccxt/phemex.py +1 -1
  131. ccxt/poloniex.py +1 -1
  132. ccxt/pro/__init__.py +1 -1
  133. ccxt/pro/bitvavo.py +2 -1
  134. ccxt/pro/mexc.py +187 -30
  135. ccxt/probit.py +1 -1
  136. ccxt/tokocrypto.py +1 -1
  137. ccxt/upbit.py +1 -1
  138. ccxt/vertex.py +52 -8
  139. ccxt/wavesexchange.py +1 -1
  140. ccxt/whitebit.py +1 -1
  141. ccxt/woo.py +1 -1
  142. ccxt/woofipro.py +1 -1
  143. ccxt/xt.py +1 -1
  144. ccxt/yobit.py +2 -2
  145. ccxt/zaif.py +1 -1
  146. ccxt/zonda.py +1 -1
  147. {ccxt-4.4.28.dist-info → ccxt-4.4.29.dist-info}/METADATA +4 -4
  148. {ccxt-4.4.28.dist-info → ccxt-4.4.29.dist-info}/RECORD +151 -151
  149. {ccxt-4.4.28.dist-info → ccxt-4.4.29.dist-info}/LICENSE.txt +0 -0
  150. {ccxt-4.4.28.dist-info → ccxt-4.4.29.dist-info}/WHEEL +0 -0
  151. {ccxt-4.4.28.dist-info → ccxt-4.4.29.dist-info}/top_level.txt +0 -0
ccxt/coinbase.py CHANGED
@@ -3704,7 +3704,7 @@ class coinbase(Exchange, ImplicitAPI):
3704
3704
  tickers = self.safe_list(response, 'pricebooks', [])
3705
3705
  return self.parse_tickers(tickers, symbols)
3706
3706
 
3707
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
3707
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
3708
3708
  """
3709
3709
  make a withdrawal
3710
3710
  :see: https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-transactions#send-money
ccxt/coinbaseexchange.py CHANGED
@@ -1284,7 +1284,7 @@ class coinbaseexchange(Exchange, ImplicitAPI):
1284
1284
  def fetch_payment_methods(self, params={}):
1285
1285
  return self.privateGetPaymentMethods(params)
1286
1286
 
1287
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1287
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1288
1288
  """
1289
1289
  make a withdrawal
1290
1290
  :see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postwithdrawpaymentmethod
@@ -1997,7 +1997,7 @@ class coinbaseinternational(Exchange, ImplicitAPI):
1997
1997
  trades = self.safe_list(response, 'results', [])
1998
1998
  return self.parse_trades(trades, market, since, limit)
1999
1999
 
2000
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2000
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2001
2001
  """
2002
2002
  make a withdrawal
2003
2003
  :see: https://docs.cloud.coinbase.com/intx/reference/withdraw
ccxt/coincatch.py CHANGED
@@ -1954,7 +1954,7 @@ class coincatch(Exchange, ImplicitAPI):
1954
1954
  data = self.safe_list(response, 'data', [])
1955
1955
  return self.parse_transactions(data, currency, since, limit)
1956
1956
 
1957
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1957
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1958
1958
  """
1959
1959
  make a withdrawal
1960
1960
  :see: https://coincatch.github.io/github.io/en/spot/#withdraw
@@ -1983,13 +1983,23 @@ class coincatch(Exchange, ImplicitAPI):
1983
1983
  if networkCode is not None:
1984
1984
  request['chain'] = self.network_code_to_id(networkCode)
1985
1985
  response = self.privatePostApiSpotV1WalletWithdrawalV2(self.extend(request, params))
1986
- # todo add after withdrawal
1987
1986
  #
1988
- return response
1987
+ # {
1988
+ # "code": "00000",
1989
+ # "msg": "success",
1990
+ # "data": {
1991
+ # "orderId":888291686266343424",
1992
+ # "clientOrderId":"123"
1993
+ # }
1994
+ # }
1995
+ #
1996
+ data = self.safe_dict(response, 'data', {})
1997
+ return self.parse_transaction(data, currency)
1989
1998
 
1990
1999
  def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
1991
2000
  #
1992
2001
  # fetchDeposits
2002
+ #
1993
2003
  # {
1994
2004
  # "id": "1213046466852196352",
1995
2005
  # "txId": "824246b030cd84d56400661303547f43a1d9fef66cf968628dd5112f362053ff",
@@ -2009,7 +2019,17 @@ class coincatch(Exchange, ImplicitAPI):
2009
2019
  # "uTime": "1724938746015"
2010
2020
  # }
2011
2021
  #
2012
- id = self.safe_string(transaction, 'id')
2022
+ # withdraw
2023
+ #
2024
+ # {
2025
+ # "code": "00000",
2026
+ # "msg": "success",
2027
+ # "data": {
2028
+ # "orderId":888291686266343424",
2029
+ # "clientOrderId":"123"
2030
+ # }
2031
+ # }
2032
+ #
2013
2033
  status = self.safe_string(transaction, 'status')
2014
2034
  if status == 'success':
2015
2035
  status = 'ok'
@@ -2033,7 +2053,7 @@ class coincatch(Exchange, ImplicitAPI):
2033
2053
  }
2034
2054
  return {
2035
2055
  'info': transaction,
2036
- 'id': id,
2056
+ 'id': self.safe_string_2(transaction, 'id', 'orderId'),
2037
2057
  'txid': txid,
2038
2058
  'timestamp': timestamp,
2039
2059
  'datetime': self.iso8601(timestamp),
ccxt/coinex.py CHANGED
@@ -4424,7 +4424,7 @@ class coinex(Exchange, ImplicitAPI):
4424
4424
  result = self.parse_funding_rates(data, market)
4425
4425
  return self.filter_by_array(result, 'symbol', symbols)
4426
4426
 
4427
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
4427
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4428
4428
  """
4429
4429
  make a withdrawal
4430
4430
  :see: https://docs.coinex.com/api/v2/assets/deposit-withdrawal/http/withdrawal
ccxt/coinlist.py CHANGED
@@ -1886,7 +1886,7 @@ class coinlist(Exchange, ImplicitAPI):
1886
1886
  # coinlist returns both internal transfers and blockchain transactions
1887
1887
  return self.parse_transactions(response, currency, since, limit)
1888
1888
 
1889
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1889
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1890
1890
  """
1891
1891
  request a withdrawal from CoinList wallet.(Disabled by default. Contact CoinList to apply for an exception.)
1892
1892
  :see: https://trade-docs.coinlist.co/?javascript--nodejs#request-withdrawal-from-wallet
ccxt/coinmate.py CHANGED
@@ -587,7 +587,7 @@ class coinmate(Exchange, ImplicitAPI):
587
587
  },
588
588
  }
589
589
 
590
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
590
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
591
591
  """
592
592
  make a withdrawal
593
593
  :see: https://coinmate.docs.apiary.io/#reference/bitcoin-withdrawal-and-deposit/withdraw-bitcoins/post
ccxt/coinsph.py CHANGED
@@ -1501,7 +1501,7 @@ class coinsph(Exchange, ImplicitAPI):
1501
1501
  'tierBased': None,
1502
1502
  }
1503
1503
 
1504
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1504
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1505
1505
  """
1506
1506
  make a withdrawal to coins_ph account
1507
1507
  :see: https://coins-docs.github.io/rest-api/#withdrawuser_data
ccxt/cryptocom.py CHANGED
@@ -1556,7 +1556,7 @@ class cryptocom(Exchange, ImplicitAPI):
1556
1556
  address = addressString
1557
1557
  return [address, tag]
1558
1558
 
1559
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1559
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1560
1560
  """
1561
1561
  make a withdrawal
1562
1562
  :see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-withdrawal
ccxt/deribit.py CHANGED
@@ -2768,7 +2768,7 @@ class deribit(Exchange, ImplicitAPI):
2768
2768
  }
2769
2769
  return self.safe_string(statuses, status, status)
2770
2770
 
2771
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2771
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2772
2772
  """
2773
2773
  make a withdrawal
2774
2774
  :see: https://docs.deribit.com/#private-withdraw
ccxt/digifinex.py CHANGED
@@ -2785,7 +2785,7 @@ class digifinex(Exchange, ImplicitAPI):
2785
2785
  #
2786
2786
  return self.parse_transfer(response, currency)
2787
2787
 
2788
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2788
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2789
2789
  """
2790
2790
  make a withdrawal
2791
2791
  :param str code: unified currency code
ccxt/exmo.py CHANGED
@@ -1988,7 +1988,7 @@ class exmo(Exchange, ImplicitAPI):
1988
1988
  return self.markets[symbols[0]]
1989
1989
  return None
1990
1990
 
1991
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1991
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1992
1992
  """
1993
1993
  make a withdrawal
1994
1994
  :see: https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
ccxt/gate.py CHANGED
@@ -3527,7 +3527,7 @@ class gate(Exchange, ImplicitAPI):
3527
3527
  response = self.privateWalletGetWithdrawals(self.extend(request, params))
3528
3528
  return self.parse_transactions(response, currency)
3529
3529
 
3530
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
3530
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
3531
3531
  """
3532
3532
  make a withdrawal
3533
3533
  :see: https://www.gate.io/docs/developers/apiv4/en/#withdraw
ccxt/gemini.py CHANGED
@@ -1526,7 +1526,7 @@ class gemini(Exchange, ImplicitAPI):
1526
1526
  response = self.privatePostV1Mytrades(self.extend(request, params))
1527
1527
  return self.parse_trades(response, market, since, limit)
1528
1528
 
1529
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1529
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1530
1530
  """
1531
1531
  make a withdrawal
1532
1532
  :see: https://docs.gemini.com/rest-api/#withdraw-crypto-funds
ccxt/hashkey.py CHANGED
@@ -1874,7 +1874,7 @@ class hashkey(Exchange, ImplicitAPI):
1874
1874
  #
1875
1875
  return self.parse_transactions(response, currency, since, limit, {'type': 'withdrawal'})
1876
1876
 
1877
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1877
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1878
1878
  """
1879
1879
  make a withdrawal
1880
1880
  :see: https://hashkeyglobal-apidoc.readme.io/reference/withdraw
ccxt/hitbtc.py CHANGED
@@ -2491,7 +2491,7 @@ class hitbtc(Exchange, ImplicitAPI):
2491
2491
  'info': response,
2492
2492
  }
2493
2493
 
2494
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2494
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2495
2495
  """
2496
2496
  make a withdrawal
2497
2497
  :see: https://api.hitbtc.com/#withdraw-crypto
ccxt/hollaex.py CHANGED
@@ -1611,7 +1611,7 @@ class hollaex(Exchange, ImplicitAPI):
1611
1611
  'fee': fee,
1612
1612
  }
1613
1613
 
1614
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1614
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1615
1615
  """
1616
1616
  make a withdrawal
1617
1617
  :see: https://apidocs.hollaex.com/#withdrawal
ccxt/htx.py CHANGED
@@ -6117,7 +6117,7 @@ class htx(Exchange, ImplicitAPI):
6117
6117
  }
6118
6118
  return self.safe_string(statuses, status, status)
6119
6119
 
6120
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
6120
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
6121
6121
  """
6122
6122
  :see: https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
6123
6123
  make a withdrawal
ccxt/huobijp.py CHANGED
@@ -1745,7 +1745,7 @@ class huobijp(Exchange, ImplicitAPI):
1745
1745
  }
1746
1746
  return self.safe_string(statuses, status, status)
1747
1747
 
1748
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1748
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1749
1749
  """
1750
1750
  make a withdrawal
1751
1751
  :param str code: unified currency code
ccxt/idex.py CHANGED
@@ -1292,7 +1292,7 @@ class idex(Exchange, ImplicitAPI):
1292
1292
  response = self.privatePostOrders(request)
1293
1293
  return self.parse_order(response, market)
1294
1294
 
1295
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1295
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1296
1296
  """
1297
1297
  make a withdrawal
1298
1298
  :see: https://api-docs-v3.idex.io/#withdraw-funds
@@ -755,7 +755,7 @@ class independentreserve(Exchange, ImplicitAPI):
755
755
  'tag': self.safe_string(depositAddress, 'Tag'),
756
756
  }
757
757
 
758
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
758
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
759
759
  """
760
760
  make a withdrawal
761
761
  :see: https://www.independentreserve.com/features/api#WithdrawDigitalCurrency
ccxt/indodax.py CHANGED
@@ -1018,7 +1018,7 @@ class indodax(Exchange, ImplicitAPI):
1018
1018
  transactions = self.array_concat(withdraws, deposits)
1019
1019
  return self.parse_transactions(transactions, currency, since, limit)
1020
1020
 
1021
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1021
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1022
1022
  """
1023
1023
  make a withdrawal
1024
1024
  :see: https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
ccxt/kraken.py CHANGED
@@ -2706,7 +2706,7 @@ class kraken(Exchange, ImplicitAPI):
2706
2706
  'tag': tag,
2707
2707
  }
2708
2708
 
2709
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2709
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2710
2710
  """
2711
2711
  make a withdrawal
2712
2712
  :see: https://docs.kraken.com/rest/#tag/Funding/operation/withdrawFunds
ccxt/kucoin.py CHANGED
@@ -3257,7 +3257,7 @@ class kucoin(Exchange, ImplicitAPI):
3257
3257
  'tierBased': True,
3258
3258
  }
3259
3259
 
3260
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
3260
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
3261
3261
  """
3262
3262
  make a withdrawal
3263
3263
  :see: https://www.kucoin.com/docs/rest/funding/withdrawals/apply-withdraw-v3-
ccxt/kuna.py CHANGED
@@ -1333,7 +1333,7 @@ class kuna(Exchange, ImplicitAPI):
1333
1333
  data = self.safe_list(response, 'data')
1334
1334
  return self.parse_trades(data, market, since, limit)
1335
1335
 
1336
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1336
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1337
1337
  """
1338
1338
  make a withdrawal
1339
1339
  :see: https://docs.kuna.io/docs/create-a-withdraw
ccxt/lbank.py CHANGED
@@ -1154,6 +1154,11 @@ class lbank(Exchange, ImplicitAPI):
1154
1154
  indexPrice = self.safe_number(ticker, 'underlyingPrice')
1155
1155
  fundingRate = self.safe_number(ticker, 'fundingRate')
1156
1156
  fundingTime = self.safe_integer(ticker, 'nextFeeTime')
1157
+ positionFeeTime = self.safe_integer(ticker, 'positionFeeTime')
1158
+ intervalString = None
1159
+ if positionFeeTime is not None:
1160
+ interval = self.parse_to_int(positionFeeTime / 60 / 60)
1161
+ intervalString = interval + 'h'
1157
1162
  return {
1158
1163
  'info': ticker,
1159
1164
  'symbol': symbol,
@@ -1170,7 +1175,7 @@ class lbank(Exchange, ImplicitAPI):
1170
1175
  'previousFundingRate': None,
1171
1176
  'previousFundingTimestamp': None,
1172
1177
  'previousFundingDatetime': None,
1173
- 'interval': None,
1178
+ 'interval': intervalString,
1174
1179
  }
1175
1180
 
1176
1181
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
ccxt/lykke.py CHANGED
@@ -1207,7 +1207,7 @@ class lykke(Exchange, ImplicitAPI):
1207
1207
  currency = self.currency(code)
1208
1208
  return self.parse_transactions(payload, currency, since, limit)
1209
1209
 
1210
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1210
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1211
1211
  """
1212
1212
  make a withdrawal
1213
1213
  :see: https://lykkecity.github.io/Trading-API/#withdrawal
ccxt/mercado.py CHANGED
@@ -601,7 +601,7 @@ class mercado(Exchange, ImplicitAPI):
601
601
  order = self.safe_dict(responseData, 'order')
602
602
  return self.parse_order(order, market)
603
603
 
604
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
604
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
605
605
  """
606
606
  make a withdrawal
607
607
  :param str code: unified currency code
ccxt/mexc.py CHANGED
@@ -4975,7 +4975,7 @@ class mexc(Exchange, ImplicitAPI):
4975
4975
  }
4976
4976
  return self.safe_string(statuses, status, status)
4977
4977
 
4978
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
4978
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4979
4979
  """
4980
4980
  make a withdrawal
4981
4981
  :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-new
ccxt/ndax.py CHANGED
@@ -2229,7 +2229,7 @@ class ndax(Exchange, ImplicitAPI):
2229
2229
  'network': None,
2230
2230
  }
2231
2231
 
2232
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2232
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2233
2233
  """
2234
2234
  make a withdrawal
2235
2235
  :param str code: unified currency code
ccxt/novadax.py CHANGED
@@ -1157,7 +1157,7 @@ class novadax(Exchange, ImplicitAPI):
1157
1157
  }
1158
1158
  return self.safe_string(statuses, status, 'failed')
1159
1159
 
1160
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1160
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1161
1161
  """
1162
1162
  make a withdrawal
1163
1163
  :see: https://doc.novadax.com/en-US/#send-cryptocurrencies
ccxt/okcoin.py CHANGED
@@ -2307,7 +2307,7 @@ class okcoin(Exchange, ImplicitAPI):
2307
2307
  }
2308
2308
  return self.safe_string(statuses, status, status)
2309
2309
 
2310
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2310
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2311
2311
  """
2312
2312
  :see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-withdrawal
2313
2313
  make a withdrawal
ccxt/okx.py CHANGED
@@ -4643,7 +4643,7 @@ class okx(Exchange, ImplicitAPI):
4643
4643
  first = self.safe_string(keys, 0)
4644
4644
  return self.safe_dict(response, first)
4645
4645
 
4646
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
4646
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4647
4647
  """
4648
4648
  make a withdrawal
4649
4649
  :see: https://www.okx.com/docs-v5/en/#funding-account-rest-api-withdrawal
ccxt/onetrading.py CHANGED
@@ -1183,7 +1183,7 @@ class onetrading(Exchange, ImplicitAPI):
1183
1183
  withdrawalHistory = self.safe_list(response, 'withdrawal_history', [])
1184
1184
  return self.parse_transactions(withdrawalHistory, currency, since, limit, {'type': 'withdrawal'})
1185
1185
 
1186
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1186
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1187
1187
  """
1188
1188
  make a withdrawal
1189
1189
  :param str code: unified currency code
ccxt/oxfun.py CHANGED
@@ -1966,7 +1966,7 @@ class oxfun(Exchange, ImplicitAPI):
1966
1966
  }
1967
1967
  return self.safe_string(statuses, status, status)
1968
1968
 
1969
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1969
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1970
1970
  """
1971
1971
  make a withdrawal
1972
1972
  :see: https://docs.ox.fun/?json#post-v3-withdrawal
ccxt/phemex.py CHANGED
@@ -4431,7 +4431,7 @@ class phemex(Exchange, ImplicitAPI):
4431
4431
  sorted = self.sort_by(result, 'timestamp')
4432
4432
  return self.filter_by_symbol_since_limit(sorted, symbol, since, limit)
4433
4433
 
4434
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
4434
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4435
4435
  """
4436
4436
  make a withdrawal
4437
4437
  :see: https://phemex-docs.github.io/#create-withdraw-request
ccxt/poloniex.py CHANGED
@@ -1799,7 +1799,7 @@ class poloniex(Exchange, ImplicitAPI):
1799
1799
  'status': None,
1800
1800
  }
1801
1801
 
1802
- def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1802
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
1803
1803
  """
1804
1804
  make a withdrawal
1805
1805
  :see: https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.28'
7
+ __version__ = '4.4.29'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
ccxt/pro/bitvavo.py CHANGED
@@ -726,7 +726,8 @@ class bitvavo(ccxt.async_support.bitvavo):
726
726
  messageHash = self.build_message_hash(action, request)
727
727
  self.check_message_hash_does_not_exist(messageHash)
728
728
  url = self.urls['api']['ws']
729
- return await self.watch(url, messageHash, request, messageHash)
729
+ randomSubHash = str(self.rand_number(5)) + ':' + messageHash
730
+ return await self.watch(url, messageHash, request, randomSubHash)
730
731
 
731
732
  async def fetch_open_orders_ws(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
732
733
  """