ccxt 4.3.6__py2.py3-none-any.whl → 4.3.8__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (178) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/coinbase.py +5 -0
  3. ccxt/ace.py +5 -0
  4. ccxt/alpaca.py +6 -0
  5. ccxt/ascendex.py +2 -2
  6. ccxt/async_support/__init__.py +1 -1
  7. ccxt/async_support/ace.py +5 -0
  8. ccxt/async_support/alpaca.py +6 -0
  9. ccxt/async_support/ascendex.py +2 -2
  10. ccxt/async_support/base/exchange.py +27 -1
  11. ccxt/async_support/bigone.py +1 -1
  12. ccxt/async_support/binance.py +6 -4
  13. ccxt/async_support/bingx.py +4 -2
  14. ccxt/async_support/bitbank.py +4 -1
  15. ccxt/async_support/bitfinex.py +1 -1
  16. ccxt/async_support/bitfinex2.py +1 -1
  17. ccxt/async_support/bitflyer.py +1 -1
  18. ccxt/async_support/bitget.py +71 -5
  19. ccxt/async_support/bithumb.py +5 -1
  20. ccxt/async_support/bitmart.py +1 -1
  21. ccxt/async_support/bitmex.py +3 -1
  22. ccxt/async_support/bitopro.py +6 -1
  23. ccxt/async_support/bitrue.py +1 -1
  24. ccxt/async_support/bitso.py +4 -1
  25. ccxt/async_support/bitstamp.py +4 -1
  26. ccxt/async_support/bitteam.py +4 -0
  27. ccxt/async_support/bitvavo.py +4 -1
  28. ccxt/async_support/bl3p.py +3 -0
  29. ccxt/async_support/blockchaincom.py +1 -1
  30. ccxt/async_support/btcalpha.py +3 -0
  31. ccxt/async_support/btcbox.py +3 -0
  32. ccxt/async_support/btcmarkets.py +4 -1
  33. ccxt/async_support/btcturk.py +3 -0
  34. ccxt/async_support/bybit.py +116 -14
  35. ccxt/async_support/cex.py +6 -0
  36. ccxt/async_support/coinbase.py +94 -18
  37. ccxt/async_support/coinbaseinternational.py +3 -1
  38. ccxt/async_support/coinbasepro.py +7 -1
  39. ccxt/async_support/coincheck.py +3 -0
  40. ccxt/async_support/coinex.py +255 -192
  41. ccxt/async_support/coinlist.py +5 -1
  42. ccxt/async_support/coinmate.py +4 -1
  43. ccxt/async_support/coinone.py +3 -0
  44. ccxt/async_support/coinsph.py +5 -1
  45. ccxt/async_support/coinspot.py +3 -0
  46. ccxt/async_support/cryptocom.py +3 -1
  47. ccxt/async_support/delta.py +2 -2
  48. ccxt/async_support/deribit.py +1 -1
  49. ccxt/async_support/digifinex.py +3 -3
  50. ccxt/async_support/exmo.py +8 -3
  51. ccxt/async_support/gate.py +112 -24
  52. ccxt/async_support/gemini.py +1 -1
  53. ccxt/async_support/hitbtc.py +7 -6
  54. ccxt/async_support/hollaex.py +1 -1
  55. ccxt/async_support/htx.py +3 -1
  56. ccxt/async_support/huobijp.py +1 -1
  57. ccxt/async_support/hyperliquid.py +2 -2
  58. ccxt/async_support/idex.py +4 -1
  59. ccxt/async_support/independentreserve.py +3 -0
  60. ccxt/async_support/indodax.py +4 -1
  61. ccxt/async_support/kraken.py +1 -1
  62. ccxt/async_support/kucoin.py +3 -1
  63. ccxt/async_support/kucoinfutures.py +3 -1
  64. ccxt/async_support/kuna.py +1 -1
  65. ccxt/async_support/latoken.py +6 -0
  66. ccxt/async_support/lbank.py +1 -1
  67. ccxt/async_support/luno.py +3 -0
  68. ccxt/async_support/lykke.py +6 -1
  69. ccxt/async_support/mercado.py +4 -1
  70. ccxt/async_support/mexc.py +110 -4
  71. ccxt/async_support/ndax.py +5 -1
  72. ccxt/async_support/novadax.py +5 -1
  73. ccxt/async_support/okcoin.py +1 -1
  74. ccxt/async_support/okx.py +81 -5
  75. ccxt/async_support/onetrading.py +4 -1
  76. ccxt/async_support/p2b.py +3 -0
  77. ccxt/async_support/phemex.py +1 -1
  78. ccxt/async_support/poloniex.py +1 -1
  79. ccxt/async_support/probit.py +4 -1
  80. ccxt/async_support/timex.py +3 -0
  81. ccxt/async_support/tokocrypto.py +1 -1
  82. ccxt/async_support/tradeogre.py +3 -0
  83. ccxt/async_support/upbit.py +1 -1
  84. ccxt/async_support/wavesexchange.py +4 -1
  85. ccxt/async_support/wazirx.py +3 -0
  86. ccxt/async_support/whitebit.py +1 -1
  87. ccxt/async_support/woo.py +4 -2
  88. ccxt/async_support/yobit.py +4 -1
  89. ccxt/async_support/zaif.py +1 -1
  90. ccxt/async_support/zonda.py +1 -1
  91. ccxt/base/exchange.py +38 -4
  92. ccxt/bigone.py +1 -1
  93. ccxt/binance.py +6 -4
  94. ccxt/bingx.py +4 -2
  95. ccxt/bitbank.py +4 -1
  96. ccxt/bitfinex.py +1 -1
  97. ccxt/bitfinex2.py +1 -1
  98. ccxt/bitflyer.py +1 -1
  99. ccxt/bitget.py +71 -5
  100. ccxt/bithumb.py +5 -1
  101. ccxt/bitmart.py +1 -1
  102. ccxt/bitmex.py +3 -1
  103. ccxt/bitopro.py +6 -1
  104. ccxt/bitrue.py +1 -1
  105. ccxt/bitso.py +4 -1
  106. ccxt/bitstamp.py +4 -1
  107. ccxt/bitteam.py +4 -0
  108. ccxt/bitvavo.py +4 -1
  109. ccxt/bl3p.py +3 -0
  110. ccxt/blockchaincom.py +1 -1
  111. ccxt/btcalpha.py +3 -0
  112. ccxt/btcbox.py +3 -0
  113. ccxt/btcmarkets.py +4 -1
  114. ccxt/btcturk.py +3 -0
  115. ccxt/bybit.py +116 -14
  116. ccxt/cex.py +6 -0
  117. ccxt/coinbase.py +94 -18
  118. ccxt/coinbaseinternational.py +3 -1
  119. ccxt/coinbasepro.py +7 -1
  120. ccxt/coincheck.py +3 -0
  121. ccxt/coinex.py +255 -192
  122. ccxt/coinlist.py +5 -1
  123. ccxt/coinmate.py +4 -1
  124. ccxt/coinone.py +3 -0
  125. ccxt/coinsph.py +5 -1
  126. ccxt/coinspot.py +3 -0
  127. ccxt/cryptocom.py +3 -1
  128. ccxt/delta.py +2 -2
  129. ccxt/deribit.py +1 -1
  130. ccxt/digifinex.py +3 -3
  131. ccxt/exmo.py +8 -3
  132. ccxt/gate.py +112 -24
  133. ccxt/gemini.py +1 -1
  134. ccxt/hitbtc.py +7 -6
  135. ccxt/hollaex.py +1 -1
  136. ccxt/htx.py +3 -1
  137. ccxt/huobijp.py +1 -1
  138. ccxt/hyperliquid.py +2 -2
  139. ccxt/idex.py +4 -1
  140. ccxt/independentreserve.py +3 -0
  141. ccxt/indodax.py +4 -1
  142. ccxt/kraken.py +1 -1
  143. ccxt/kucoin.py +3 -1
  144. ccxt/kucoinfutures.py +3 -1
  145. ccxt/kuna.py +1 -1
  146. ccxt/latoken.py +6 -0
  147. ccxt/lbank.py +1 -1
  148. ccxt/luno.py +3 -0
  149. ccxt/lykke.py +6 -1
  150. ccxt/mercado.py +4 -1
  151. ccxt/mexc.py +110 -4
  152. ccxt/ndax.py +5 -1
  153. ccxt/novadax.py +5 -1
  154. ccxt/okcoin.py +1 -1
  155. ccxt/okx.py +81 -5
  156. ccxt/onetrading.py +4 -1
  157. ccxt/p2b.py +3 -0
  158. ccxt/phemex.py +1 -1
  159. ccxt/poloniex.py +1 -1
  160. ccxt/pro/__init__.py +1 -1
  161. ccxt/pro/bybit.py +1 -1
  162. ccxt/pro/coinbase.py +28 -28
  163. ccxt/probit.py +4 -1
  164. ccxt/timex.py +3 -0
  165. ccxt/tokocrypto.py +1 -1
  166. ccxt/tradeogre.py +3 -0
  167. ccxt/upbit.py +1 -1
  168. ccxt/wavesexchange.py +4 -1
  169. ccxt/wazirx.py +3 -0
  170. ccxt/whitebit.py +1 -1
  171. ccxt/woo.py +4 -2
  172. ccxt/yobit.py +4 -1
  173. ccxt/zaif.py +1 -1
  174. ccxt/zonda.py +1 -1
  175. {ccxt-4.3.6.dist-info → ccxt-4.3.8.dist-info}/METADATA +4 -4
  176. {ccxt-4.3.6.dist-info → ccxt-4.3.8.dist-info}/RECORD +178 -178
  177. {ccxt-4.3.6.dist-info → ccxt-4.3.8.dist-info}/WHEEL +0 -0
  178. {ccxt-4.3.6.dist-info → ccxt-4.3.8.dist-info}/top_level.txt +0 -0
ccxt/probit.py CHANGED
@@ -82,8 +82,11 @@ class probit(Exchange, ImplicitAPI):
82
82
  'fetchOrder': True,
83
83
  'fetchOrderBook': True,
84
84
  'fetchPosition': False,
85
+ 'fetchPositionHistory': False,
85
86
  'fetchPositionMode': False,
86
87
  'fetchPositions': False,
88
+ 'fetchPositionsForSymbol': False,
89
+ 'fetchPositionsHistory': False,
87
90
  'fetchPositionsRisk': False,
88
91
  'fetchPremiumIndexOHLCV': False,
89
92
  'fetchTicker': True,
@@ -1331,7 +1334,7 @@ class probit(Exchange, ImplicitAPI):
1331
1334
  data = self.safe_list(response, 'data', [])
1332
1335
  return self.parse_deposit_addresses(data, codes)
1333
1336
 
1334
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1337
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1335
1338
  """
1336
1339
  :see: https://docs-en.probit.com/reference/withdrawal
1337
1340
  make a withdrawal
ccxt/timex.py CHANGED
@@ -78,8 +78,11 @@ class timex(Exchange, ImplicitAPI):
78
78
  'fetchOrder': True,
79
79
  'fetchOrderBook': True,
80
80
  'fetchPosition': False,
81
+ 'fetchPositionHistory': False,
81
82
  'fetchPositionMode': False,
82
83
  'fetchPositions': False,
84
+ 'fetchPositionsForSymbol': False,
85
+ 'fetchPositionsHistory': False,
83
86
  'fetchPositionsRisk': False,
84
87
  'fetchPremiumIndexOHLCV': False,
85
88
  'fetchTicker': True,
ccxt/tokocrypto.py CHANGED
@@ -2237,7 +2237,7 @@ class tokocrypto(Exchange, ImplicitAPI):
2237
2237
  'fee': fee,
2238
2238
  }
2239
2239
 
2240
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
2240
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2241
2241
  """
2242
2242
  :see: https://www.tokocrypto.com/apidocs/#withdraw-signed
2243
2243
  make a withdrawal
ccxt/tradeogre.py CHANGED
@@ -84,8 +84,11 @@ class tradeogre(Exchange, ImplicitAPI):
84
84
  'fetchOrderTrades': False,
85
85
  'fetchPermissions': False,
86
86
  'fetchPosition': False,
87
+ 'fetchPositionHistory': False,
88
+ 'fetchPositionMode': False,
87
89
  'fetchPositions': False,
88
90
  'fetchPositionsForSymbol': False,
91
+ 'fetchPositionsHistory': False,
89
92
  'fetchPositionsRisk': False,
90
93
  'fetchPremiumIndexOHLCV': False,
91
94
  'fetchTicker': True,
ccxt/upbit.py CHANGED
@@ -1717,7 +1717,7 @@ class upbit(Exchange, ImplicitAPI):
1717
1717
  raise AddressPending(self.id + ' is generating ' + code + ' deposit address, call fetchDepositAddress or createDepositAddress one more time later to retrieve the generated address')
1718
1718
  return self.parse_deposit_address(response)
1719
1719
 
1720
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1720
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1721
1721
  """
1722
1722
  :see: https://docs.upbit.com/reference/디지털자산-출금하기
1723
1723
  :see: https://docs.upbit.com/reference/%EC%9B%90%ED%99%94-%EC%B6%9C%EA%B8%88%ED%95%98%EA%B8%B0
ccxt/wavesexchange.py CHANGED
@@ -79,8 +79,11 @@ class wavesexchange(Exchange, ImplicitAPI):
79
79
  'fetchOrderBook': True,
80
80
  'fetchOrders': True,
81
81
  'fetchPosition': False,
82
+ 'fetchPositionHistory': False,
82
83
  'fetchPositionMode': False,
83
84
  'fetchPositions': False,
85
+ 'fetchPositionsForSymbol': False,
86
+ 'fetchPositionsHistory': False,
84
87
  'fetchPositionsRisk': False,
85
88
  'fetchPremiumIndexOHLCV': False,
86
89
  'fetchTicker': True,
@@ -2289,7 +2292,7 @@ class wavesexchange(Exchange, ImplicitAPI):
2289
2292
  raise ExchangeError(self.id + ' ' + body)
2290
2293
  return None
2291
2294
 
2292
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
2295
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2293
2296
  """
2294
2297
  make a withdrawal
2295
2298
  :param str code: unified currency code
ccxt/wazirx.py CHANGED
@@ -82,8 +82,11 @@ class wazirx(Exchange, ImplicitAPI):
82
82
  'fetchOrderBook': True,
83
83
  'fetchOrders': True,
84
84
  'fetchPosition': False,
85
+ 'fetchPositionHistory': False,
85
86
  'fetchPositionMode': False,
86
87
  'fetchPositions': False,
88
+ 'fetchPositionsForSymbol': False,
89
+ 'fetchPositionsHistory': False,
87
90
  'fetchPositionsRisk': False,
88
91
  'fetchPremiumIndexOHLCV': False,
89
92
  'fetchStatus': True,
ccxt/whitebit.py CHANGED
@@ -1809,7 +1809,7 @@ class whitebit(Exchange, ImplicitAPI):
1809
1809
  'status': None,
1810
1810
  }
1811
1811
 
1812
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1812
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1813
1813
  """
1814
1814
  make a withdrawal
1815
1815
  :see: https://docs.whitebit.com/private/http-main-v4/#create-withdraw-request
ccxt/woo.py CHANGED
@@ -97,8 +97,10 @@ class woo(Exchange, ImplicitAPI):
97
97
  'fetchOrders': True,
98
98
  'fetchOrderTrades': True,
99
99
  'fetchPosition': True,
100
+ 'fetchPositionHistory': False,
100
101
  'fetchPositionMode': False,
101
102
  'fetchPositions': True,
103
+ 'fetchPositionsHistory': False,
102
104
  'fetchPremiumIndexOHLCV': False,
103
105
  'fetchStatus': True,
104
106
  'fetchTicker': False,
@@ -2238,7 +2240,7 @@ class woo(Exchange, ImplicitAPI):
2238
2240
  }
2239
2241
  return self.safe_string(statuses, status, status)
2240
2242
 
2241
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
2243
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
2242
2244
  """
2243
2245
  make a withdrawal
2244
2246
  :param str code: unified currency code
@@ -2962,7 +2964,7 @@ class woo(Exchange, ImplicitAPI):
2962
2964
  #
2963
2965
  data = self.safe_dict(response, 'data', {})
2964
2966
  rows = self.safe_list(data, 'tradeVos', [])
2965
- return self.parse_conversions(rows, 'sellAsset', 'buyAsset', since, limit)
2967
+ return self.parse_conversions(rows, code, 'sellAsset', 'buyAsset', since, limit)
2966
2968
 
2967
2969
  def parse_conversion(self, conversion, fromCurrency: Currency = None, toCurrency: Currency = None) -> Conversion:
2968
2970
  #
ccxt/yobit.py CHANGED
@@ -76,8 +76,11 @@ class yobit(Exchange, ImplicitAPI):
76
76
  'fetchOrderBook': True,
77
77
  'fetchOrderBooks': True,
78
78
  'fetchPosition': False,
79
+ 'fetchPositionHistory': False,
79
80
  'fetchPositionMode': False,
80
81
  'fetchPositions': False,
82
+ 'fetchPositionsForSymbol': False,
83
+ 'fetchPositionsHistory': False,
81
84
  'fetchPositionsRisk': False,
82
85
  'fetchPremiumIndexOHLCV': False,
83
86
  'fetchTicker': True,
@@ -1150,7 +1153,7 @@ class yobit(Exchange, ImplicitAPI):
1150
1153
  },
1151
1154
  }
1152
1155
 
1153
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1156
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1154
1157
  """
1155
1158
  :see: https://yobit.net/en/api
1156
1159
  make a withdrawal
ccxt/zaif.py CHANGED
@@ -557,7 +557,7 @@ class zaif(Exchange, ImplicitAPI):
557
557
  response = self.privatePostTradeHistory(self.extend(request, params))
558
558
  return self.parse_orders(response['return'], market, since, limit)
559
559
 
560
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
560
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
561
561
  """
562
562
  :see: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id41
563
563
  make a withdrawal
ccxt/zonda.py CHANGED
@@ -1649,7 +1649,7 @@ class zonda(Exchange, ImplicitAPI):
1649
1649
  }
1650
1650
  return self.safe_string(statuses, status, status)
1651
1651
 
1652
- def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1652
+ def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1653
1653
  """
1654
1654
  :see: https://docs.zondacrypto.exchange/reference/crypto-withdrawal-1
1655
1655
  make a withdrawal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 4.3.6
3
+ Version: 4.3.8
4
4
  Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
5
5
  Home-page: https://ccxt.com
6
6
  Author: Igor Kroitor
@@ -262,13 +262,13 @@ console.log(version, Object.keys(exchanges));
262
262
 
263
263
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
264
264
 
265
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.6/dist/ccxt.browser.js
266
- * unpkg: https://unpkg.com/ccxt@4.3.6/dist/ccxt.browser.js
265
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.8/dist/ccxt.browser.js
266
+ * unpkg: https://unpkg.com/ccxt@4.3.8/dist/ccxt.browser.js
267
267
 
268
268
  CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
269
269
 
270
270
  ```HTML
271
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.6/dist/ccxt.browser.js"></script>
271
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.8/dist/ccxt.browser.js"></script>
272
272
  ```
273
273
 
274
274
  Creates a global `ccxt` object: