ccxt 4.1.96__py2.py3-none-any.whl → 4.1.97__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 (145) hide show
  1. ccxt/__init__.py +2 -1
  2. ccxt/abstract/bingx.py +2 -0
  3. ccxt/ace.py +1 -1
  4. ccxt/ascendex.py +1 -1
  5. ccxt/async_support/__init__.py +2 -1
  6. ccxt/async_support/ace.py +1 -1
  7. ccxt/async_support/ascendex.py +1 -1
  8. ccxt/async_support/base/exchange.py +1 -1
  9. ccxt/async_support/bigone.py +2 -2
  10. ccxt/async_support/bingx.py +38 -1
  11. ccxt/async_support/bitfinex.py +1 -1
  12. ccxt/async_support/bitfinex2.py +1 -1
  13. ccxt/async_support/bitflyer.py +2 -2
  14. ccxt/async_support/bitmart.py +1 -1
  15. ccxt/async_support/bitmex.py +2 -2
  16. ccxt/async_support/bitopro.py +1 -1
  17. ccxt/async_support/bitpanda.py +1 -1
  18. ccxt/async_support/bitvavo.py +1 -1
  19. ccxt/async_support/blockchaincom.py +1 -1
  20. ccxt/async_support/btcalpha.py +2 -2
  21. ccxt/async_support/btcbox.py +1 -1
  22. ccxt/async_support/btcmarkets.py +2 -2
  23. ccxt/async_support/btcturk.py +1 -1
  24. ccxt/async_support/bybit.py +2 -2
  25. ccxt/async_support/cex.py +1 -1
  26. ccxt/async_support/coinbasepro.py +2 -2
  27. ccxt/async_support/coinex.py +1 -1
  28. ccxt/async_support/coinlist.py +1 -1
  29. ccxt/async_support/deribit.py +1 -1
  30. ccxt/async_support/digifinex.py +1 -1
  31. ccxt/async_support/gate.py +1 -1
  32. ccxt/async_support/hitbtc.py +1 -1
  33. ccxt/async_support/hollaex.py +2 -2
  34. ccxt/async_support/htx.py +1 -1
  35. ccxt/async_support/huobijp.py +2 -2
  36. ccxt/async_support/idex.py +1 -1
  37. ccxt/async_support/independentreserve.py +1 -1
  38. ccxt/async_support/kraken.py +1 -1
  39. ccxt/async_support/kucoin.py +1 -1
  40. ccxt/async_support/kucoinfutures.py +1 -1
  41. ccxt/async_support/kuna.py +1 -1
  42. ccxt/async_support/latoken.py +1 -1
  43. ccxt/async_support/luno.py +2 -2
  44. ccxt/async_support/lykke.py +1 -1
  45. ccxt/async_support/mexc.py +2 -2
  46. ccxt/async_support/ndax.py +1 -1
  47. ccxt/async_support/novadax.py +2 -2
  48. ccxt/async_support/oceanex.py +1 -1
  49. ccxt/async_support/okcoin.py +1 -1
  50. ccxt/async_support/okx.py +1 -1
  51. ccxt/async_support/poloniexfutures.py +1 -1
  52. ccxt/async_support/probit.py +1 -1
  53. ccxt/async_support/timex.py +1 -1
  54. ccxt/async_support/tokocrypto.py +1 -1
  55. ccxt/async_support/upbit.py +1 -1
  56. ccxt/async_support/wavesexchange.py +1 -1
  57. ccxt/async_support/whitebit.py +1 -1
  58. ccxt/async_support/woo.py +1 -1
  59. ccxt/async_support/zaif.py +1 -1
  60. ccxt/base/errors.py +6 -0
  61. ccxt/base/exchange.py +8 -6
  62. ccxt/bigone.py +2 -2
  63. ccxt/bingx.py +38 -1
  64. ccxt/bitfinex.py +1 -1
  65. ccxt/bitfinex2.py +1 -1
  66. ccxt/bitflyer.py +2 -2
  67. ccxt/bitmart.py +1 -1
  68. ccxt/bitmex.py +2 -2
  69. ccxt/bitopro.py +1 -1
  70. ccxt/bitpanda.py +1 -1
  71. ccxt/bitvavo.py +1 -1
  72. ccxt/blockchaincom.py +1 -1
  73. ccxt/btcalpha.py +2 -2
  74. ccxt/btcbox.py +1 -1
  75. ccxt/btcmarkets.py +2 -2
  76. ccxt/btcturk.py +1 -1
  77. ccxt/bybit.py +2 -2
  78. ccxt/cex.py +1 -1
  79. ccxt/coinbasepro.py +2 -2
  80. ccxt/coinex.py +1 -1
  81. ccxt/coinlist.py +1 -1
  82. ccxt/deribit.py +1 -1
  83. ccxt/digifinex.py +1 -1
  84. ccxt/gate.py +1 -1
  85. ccxt/hitbtc.py +1 -1
  86. ccxt/hollaex.py +2 -2
  87. ccxt/htx.py +1 -1
  88. ccxt/huobijp.py +2 -2
  89. ccxt/idex.py +1 -1
  90. ccxt/independentreserve.py +1 -1
  91. ccxt/kraken.py +1 -1
  92. ccxt/kucoin.py +1 -1
  93. ccxt/kucoinfutures.py +1 -1
  94. ccxt/kuna.py +1 -1
  95. ccxt/latoken.py +1 -1
  96. ccxt/luno.py +2 -2
  97. ccxt/lykke.py +1 -1
  98. ccxt/mexc.py +2 -2
  99. ccxt/ndax.py +1 -1
  100. ccxt/novadax.py +2 -2
  101. ccxt/oceanex.py +1 -1
  102. ccxt/okcoin.py +1 -1
  103. ccxt/okx.py +1 -1
  104. ccxt/poloniexfutures.py +1 -1
  105. ccxt/pro/__init__.py +1 -1
  106. ccxt/pro/alpaca.py +1 -1
  107. ccxt/pro/ascendex.py +1 -1
  108. ccxt/pro/binance.py +2 -2
  109. ccxt/pro/bingx.py +6 -3
  110. ccxt/pro/bitfinex.py +1 -1
  111. ccxt/pro/bitfinex2.py +1 -1
  112. ccxt/pro/bitmex.py +1 -1
  113. ccxt/pro/bitpanda.py +1 -1
  114. ccxt/pro/blockchaincom.py +1 -1
  115. ccxt/pro/bybit.py +2 -2
  116. ccxt/pro/coinbase.py +1 -1
  117. ccxt/pro/coinbasepro.py +1 -1
  118. ccxt/pro/deribit.py +1 -1
  119. ccxt/pro/gate.py +1 -1
  120. ccxt/pro/gemini.py +1 -1
  121. ccxt/pro/hollaex.py +1 -1
  122. ccxt/pro/htx.py +1 -1
  123. ccxt/pro/idex.py +1 -1
  124. ccxt/pro/kraken.py +1 -1
  125. ccxt/pro/krakenfutures.py +1 -1
  126. ccxt/pro/kucoinfutures.py +1 -1
  127. ccxt/pro/mexc.py +1 -1
  128. ccxt/pro/okcoin.py +1 -1
  129. ccxt/pro/okx.py +1 -1
  130. ccxt/pro/phemex.py +1 -1
  131. ccxt/pro/poloniexfutures.py +1 -1
  132. ccxt/probit.py +1 -1
  133. ccxt/test/test_async.py +3 -1
  134. ccxt/test/test_sync.py +3 -1
  135. ccxt/timex.py +1 -1
  136. ccxt/tokocrypto.py +1 -1
  137. ccxt/upbit.py +1 -1
  138. ccxt/wavesexchange.py +1 -1
  139. ccxt/whitebit.py +1 -1
  140. ccxt/woo.py +1 -1
  141. ccxt/zaif.py +1 -1
  142. {ccxt-4.1.96.dist-info → ccxt-4.1.97.dist-info}/METADATA +4 -4
  143. {ccxt-4.1.96.dist-info → ccxt-4.1.97.dist-info}/RECORD +145 -145
  144. {ccxt-4.1.96.dist-info → ccxt-4.1.97.dist-info}/WHEEL +0 -0
  145. {ccxt-4.1.96.dist-info → ccxt-4.1.97.dist-info}/top_level.txt +0 -0
@@ -943,7 +943,7 @@ class lykke(Exchange, ImplicitAPI):
943
943
  fetches information on multiple closed orders made by the user
944
944
  :param str symbol: unified market symbol of the market orders were made in
945
945
  :param int [since]: the earliest time in ms to fetch orders for
946
- :param int [limit]: the maximum number of orde structures to retrieve
946
+ :param int [limit]: the maximum number of order structures to retrieve
947
947
  :param dict [params]: extra parameters specific to the exchange API endpoint
948
948
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
949
949
  """
@@ -2375,7 +2375,7 @@ class mexc(Exchange, ImplicitAPI):
2375
2375
  fetches information on multiple orders made by the user
2376
2376
  :param str symbol: unified market symbol of the market orders were made in
2377
2377
  :param int [since]: the earliest time in ms to fetch orders for
2378
- :param int [limit]: the maximum number of orde structures to retrieve
2378
+ :param int [limit]: the maximum number of order structures to retrieve
2379
2379
  :param dict [params]: extra parameters specific to the exchange API endpoint
2380
2380
  :param str [params.marginMode]: only 'isolated' is supported, for spot-margin trading
2381
2381
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2670,7 +2670,7 @@ class mexc(Exchange, ImplicitAPI):
2670
2670
  fetches information on multiple closed orders made by the user
2671
2671
  :param str symbol: unified market symbol of the market orders were made in
2672
2672
  :param int [since]: the earliest time in ms to fetch orders for
2673
- :param int [limit]: the maximum number of orde structures to retrieve
2673
+ :param int [limit]: the maximum number of order structures to retrieve
2674
2674
  :param dict [params]: extra parameters specific to the exchange API endpoint
2675
2675
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2676
2676
  """
@@ -1609,7 +1609,7 @@ class ndax(Exchange, ImplicitAPI):
1609
1609
  fetches information on multiple orders made by the user
1610
1610
  :param str symbol: unified market symbol of the market orders were made in
1611
1611
  :param int [since]: the earliest time in ms to fetch orders for
1612
- :param int [limit]: the maximum number of orde structures to retrieve
1612
+ :param int [limit]: the maximum number of order structures to retrieve
1613
1613
  :param dict [params]: extra parameters specific to the exchange API endpoint
1614
1614
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1615
1615
  """
@@ -872,7 +872,7 @@ class novadax(Exchange, ImplicitAPI):
872
872
  :see: https://doc.novadax.com/en-US/#get-order-history
873
873
  :param str symbol: unified market symbol of the market orders were made in
874
874
  :param int [since]: the earliest time in ms to fetch orders for
875
- :param int [limit]: the maximum number of orde structures to retrieve
875
+ :param int [limit]: the maximum number of order structures to retrieve
876
876
  :param dict [params]: extra parameters specific to the exchange API endpoint
877
877
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
878
878
  """
@@ -942,7 +942,7 @@ class novadax(Exchange, ImplicitAPI):
942
942
  :see: https://doc.novadax.com/en-US/#get-order-history
943
943
  :param str symbol: unified market symbol of the market orders were made in
944
944
  :param int [since]: the earliest time in ms to fetch orders for
945
- :param int [limit]: the maximum number of orde structures to retrieve
945
+ :param int [limit]: the maximum number of order structures to retrieve
946
946
  :param dict [params]: extra parameters specific to the exchange API endpoint
947
947
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
948
948
  """
@@ -667,7 +667,7 @@ class oceanex(Exchange, ImplicitAPI):
667
667
  :see: https://api.oceanex.pro/doc/v1/#order-status-get
668
668
  :param str symbol: unified market symbol of the market orders were made in
669
669
  :param int [since]: the earliest time in ms to fetch orders for
670
- :param int [limit]: the maximum number of orde structures to retrieve
670
+ :param int [limit]: the maximum number of order structures to retrieve
671
671
  :param dict [params]: extra parameters specific to the exchange API endpoint
672
672
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
673
673
  """
@@ -1918,7 +1918,7 @@ class okcoin(Exchange, ImplicitAPI):
1918
1918
  fetches information on multiple closed orders made by the user
1919
1919
  :param str symbol: unified market symbol of the market orders were made in
1920
1920
  :param int [since]: the earliest time in ms to fetch orders for
1921
- :param int [limit]: the maximum number of orde structures to retrieve
1921
+ :param int [limit]: the maximum number of order structures to retrieve
1922
1922
  :param dict [params]: extra parameters specific to the exchange API endpoint
1923
1923
  :param bool [params.stop]: True if fetching trigger or conditional orders
1924
1924
  :param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
ccxt/async_support/okx.py CHANGED
@@ -3676,7 +3676,7 @@ class okx(Exchange, ImplicitAPI):
3676
3676
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-history
3677
3677
  :param str symbol: unified market symbol of the market orders were made in
3678
3678
  :param int [since]: the earliest time in ms to fetch orders for
3679
- :param int [limit]: the maximum number of orde structures to retrieve
3679
+ :param int [limit]: the maximum number of order structures to retrieve
3680
3680
  :param dict [params]: extra parameters specific to the exchange API endpoint
3681
3681
  :param bool [params.stop]: True if fetching trigger or conditional orders
3682
3682
  :param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
@@ -1301,7 +1301,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1301
1301
  :see: https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1302
1302
  :param str symbol: unified market symbol of the market orders were made in
1303
1303
  :param int [since]: the earliest time in ms to fetch orders for
1304
- :param int [limit]: the maximum number of orde structures to retrieve
1304
+ :param int [limit]: the maximum number of order structures to retrieve
1305
1305
  :param dict [params]: extra parameters specific to the exchange API endpoint
1306
1306
  :param int [params.till]: end time in ms
1307
1307
  :param str [params.side]: buy or sell
@@ -1015,7 +1015,7 @@ class probit(Exchange, ImplicitAPI):
1015
1015
  fetches information on multiple closed orders made by the user
1016
1016
  :param str symbol: unified market symbol of the market orders were made in
1017
1017
  :param int [since]: the earliest time in ms to fetch orders for
1018
- :param int [limit]: the maximum number of orde structures to retrieve
1018
+ :param int [limit]: the maximum number of order structures to retrieve
1019
1019
  :param dict [params]: extra parameters specific to the exchange API endpoint
1020
1020
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1021
1021
  """
@@ -957,7 +957,7 @@ class timex(Exchange, ImplicitAPI):
957
957
  fetches information on multiple closed orders made by the user
958
958
  :param str symbol: unified market symbol of the market orders were made in
959
959
  :param int [since]: the earliest time in ms to fetch orders for
960
- :param int [limit]: the maximum number of orde structures to retrieve
960
+ :param int [limit]: the maximum number of order structures to retrieve
961
961
  :param dict [params]: extra parameters specific to the exchange API endpoint
962
962
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
963
963
  """
@@ -1827,7 +1827,7 @@ class tokocrypto(Exchange, ImplicitAPI):
1827
1827
  fetches information on multiple closed orders made by the user
1828
1828
  :param str symbol: unified market symbol of the market orders were made in
1829
1829
  :param int [since]: the earliest time in ms to fetch orders for
1830
- :param int [limit]: the maximum number of orde structures to retrieve
1830
+ :param int [limit]: the maximum number of order structures to retrieve
1831
1831
  :param dict [params]: extra parameters specific to the exchange API endpoint
1832
1832
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1833
1833
  """
@@ -1446,7 +1446,7 @@ class upbit(Exchange, ImplicitAPI):
1446
1446
  fetches information on multiple closed orders made by the user
1447
1447
  :param str symbol: unified market symbol of the market orders were made in
1448
1448
  :param int [since]: the earliest time in ms to fetch orders for
1449
- :param int [limit]: the maximum number of orde structures to retrieve
1449
+ :param int [limit]: the maximum number of order structures to retrieve
1450
1450
  :param dict [params]: extra parameters specific to the exchange API endpoint
1451
1451
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1452
1452
  """
@@ -1544,7 +1544,7 @@ class wavesexchange(Exchange, ImplicitAPI):
1544
1544
  fetches information on multiple closed orders made by the user
1545
1545
  :param str symbol: unified market symbol of the market orders were made in
1546
1546
  :param int [since]: the earliest time in ms to fetch orders for
1547
- :param int [limit]: the maximum number of orde structures to retrieve
1547
+ :param int [limit]: the maximum number of order structures to retrieve
1548
1548
  :param dict [params]: extra parameters specific to the exchange API endpoint
1549
1549
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1550
1550
  """
@@ -1334,7 +1334,7 @@ class whitebit(Exchange, ImplicitAPI):
1334
1334
  :see: https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
1335
1335
  :param str symbol: unified market symbol of the market orders were made in
1336
1336
  :param int [since]: the earliest time in ms to fetch orders for
1337
- :param int [limit]: the maximum number of orde structures to retrieve
1337
+ :param int [limit]: the maximum number of order structures to retrieve
1338
1338
  :param dict [params]: extra parameters specific to the exchange API endpoint
1339
1339
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1340
1340
  """
ccxt/async_support/woo.py CHANGED
@@ -1118,7 +1118,7 @@ class woo(Exchange, ImplicitAPI):
1118
1118
  fetches information on multiple orders made by the user
1119
1119
  :param str symbol: unified market symbol of the market orders were made in
1120
1120
  :param int [since]: the earliest time in ms to fetch orders for
1121
- :param int [limit]: the maximum number of orde structures to retrieve
1121
+ :param int [limit]: the maximum number of order structures to retrieve
1122
1122
  :param dict [params]: extra parameters specific to the exchange API endpoint
1123
1123
  :param boolean [params.stop]: whether the order is a stop/algo order
1124
1124
  :param boolean [params.isTriggered]: whether the order has been triggered(False by default)
@@ -535,7 +535,7 @@ class zaif(Exchange, ImplicitAPI):
535
535
  fetches information on multiple closed orders made by the user
536
536
  :param str symbol: unified market symbol of the market orders were made in
537
537
  :param int [since]: the earliest time in ms to fetch orders for
538
- :param int [limit]: the maximum number of orde structures to retrieve
538
+ :param int [limit]: the maximum number of order structures to retrieve
539
539
  :param dict [params]: extra parameters specific to the exchange API endpoint
540
540
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
541
541
  """
ccxt/base/errors.py CHANGED
@@ -31,6 +31,7 @@ error_hierarchy = {
31
31
  'ContractUnavailable': {},
32
32
  },
33
33
  'NotSupported': {},
34
+ 'ProxyError': {},
34
35
  },
35
36
  'OperationFailed': {
36
37
  'NetworkError': {
@@ -152,6 +153,10 @@ class NotSupported(ExchangeError):
152
153
  pass
153
154
 
154
155
 
156
+ class ProxyError(ExchangeError):
157
+ pass
158
+
159
+
155
160
  class OperationFailed(BaseError):
156
161
  pass
157
162
 
@@ -212,6 +217,7 @@ __all__ = [
212
217
  'DuplicateOrderId',
213
218
  'ContractUnavailable',
214
219
  'NotSupported',
220
+ 'ProxyError',
215
221
  'OperationFailed',
216
222
  'NetworkError',
217
223
  'DDoSProtection',
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.1.96'
7
+ __version__ = '4.1.97'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -23,6 +23,7 @@ from ccxt.base.errors import NullResponse
23
23
  from ccxt.base.errors import RateLimitExceeded
24
24
  from ccxt.base.errors import BadRequest
25
25
  from ccxt.base.errors import BadResponse
26
+ from ccxt.base.errors import ProxyError
26
27
 
27
28
  # -----------------------------------------------------------------------------
28
29
 
@@ -1768,7 +1769,7 @@ class Exchange(object):
1768
1769
  length = len(usedProxies)
1769
1770
  if length > 1:
1770
1771
  joinedProxyNames = ','.join(usedProxies)
1771
- raise ExchangeError(self.id + ' you have multiple conflicting proxy_url settings(' + joinedProxyNames + '), please use only one from : proxyUrl, proxy_url, proxyUrlCallback, proxy_url_callback')
1772
+ raise ProxyError(self.id + ' you have multiple conflicting proxy settings(' + joinedProxyNames + '), please use only one from : proxyUrl, proxy_url, proxyUrlCallback, proxy_url_callback')
1772
1773
  return proxyUrl
1773
1774
 
1774
1775
  def check_proxy_settings(self, url=None, method=None, headers=None, body=None):
@@ -1819,7 +1820,7 @@ class Exchange(object):
1819
1820
  length = len(usedProxies)
1820
1821
  if length > 1:
1821
1822
  joinedProxyNames = ','.join(usedProxies)
1822
- raise ExchangeError(self.id + ' you have multiple conflicting settings(' + joinedProxyNames + '), please use only one from: httpProxy, httpsProxy, httpProxyCallback, httpsProxyCallback, socksProxy, socksProxyCallback')
1823
+ raise ProxyError(self.id + ' you have multiple conflicting proxy settings(' + joinedProxyNames + '), please use only one from: httpProxy, httpsProxy, httpProxyCallback, httpsProxyCallback, socksProxy, socksProxyCallback')
1823
1824
  return [httpProxy, httpsProxy, socksProxy]
1824
1825
 
1825
1826
  def check_ws_proxy_settings(self):
@@ -1852,12 +1853,12 @@ class Exchange(object):
1852
1853
  length = len(usedProxies)
1853
1854
  if length > 1:
1854
1855
  joinedProxyNames = ','.join(usedProxies)
1855
- raise ExchangeError(self.id + ' you have multiple conflicting settings(' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy')
1856
+ raise ProxyError(self.id + ' you have multiple conflicting proxy settings(' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy')
1856
1857
  return [wsProxy, wssProxy, wsSocksProxy]
1857
1858
 
1858
1859
  def check_conflicting_proxies(self, proxyAgentSet, proxyUrlSet):
1859
1860
  if proxyAgentSet and proxyUrlSet:
1860
- raise ExchangeError(self.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy')
1861
+ raise ProxyError(self.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy')
1861
1862
 
1862
1863
  def find_message_hashes(self, client, element: str):
1863
1864
  result = []
@@ -2137,6 +2138,7 @@ class Exchange(object):
2137
2138
  if fee is not None:
2138
2139
  fee['cost'] = self.safe_number(fee, 'cost')
2139
2140
  timestamp = self.safe_integer(entry, 'timestamp')
2141
+ info = self.safe_value(entry, 'info', {})
2140
2142
  return {
2141
2143
  'id': self.safe_string(entry, 'id'),
2142
2144
  'timestamp': timestamp,
@@ -2152,7 +2154,7 @@ class Exchange(object):
2152
2154
  'after': self.parse_number(after),
2153
2155
  'status': self.safe_string(entry, 'status'),
2154
2156
  'fee': fee,
2155
- 'info': entry,
2157
+ 'info': info,
2156
2158
  }
2157
2159
 
2158
2160
  def safe_currency_structure(self, currency: object):
ccxt/bigone.py CHANGED
@@ -1289,7 +1289,7 @@ class bigone(Exchange, ImplicitAPI):
1289
1289
  fetches information on multiple orders made by the user
1290
1290
  :param str symbol: unified market symbol of the market orders were made in
1291
1291
  :param int [since]: the earliest time in ms to fetch orders for
1292
- :param int [limit]: the maximum number of orde structures to retrieve
1292
+ :param int [limit]: the maximum number of order structures to retrieve
1293
1293
  :param dict [params]: extra parameters specific to the exchange API endpoint
1294
1294
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1295
1295
  """
@@ -1414,7 +1414,7 @@ class bigone(Exchange, ImplicitAPI):
1414
1414
  fetches information on multiple closed orders made by the user
1415
1415
  :param str symbol: unified market symbol of the market orders were made in
1416
1416
  :param int [since]: the earliest time in ms to fetch orders for
1417
- :param int [limit]: the maximum number of orde structures to retrieve
1417
+ :param int [limit]: the maximum number of order structures to retrieve
1418
1418
  :param dict [params]: extra parameters specific to the exchange API endpoint
1419
1419
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1420
1420
  """
ccxt/bingx.py CHANGED
@@ -157,6 +157,16 @@ class bingx(Exchange, ImplicitAPI):
157
157
  },
158
158
  },
159
159
  'swap': {
160
+ 'v1': {
161
+ 'private': {
162
+ 'get': {
163
+ 'positionSide/dual': 1,
164
+ },
165
+ 'post': {
166
+ 'positionSide/dual': 1,
167
+ },
168
+ },
169
+ },
160
170
  'v2': {
161
171
  'public': {
162
172
  'get': {
@@ -2336,7 +2346,7 @@ class bingx(Exchange, ImplicitAPI):
2336
2346
  :see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
2337
2347
  :param str [symbol]: unified market symbol of the market orders were made in
2338
2348
  :param int [since]: the earliest time in ms to fetch orders for
2339
- :param int [limit]: the maximum number of orde structures to retrieve
2349
+ :param int [limit]: the maximum number of order structures to retrieve
2340
2350
  :param dict [params]: extra parameters specific to the exchange API endpoint
2341
2351
  :param int [params.until]: the latest time in ms to fetch orders for
2342
2352
  :param boolean [params.standard]: whether to fetch standard contract orders
@@ -3211,6 +3221,33 @@ class bingx(Exchange, ImplicitAPI):
3211
3221
  positions.append(position)
3212
3222
  return positions
3213
3223
 
3224
+ def set_position_mode(self, hedged, symbol: Str = None, params={}):
3225
+ """
3226
+ set hedged to True or False for a market
3227
+ :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
3228
+ :param bool hedged: set to True to use dualSidePosition
3229
+ :param str symbol: not used by bingx setPositionMode()
3230
+ :param dict [params]: extra parameters specific to the exchange API endpoint
3231
+ :returns dict: response from the exchange
3232
+ """
3233
+ dualSidePosition = None
3234
+ if hedged:
3235
+ dualSidePosition = 'true'
3236
+ else:
3237
+ dualSidePosition = 'false'
3238
+ request = {
3239
+ 'dualSidePosition': dualSidePosition,
3240
+ }
3241
+ #
3242
+ # {
3243
+ # code: '0',
3244
+ # msg: '',
3245
+ # timeStamp: '1703327432734',
3246
+ # data: {dualSidePosition: 'false'}
3247
+ # }
3248
+ #
3249
+ return self.swapV1PrivatePostPositionSideDual(self.extend(request, params))
3250
+
3214
3251
  def sign(self, path, section='public', method='GET', params={}, headers=None, body=None):
3215
3252
  type = section[0]
3216
3253
  version = section[1]
ccxt/bitfinex.py CHANGED
@@ -1181,7 +1181,7 @@ class bitfinex(Exchange, ImplicitAPI):
1181
1181
  fetches information on multiple closed orders made by the user
1182
1182
  :param str symbol: unified market symbol of the market orders were made in
1183
1183
  :param int [since]: the earliest time in ms to fetch orders for
1184
- :param int [limit]: the maximum number of orde structures to retrieve
1184
+ :param int [limit]: the maximum number of order structures to retrieve
1185
1185
  :param dict [params]: extra parameters specific to the exchange API endpoint
1186
1186
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1187
1187
  """
ccxt/bitfinex2.py CHANGED
@@ -1735,7 +1735,7 @@ class bitfinex2(Exchange, ImplicitAPI):
1735
1735
  :see: https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
1736
1736
  :param str symbol: unified market symbol of the market orders were made in
1737
1737
  :param int [since]: the earliest time in ms to fetch orders for
1738
- :param int [limit]: the maximum number of orde structures to retrieve
1738
+ :param int [limit]: the maximum number of order structures to retrieve
1739
1739
  :param dict [params]: extra parameters specific to the exchange API endpoint
1740
1740
  :param int [params.until]: the latest time in ms to fetch entries for
1741
1741
  :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
ccxt/bitflyer.py CHANGED
@@ -620,7 +620,7 @@ class bitflyer(Exchange, ImplicitAPI):
620
620
  :see: https://lightning.bitflyer.com/docs?lang=en#list-orders
621
621
  :param str symbol: unified market symbol of the market orders were made in
622
622
  :param int [since]: the earliest time in ms to fetch orders for
623
- :param int [limit]: the maximum number of orde structures to retrieve
623
+ :param int [limit]: the maximum number of order structures to retrieve
624
624
  :param dict [params]: extra parameters specific to the exchange API endpoint
625
625
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
626
626
  """
@@ -659,7 +659,7 @@ class bitflyer(Exchange, ImplicitAPI):
659
659
  :see: https://lightning.bitflyer.com/docs?lang=en#list-orders
660
660
  :param str symbol: unified market symbol of the market orders were made in
661
661
  :param int [since]: the earliest time in ms to fetch orders for
662
- :param int [limit]: the maximum number of orde structures to retrieve
662
+ :param int [limit]: the maximum number of order structures to retrieve
663
663
  :param dict [params]: extra parameters specific to the exchange API endpoint
664
664
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
665
665
  """
ccxt/bitmart.py CHANGED
@@ -2589,7 +2589,7 @@ class bitmart(Exchange, ImplicitAPI):
2589
2589
  fetches information on multiple closed orders made by the user
2590
2590
  :param str symbol: unified market symbol of the market orders were made in
2591
2591
  :param int [since]: the earliest time in ms to fetch orders for
2592
- :param int [limit]: the maximum number of orde structures to retrieve
2592
+ :param int [limit]: the maximum number of order structures to retrieve
2593
2593
  :param dict [params]: extra parameters specific to the exchange API endpoint
2594
2594
  :param int [params.until]: timestamp in ms of the latest entry
2595
2595
  :param str [params.marginMode]: *spot only* 'cross' or 'isolated', for margin trading
ccxt/bitmex.py CHANGED
@@ -847,7 +847,7 @@ class bitmex(Exchange, ImplicitAPI):
847
847
  fetches information on multiple orders made by the user
848
848
  :param str symbol: unified market symbol of the market orders were made in
849
849
  :param int [since]: the earliest time in ms to fetch orders for
850
- :param int [limit]: the maximum number of orde structures to retrieve
850
+ :param int [limit]: the maximum number of order structures to retrieve
851
851
  :param dict [params]: extra parameters specific to the exchange API endpoint
852
852
  :param int [params.until]: the earliest time in ms to fetch orders for
853
853
  :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
@@ -901,7 +901,7 @@ class bitmex(Exchange, ImplicitAPI):
901
901
  fetches information on multiple closed orders made by the user
902
902
  :param str symbol: unified market symbol of the market orders were made in
903
903
  :param int [since]: the earliest time in ms to fetch orders for
904
- :param int [limit]: the maximum number of orde structures to retrieve
904
+ :param int [limit]: the maximum number of order structures to retrieve
905
905
  :param dict [params]: extra parameters specific to the exchange API endpoint
906
906
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
907
907
  """
ccxt/bitopro.py CHANGED
@@ -1203,7 +1203,7 @@ class bitopro(Exchange, ImplicitAPI):
1203
1203
  :see: https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_orders_data.md
1204
1204
  :param str symbol: unified market symbol of the market orders were made in
1205
1205
  :param int [since]: the earliest time in ms to fetch orders for
1206
- :param int [limit]: the maximum number of orde structures to retrieve
1206
+ :param int [limit]: the maximum number of order structures to retrieve
1207
1207
  :param dict [params]: extra parameters specific to the exchange API endpoint
1208
1208
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1209
1209
  """
ccxt/bitpanda.py CHANGED
@@ -1745,7 +1745,7 @@ class bitpanda(Exchange, ImplicitAPI):
1745
1745
  fetches information on multiple closed orders made by the user
1746
1746
  :param str symbol: unified market symbol of the market orders were made in
1747
1747
  :param int [since]: the earliest time in ms to fetch orders for
1748
- :param int [limit]: the maximum number of orde structures to retrieve
1748
+ :param int [limit]: the maximum number of order structures to retrieve
1749
1749
  :param dict [params]: extra parameters specific to the exchange API endpoint
1750
1750
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1751
1751
  """
ccxt/bitvavo.py CHANGED
@@ -1208,7 +1208,7 @@ class bitvavo(Exchange, ImplicitAPI):
1208
1208
  fetches information on multiple orders made by the user
1209
1209
  :param str symbol: unified market symbol of the market orders were made in
1210
1210
  :param int [since]: the earliest time in ms to fetch orders for
1211
- :param int [limit]: the maximum number of orde structures to retrieve
1211
+ :param int [limit]: the maximum number of order structures to retrieve
1212
1212
  :param dict [params]: extra parameters specific to the exchange API endpoint
1213
1213
  :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1214
1214
  :param int [params.until]: the latest time in ms to fetch entries for
ccxt/blockchaincom.py CHANGED
@@ -654,7 +654,7 @@ class blockchaincom(Exchange, ImplicitAPI):
654
654
  fetches information on multiple closed orders made by the user
655
655
  :param str symbol: unified market symbol of the market orders were made in
656
656
  :param int [since]: the earliest time in ms to fetch orders for
657
- :param int [limit]: the maximum number of orde structures to retrieve
657
+ :param int [limit]: the maximum number of order structures to retrieve
658
658
  :param dict [params]: extra parameters specific to the exchange API endpoint
659
659
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
660
660
  """
ccxt/btcalpha.py CHANGED
@@ -761,7 +761,7 @@ class btcalpha(Exchange, ImplicitAPI):
761
761
  fetches information on multiple orders made by the user
762
762
  :param str symbol: unified market symbol of the market orders were made in
763
763
  :param int [since]: the earliest time in ms to fetch orders for
764
- :param int [limit]: the maximum number of orde structures to retrieve
764
+ :param int [limit]: the maximum number of order structures to retrieve
765
765
  :param dict [params]: extra parameters specific to the exchange API endpoint
766
766
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
767
767
  """
@@ -795,7 +795,7 @@ class btcalpha(Exchange, ImplicitAPI):
795
795
  fetches information on multiple closed orders made by the user
796
796
  :param str symbol: unified market symbol of the market orders were made in
797
797
  :param int [since]: the earliest time in ms to fetch orders for
798
- :param int [limit]: the maximum number of orde structures to retrieve
798
+ :param int [limit]: the maximum number of order structures to retrieve
799
799
  :param dict [params]: extra parameters specific to the exchange API endpoint
800
800
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
801
801
  """
ccxt/btcbox.py CHANGED
@@ -466,7 +466,7 @@ class btcbox(Exchange, ImplicitAPI):
466
466
  fetches information on multiple orders made by the user
467
467
  :param str symbol: unified market symbol of the market orders were made in
468
468
  :param int [since]: the earliest time in ms to fetch orders for
469
- :param int [limit]: the maximum number of orde structures to retrieve
469
+ :param int [limit]: the maximum number of order structures to retrieve
470
470
  :param dict [params]: extra parameters specific to the exchange API endpoint
471
471
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
472
472
  """
ccxt/btcmarkets.py CHANGED
@@ -970,7 +970,7 @@ class btcmarkets(Exchange, ImplicitAPI):
970
970
  fetches information on multiple orders made by the user
971
971
  :param str symbol: unified market symbol of the market orders were made in
972
972
  :param int [since]: the earliest time in ms to fetch orders for
973
- :param int [limit]: the maximum number of orde structures to retrieve
973
+ :param int [limit]: the maximum number of order structures to retrieve
974
974
  :param dict [params]: extra parameters specific to the exchange API endpoint
975
975
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
976
976
  """
@@ -1006,7 +1006,7 @@ class btcmarkets(Exchange, ImplicitAPI):
1006
1006
  fetches information on multiple closed orders made by the user
1007
1007
  :param str symbol: unified market symbol of the market orders were made in
1008
1008
  :param int [since]: the earliest time in ms to fetch orders for
1009
- :param int [limit]: the maximum number of orde structures to retrieve
1009
+ :param int [limit]: the maximum number of order structures to retrieve
1010
1010
  :param dict [params]: extra parameters specific to the exchange API endpoint
1011
1011
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1012
1012
  """
ccxt/btcturk.py CHANGED
@@ -696,7 +696,7 @@ class btcturk(Exchange, ImplicitAPI):
696
696
  fetches information on multiple orders made by the user
697
697
  :param str symbol: unified market symbol of the market orders were made in
698
698
  :param int [since]: the earliest time in ms to fetch orders for
699
- :param int [limit]: the maximum number of orde structures to retrieve
699
+ :param int [limit]: the maximum number of order structures to retrieve
700
700
  :param dict [params]: extra parameters specific to the exchange API endpoint
701
701
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
702
702
  """
ccxt/bybit.py CHANGED
@@ -4140,7 +4140,7 @@ class bybit(Exchange, ImplicitAPI):
4140
4140
  :see: https://bybit-exchange.github.io/docs/v5/order/order-list
4141
4141
  :param str symbol: unified market symbol of the market orders were made in
4142
4142
  :param int [since]: the earliest time in ms to fetch orders for
4143
- :param int [limit]: the maximum number of orde structures to retrieve
4143
+ :param int [limit]: the maximum number of order structures to retrieve
4144
4144
  :param dict [params]: extra parameters specific to the exchange API endpoint
4145
4145
  :param boolean [params.stop]: True if stop order
4146
4146
  :param str [params.type]: market type, ['swap', 'option', 'spot']
@@ -4245,7 +4245,7 @@ class bybit(Exchange, ImplicitAPI):
4245
4245
  :see: https://bybit-exchange.github.io/docs/v5/order/order-list
4246
4246
  :param str symbol: unified market symbol of the market orders were made in
4247
4247
  :param int [since]: the earliest time in ms to fetch orders for
4248
- :param int [limit]: the maximum number of orde structures to retrieve
4248
+ :param int [limit]: the maximum number of order structures to retrieve
4249
4249
  :param dict [params]: extra parameters specific to the exchange API endpoint
4250
4250
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
4251
4251
  """
ccxt/cex.py CHANGED
@@ -1261,7 +1261,7 @@ class cex(Exchange, ImplicitAPI):
1261
1261
  fetches information on multiple orders made by the user
1262
1262
  :param str symbol: unified market symbol of the market orders were made in
1263
1263
  :param int [since]: the earliest time in ms to fetch orders for
1264
- :param int [limit]: the maximum number of orde structures to retrieve
1264
+ :param int [limit]: the maximum number of order structures to retrieve
1265
1265
  :param dict [params]: extra parameters specific to the exchange API endpoint
1266
1266
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1267
1267
  """
ccxt/coinbasepro.py CHANGED
@@ -1083,7 +1083,7 @@ class coinbasepro(Exchange, ImplicitAPI):
1083
1083
  fetches information on multiple orders made by the user
1084
1084
  :param str symbol: unified market symbol of the market orders were made in
1085
1085
  :param int [since]: the earliest time in ms to fetch orders for
1086
- :param int [limit]: the maximum number of orde structures to retrieve
1086
+ :param int [limit]: the maximum number of order structures to retrieve
1087
1087
  :param dict [params]: extra parameters specific to the exchange API endpoint
1088
1088
  :param int [params.until]: the latest time in ms to fetch open orders for
1089
1089
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1132,7 +1132,7 @@ class coinbasepro(Exchange, ImplicitAPI):
1132
1132
  fetches information on multiple closed orders made by the user
1133
1133
  :param str symbol: unified market symbol of the market orders were made in
1134
1134
  :param int [since]: the earliest time in ms to fetch orders for
1135
- :param int [limit]: the maximum number of orde structures to retrieve
1135
+ :param int [limit]: the maximum number of order structures to retrieve
1136
1136
  :param dict [params]: extra parameters specific to the exchange API endpoint
1137
1137
  :param int [params.until]: the latest time in ms to fetch open orders for
1138
1138
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/coinex.py CHANGED
@@ -2989,7 +2989,7 @@ class coinex(Exchange, ImplicitAPI):
2989
2989
  :see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade012_finished_order
2990
2990
  :param str symbol: unified market symbol of the market orders were made in
2991
2991
  :param int [since]: the earliest time in ms to fetch orders for
2992
- :param int [limit]: the maximum number of orde structures to retrieve
2992
+ :param int [limit]: the maximum number of order structures to retrieve
2993
2993
  :param dict [params]: extra parameters specific to the exchange API endpoint
2994
2994
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2995
2995
  """
ccxt/coinlist.py CHANGED
@@ -1179,7 +1179,7 @@ class coinlist(Exchange, ImplicitAPI):
1179
1179
  :see: https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
1180
1180
  :param str symbol: unified market symbol of the market orders were made in
1181
1181
  :param int [since]: the earliest time in ms to fetch orders for
1182
- :param int [limit]: the maximum number of orde structures to retrieve(default 200, max 500)
1182
+ :param int [limit]: the maximum number of order structures to retrieve(default 200, max 500)
1183
1183
  :param dict [params]: extra parameters specific to the exchange API endpoint
1184
1184
  :param int [params.until]: the latest time in ms to fetch entries for
1185
1185
  :param string|str[] [params.status]: the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending'(default ['accepted', 'done', 'canceled', 'rejected', 'pending'])
ccxt/deribit.py CHANGED
@@ -1898,7 +1898,7 @@ class deribit(Exchange, ImplicitAPI):
1898
1898
  fetches information on multiple closed orders made by the user
1899
1899
  :param str symbol: unified market symbol of the market orders were made in
1900
1900
  :param int [since]: the earliest time in ms to fetch orders for
1901
- :param int [limit]: the maximum number of orde structures to retrieve
1901
+ :param int [limit]: the maximum number of order structures to retrieve
1902
1902
  :param dict [params]: extra parameters specific to the exchange API endpoint
1903
1903
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1904
1904
  """