ccxt 4.2.5__tar.gz → 4.2.6__tar.gz

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 (434) hide show
  1. {ccxt-4.2.5/ccxt.egg-info → ccxt-4.2.6}/PKG-INFO +4 -4
  2. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/__init__.py +2 -1
  3. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/__init__.py +2 -1
  4. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/exchange.py +2 -2
  5. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/aiohttp_client.py +9 -2
  6. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/fast_client.py +5 -2
  7. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/future.py +14 -1
  8. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bingx.py +7 -1
  9. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitmex.py +51 -19
  10. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/htx.py +59 -1
  11. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/woo.py +51 -11
  12. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/errors.py +7 -1
  13. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/exchange.py +1 -1
  14. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bingx.py +7 -1
  15. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitmex.py +51 -19
  16. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/htx.py +59 -1
  17. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/__init__.py +1 -1
  18. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/woo.py +51 -11
  19. {ccxt-4.2.5 → ccxt-4.2.6/ccxt.egg-info}/PKG-INFO +4 -4
  20. {ccxt-4.2.5 → ccxt-4.2.6}/package.json +1 -1
  21. {ccxt-4.2.5 → ccxt-4.2.6}/LICENSE.txt +0 -0
  22. {ccxt-4.2.5 → ccxt-4.2.6}/MANIFEST.in +0 -0
  23. {ccxt-4.2.5 → ccxt-4.2.6}/README.rst +0 -0
  24. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/__init__.py +0 -0
  25. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/ace.py +0 -0
  26. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/alpaca.py +0 -0
  27. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/ascendex.py +0 -0
  28. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bequant.py +0 -0
  29. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bigone.py +0 -0
  30. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/binance.py +0 -0
  31. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/binancecoinm.py +0 -0
  32. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/binanceus.py +0 -0
  33. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/binanceusdm.py +0 -0
  34. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bingx.py +0 -0
  35. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bit2c.py +0 -0
  36. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitbank.py +0 -0
  37. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitbay.py +0 -0
  38. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitbns.py +0 -0
  39. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitcoincom.py +0 -0
  40. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitfinex.py +0 -0
  41. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitfinex2.py +0 -0
  42. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitflyer.py +0 -0
  43. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitforex.py +0 -0
  44. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitget.py +0 -0
  45. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bithumb.py +0 -0
  46. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitmart.py +0 -0
  47. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitmex.py +0 -0
  48. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitopro.py +0 -0
  49. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitpanda.py +0 -0
  50. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitrue.py +0 -0
  51. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitso.py +0 -0
  52. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitstamp.py +0 -0
  53. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitteam.py +0 -0
  54. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bitvavo.py +0 -0
  55. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bl3p.py +0 -0
  56. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/blockchaincom.py +0 -0
  57. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/btcalpha.py +0 -0
  58. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/btcbox.py +0 -0
  59. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/btcmarkets.py +0 -0
  60. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/btcturk.py +0 -0
  61. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/bybit.py +0 -0
  62. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/cex.py +0 -0
  63. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinbase.py +0 -0
  64. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinbasepro.py +0 -0
  65. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coincheck.py +0 -0
  66. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinex.py +0 -0
  67. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinlist.py +0 -0
  68. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinmate.py +0 -0
  69. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinone.py +0 -0
  70. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinsph.py +0 -0
  71. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/coinspot.py +0 -0
  72. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/cryptocom.py +0 -0
  73. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/currencycom.py +0 -0
  74. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/delta.py +0 -0
  75. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/deribit.py +0 -0
  76. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/digifinex.py +0 -0
  77. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/exmo.py +0 -0
  78. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/fmfwio.py +0 -0
  79. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/gate.py +0 -0
  80. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/gateio.py +0 -0
  81. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/gemini.py +0 -0
  82. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/hitbtc.py +0 -0
  83. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/hitbtc3.py +0 -0
  84. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/hollaex.py +0 -0
  85. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/htx.py +0 -0
  86. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/huobi.py +0 -0
  87. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/huobijp.py +0 -0
  88. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/idex.py +0 -0
  89. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/independentreserve.py +0 -0
  90. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/indodax.py +0 -0
  91. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/kraken.py +0 -0
  92. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/krakenfutures.py +0 -0
  93. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/kucoin.py +0 -0
  94. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/kucoinfutures.py +0 -0
  95. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/kuna.py +0 -0
  96. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/latoken.py +0 -0
  97. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/lbank.py +0 -0
  98. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/luno.py +0 -0
  99. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/lykke.py +0 -0
  100. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/mercado.py +0 -0
  101. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/mexc.py +0 -0
  102. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/ndax.py +0 -0
  103. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/novadax.py +0 -0
  104. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/oceanex.py +0 -0
  105. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/okcoin.py +0 -0
  106. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/okx.py +0 -0
  107. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/p2b.py +0 -0
  108. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/paymium.py +0 -0
  109. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/phemex.py +0 -0
  110. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/poloniex.py +0 -0
  111. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/poloniexfutures.py +0 -0
  112. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/probit.py +0 -0
  113. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/timex.py +0 -0
  114. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/tokocrypto.py +0 -0
  115. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/upbit.py +0 -0
  116. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/wavesexchange.py +0 -0
  117. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/wazirx.py +0 -0
  118. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/whitebit.py +0 -0
  119. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/woo.py +0 -0
  120. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/yobit.py +0 -0
  121. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/zaif.py +0 -0
  122. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/abstract/zonda.py +0 -0
  123. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/ace.py +0 -0
  124. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/alpaca.py +0 -0
  125. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/ascendex.py +0 -0
  126. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/ace.py +0 -0
  127. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/alpaca.py +0 -0
  128. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/ascendex.py +0 -0
  129. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/__init__.py +0 -0
  130. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/throttler.py +0 -0
  131. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/__init__.py +0 -0
  132. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/cache.py +0 -0
  133. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/client.py +0 -0
  134. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/functions.py +0 -0
  135. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/order_book.py +0 -0
  136. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/base/ws/order_book_side.py +0 -0
  137. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bequant.py +0 -0
  138. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bigone.py +0 -0
  139. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/binance.py +0 -0
  140. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/binancecoinm.py +0 -0
  141. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/binanceus.py +0 -0
  142. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/binanceusdm.py +0 -0
  143. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bit2c.py +0 -0
  144. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitbank.py +0 -0
  145. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitbay.py +0 -0
  146. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitbns.py +0 -0
  147. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitcoincom.py +0 -0
  148. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitfinex.py +0 -0
  149. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitfinex2.py +0 -0
  150. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitflyer.py +0 -0
  151. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitforex.py +0 -0
  152. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitget.py +0 -0
  153. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bithumb.py +0 -0
  154. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitmart.py +0 -0
  155. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitopro.py +0 -0
  156. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitpanda.py +0 -0
  157. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitrue.py +0 -0
  158. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitso.py +0 -0
  159. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitstamp.py +0 -0
  160. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitteam.py +0 -0
  161. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bitvavo.py +0 -0
  162. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bl3p.py +0 -0
  163. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/blockchaincom.py +0 -0
  164. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/btcalpha.py +0 -0
  165. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/btcbox.py +0 -0
  166. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/btcmarkets.py +0 -0
  167. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/btcturk.py +0 -0
  168. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/bybit.py +0 -0
  169. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/cex.py +0 -0
  170. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinbase.py +0 -0
  171. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinbasepro.py +0 -0
  172. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coincheck.py +0 -0
  173. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinex.py +0 -0
  174. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinlist.py +0 -0
  175. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinmate.py +0 -0
  176. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinone.py +0 -0
  177. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinsph.py +0 -0
  178. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/coinspot.py +0 -0
  179. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/cryptocom.py +0 -0
  180. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/currencycom.py +0 -0
  181. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/delta.py +0 -0
  182. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/deribit.py +0 -0
  183. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/digifinex.py +0 -0
  184. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/exmo.py +0 -0
  185. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/flowbtc.py +0 -0
  186. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/fmfwio.py +0 -0
  187. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/gate.py +0 -0
  188. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/gateio.py +0 -0
  189. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/gemini.py +0 -0
  190. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/hitbtc.py +0 -0
  191. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/hitbtc3.py +0 -0
  192. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/hollaex.py +0 -0
  193. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/huobi.py +0 -0
  194. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/huobijp.py +0 -0
  195. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/idex.py +0 -0
  196. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/independentreserve.py +0 -0
  197. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/indodax.py +0 -0
  198. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/kraken.py +0 -0
  199. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/krakenfutures.py +0 -0
  200. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/kucoin.py +0 -0
  201. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/kucoinfutures.py +0 -0
  202. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/kuna.py +0 -0
  203. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/latoken.py +0 -0
  204. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/lbank.py +0 -0
  205. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/luno.py +0 -0
  206. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/lykke.py +0 -0
  207. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/mercado.py +0 -0
  208. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/mexc.py +0 -0
  209. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/ndax.py +0 -0
  210. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/novadax.py +0 -0
  211. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/oceanex.py +0 -0
  212. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/okcoin.py +0 -0
  213. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/okx.py +0 -0
  214. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/p2b.py +0 -0
  215. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/paymium.py +0 -0
  216. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/phemex.py +0 -0
  217. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/poloniex.py +0 -0
  218. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/poloniexfutures.py +0 -0
  219. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/probit.py +0 -0
  220. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/timex.py +0 -0
  221. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/tokocrypto.py +0 -0
  222. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/upbit.py +0 -0
  223. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/wavesexchange.py +0 -0
  224. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/wazirx.py +0 -0
  225. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/whitebit.py +0 -0
  226. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/yobit.py +0 -0
  227. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/zaif.py +0 -0
  228. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/async_support/zonda.py +0 -0
  229. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/__init__.py +0 -0
  230. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/decimal_to_precision.py +0 -0
  231. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/precise.py +0 -0
  232. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/base/types.py +0 -0
  233. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bequant.py +0 -0
  234. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bigone.py +0 -0
  235. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/binance.py +0 -0
  236. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/binancecoinm.py +0 -0
  237. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/binanceus.py +0 -0
  238. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/binanceusdm.py +0 -0
  239. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bit2c.py +0 -0
  240. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitbank.py +0 -0
  241. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitbay.py +0 -0
  242. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitbns.py +0 -0
  243. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitcoincom.py +0 -0
  244. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitfinex.py +0 -0
  245. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitfinex2.py +0 -0
  246. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitflyer.py +0 -0
  247. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitforex.py +0 -0
  248. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitget.py +0 -0
  249. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bithumb.py +0 -0
  250. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitmart.py +0 -0
  251. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitopro.py +0 -0
  252. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitpanda.py +0 -0
  253. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitrue.py +0 -0
  254. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitso.py +0 -0
  255. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitstamp.py +0 -0
  256. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitteam.py +0 -0
  257. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bitvavo.py +0 -0
  258. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bl3p.py +0 -0
  259. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/blockchaincom.py +0 -0
  260. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/btcalpha.py +0 -0
  261. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/btcbox.py +0 -0
  262. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/btcmarkets.py +0 -0
  263. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/btcturk.py +0 -0
  264. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/bybit.py +0 -0
  265. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/cex.py +0 -0
  266. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinbase.py +0 -0
  267. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinbasepro.py +0 -0
  268. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coincheck.py +0 -0
  269. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinex.py +0 -0
  270. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinlist.py +0 -0
  271. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinmate.py +0 -0
  272. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinone.py +0 -0
  273. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinsph.py +0 -0
  274. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/coinspot.py +0 -0
  275. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/cryptocom.py +0 -0
  276. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/currencycom.py +0 -0
  277. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/delta.py +0 -0
  278. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/deribit.py +0 -0
  279. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/digifinex.py +0 -0
  280. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/exmo.py +0 -0
  281. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/flowbtc.py +0 -0
  282. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/fmfwio.py +0 -0
  283. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/gate.py +0 -0
  284. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/gateio.py +0 -0
  285. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/gemini.py +0 -0
  286. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/hitbtc.py +0 -0
  287. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/hitbtc3.py +0 -0
  288. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/hollaex.py +0 -0
  289. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/huobi.py +0 -0
  290. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/huobijp.py +0 -0
  291. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/idex.py +0 -0
  292. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/independentreserve.py +0 -0
  293. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/indodax.py +0 -0
  294. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/kraken.py +0 -0
  295. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/krakenfutures.py +0 -0
  296. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/kucoin.py +0 -0
  297. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/kucoinfutures.py +0 -0
  298. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/kuna.py +0 -0
  299. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/latoken.py +0 -0
  300. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/lbank.py +0 -0
  301. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/luno.py +0 -0
  302. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/lykke.py +0 -0
  303. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/mercado.py +0 -0
  304. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/mexc.py +0 -0
  305. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/ndax.py +0 -0
  306. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/novadax.py +0 -0
  307. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/oceanex.py +0 -0
  308. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/okcoin.py +0 -0
  309. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/okx.py +0 -0
  310. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/p2b.py +0 -0
  311. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/paymium.py +0 -0
  312. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/phemex.py +0 -0
  313. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/poloniex.py +0 -0
  314. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/poloniexfutures.py +0 -0
  315. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/alpaca.py +0 -0
  316. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/ascendex.py +0 -0
  317. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bequant.py +0 -0
  318. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/binance.py +0 -0
  319. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/binancecoinm.py +0 -0
  320. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/binanceus.py +0 -0
  321. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/binanceusdm.py +0 -0
  322. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bingx.py +0 -0
  323. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitcoincom.py +0 -0
  324. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitfinex.py +0 -0
  325. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitfinex2.py +0 -0
  326. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitget.py +0 -0
  327. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitmart.py +0 -0
  328. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitmex.py +0 -0
  329. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitopro.py +0 -0
  330. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitpanda.py +0 -0
  331. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitrue.py +0 -0
  332. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitstamp.py +0 -0
  333. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bitvavo.py +0 -0
  334. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/blockchaincom.py +0 -0
  335. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/bybit.py +0 -0
  336. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/cex.py +0 -0
  337. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/coinbase.py +0 -0
  338. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/coinbasepro.py +0 -0
  339. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/coinex.py +0 -0
  340. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/cryptocom.py +0 -0
  341. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/currencycom.py +0 -0
  342. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/deribit.py +0 -0
  343. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/exmo.py +0 -0
  344. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/gate.py +0 -0
  345. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/gateio.py +0 -0
  346. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/gemini.py +0 -0
  347. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/hitbtc.py +0 -0
  348. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/hollaex.py +0 -0
  349. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/htx.py +0 -0
  350. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/huobi.py +0 -0
  351. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/huobijp.py +0 -0
  352. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/idex.py +0 -0
  353. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/independentreserve.py +0 -0
  354. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/kraken.py +0 -0
  355. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/krakenfutures.py +0 -0
  356. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/kucoin.py +0 -0
  357. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/kucoinfutures.py +0 -0
  358. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/luno.py +0 -0
  359. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/mexc.py +0 -0
  360. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/ndax.py +0 -0
  361. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/okcoin.py +0 -0
  362. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/okx.py +0 -0
  363. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/phemex.py +0 -0
  364. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/poloniex.py +0 -0
  365. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/poloniexfutures.py +0 -0
  366. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/probit.py +0 -0
  367. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/upbit.py +0 -0
  368. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/wazirx.py +0 -0
  369. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/whitebit.py +0 -0
  370. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/pro/woo.py +0 -0
  371. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/probit.py +0 -0
  372. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/__init__.py +0 -0
  373. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
  374. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/_version.py +0 -0
  375. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/curves.py +0 -0
  376. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/der.py +0 -0
  377. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
  378. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
  379. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/keys.py +0 -0
  380. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
  381. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
  382. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/ecdsa/util.py +0 -0
  383. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/keccak/__init__.py +0 -0
  384. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/static_dependencies/keccak/keccak.py +0 -0
  385. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/__init__.py +0 -0
  386. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/__init__.py +0 -0
  387. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_account.py +0 -0
  388. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_balance.py +0 -0
  389. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_borrow_interest.py +0 -0
  390. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_borrow_rate.py +0 -0
  391. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_calculate_fee.py +0 -0
  392. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_crypto.py +0 -0
  393. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_currency.py +0 -0
  394. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_datetime.py +0 -0
  395. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_decimal_to_precision.py +0 -0
  396. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_deep_extend.py +0 -0
  397. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_deposit_withdrawal.py +0 -0
  398. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_exchange_datetime_functions.py +0 -0
  399. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_funding_rate_history.py +0 -0
  400. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_ledger_entry.py +0 -0
  401. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_ledger_item.py +0 -0
  402. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_leverage_tier.py +0 -0
  403. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_margin_modification.py +0 -0
  404. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_market.py +0 -0
  405. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_number.py +0 -0
  406. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_ohlcv.py +0 -0
  407. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_open_interest.py +0 -0
  408. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_order.py +0 -0
  409. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_order_book.py +0 -0
  410. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_position.py +0 -0
  411. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_shared_methods.py +0 -0
  412. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_status.py +0 -0
  413. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_throttle.py +0 -0
  414. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_ticker.py +0 -0
  415. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_trade.py +0 -0
  416. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_trading_fee.py +0 -0
  417. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/base/test_transaction.py +0 -0
  418. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/test_async.py +0 -0
  419. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/test/test_sync.py +0 -0
  420. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/timex.py +0 -0
  421. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/tokocrypto.py +0 -0
  422. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/upbit.py +0 -0
  423. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/wavesexchange.py +0 -0
  424. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/wazirx.py +0 -0
  425. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/whitebit.py +0 -0
  426. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/yobit.py +0 -0
  427. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/zaif.py +0 -0
  428. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt/zonda.py +0 -0
  429. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt.egg-info/SOURCES.txt +0 -0
  430. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt.egg-info/dependency_links.txt +0 -0
  431. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt.egg-info/requires.txt +0 -0
  432. {ccxt-4.2.5 → ccxt-4.2.6}/ccxt.egg-info/top_level.txt +0 -0
  433. {ccxt-4.2.5 → ccxt-4.2.6}/setup.cfg +0 -0
  434. {ccxt-4.2.5 → ccxt-4.2.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 4.2.5
3
+ Version: 4.2.6
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
@@ -222,13 +222,13 @@ Description: # CCXT – CryptoCurrency eXchange Trading Library
222
222
 
223
223
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
224
224
 
225
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.5/dist/ccxt.browser.js
226
- * unpkg: https://unpkg.com/ccxt@4.2.5/dist/ccxt.browser.js
225
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.6/dist/ccxt.browser.js
226
+ * unpkg: https://unpkg.com/ccxt@4.2.6/dist/ccxt.browser.js
227
227
 
228
228
  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.
229
229
 
230
230
  ```HTML
231
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.5/dist/ccxt.browser.js"></script>
231
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.6/dist/ccxt.browser.js"></script>
232
232
  ```
233
233
 
234
234
  Creates a global `ccxt` object:
@@ -22,7 +22,7 @@
22
22
 
23
23
  # ----------------------------------------------------------------------------
24
24
 
25
- __version__ = '4.2.5'
25
+ __version__ = '4.2.6'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
@@ -76,6 +76,7 @@ from ccxt.base.errors import ExchangeNotAvailable # noqa: F4
76
76
  from ccxt.base.errors import OnMaintenance # noqa: F401
77
77
  from ccxt.base.errors import InvalidNonce # noqa: F401
78
78
  from ccxt.base.errors import RequestTimeout # noqa: F401
79
+ from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
79
80
  from ccxt.base.errors import error_hierarchy # noqa: F401
80
81
 
81
82
  from ccxt.ace import ace # noqa: F401
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.2.5'
7
+ __version__ = '4.2.6'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -55,6 +55,7 @@ from ccxt.base.errors import ExchangeNotAvailable # noqa: F4
55
55
  from ccxt.base.errors import OnMaintenance # noqa: F401
56
56
  from ccxt.base.errors import InvalidNonce # noqa: F401
57
57
  from ccxt.base.errors import RequestTimeout # noqa: F401
58
+ from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
58
59
  from ccxt.base.errors import error_hierarchy # noqa: F401
59
60
 
60
61
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.2.5'
5
+ __version__ = '4.2.6'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -488,7 +488,7 @@ class Exchange(BaseExchange):
488
488
 
489
489
  def on_close(self, client, error):
490
490
  if client.error:
491
- # connection closed due to an error
491
+ # connection closed by the user or due to an error
492
492
  pass
493
493
  else:
494
494
  # server disconnected a working connection
@@ -6,7 +6,7 @@ from aiohttp import WSMsgType
6
6
  from .functions import milliseconds, iso8601, is_json_encoded_object
7
7
  from ccxt.async_support.base.ws.client import Client
8
8
  from ccxt.async_support.base.ws.functions import gunzip, inflate
9
- from ccxt import NetworkError, RequestTimeout
9
+ from ccxt import NetworkError, RequestTimeout, ExchangeClosedByUser
10
10
 
11
11
 
12
12
  class AiohttpClient(Client):
@@ -92,7 +92,14 @@ class AiohttpClient(Client):
92
92
  if self.ping_looper:
93
93
  self.ping_looper.cancel()
94
94
  if self.receive_looper:
95
- self.receive_looper.cancel()
95
+ self.receive_looper.cancel() # cancel all pending futures stored in self.futures
96
+ for key in self.futures:
97
+ future = self.futures[key]
98
+ if not future.done():
99
+ if future.is_race_future:
100
+ future.cancel() # this is an "internal" future so we want to cancel it silently
101
+ else:
102
+ future.reject(ExchangeClosedByUser('Connection closed by the user'))
96
103
 
97
104
  async def ping_loop(self):
98
105
  if self.verbose:
@@ -3,7 +3,6 @@
3
3
  import asyncio
4
4
  import socket
5
5
  import collections
6
- from ccxt import NetworkError
7
6
  from ccxt.async_support.base.ws.aiohttp_client import AiohttpClient
8
7
 
9
8
 
@@ -36,7 +35,10 @@ class FastClient(AiohttpClient):
36
35
  self.stack.append(message)
37
36
 
38
37
  def feed_eof():
39
- self.on_error(NetworkError(1006))
38
+ if self._close_code == 1000: # OK close
39
+ self.on_close(1000)
40
+ else:
41
+ self.on_error(1006) # ABNORMAL_CLOSURE
40
42
 
41
43
  def wrapper(func):
42
44
  def parse_frame(buf):
@@ -56,6 +58,7 @@ class FastClient(AiohttpClient):
56
58
  try:
57
59
  await _self._writer.close(code, message)
58
60
  _self._response.close()
61
+ self._close_code = 1000
59
62
  except asyncio.CancelledError:
60
63
  _self._response.close()
61
64
  _self._close_code = 1006
@@ -1,8 +1,11 @@
1
1
  import asyncio
2
+ from ccxt import ExchangeClosedByUser
2
3
 
3
4
 
4
5
  class Future(asyncio.Future):
5
6
 
7
+ is_race_future = False
8
+
6
9
  def resolve(self, result=None):
7
10
  if not self.done():
8
11
  self.set_result(result)
@@ -14,6 +17,8 @@ class Future(asyncio.Future):
14
17
  @classmethod
15
18
  def race(cls, futures):
16
19
  future = Future()
20
+ for f in futures:
21
+ f.is_race_future = True
17
22
  coro = asyncio.wait(futures, return_when=asyncio.FIRST_COMPLETED)
18
23
  task = asyncio.create_task(coro)
19
24
 
@@ -24,6 +29,8 @@ class Future(asyncio.Future):
24
29
  # check for exceptions
25
30
  exceptions = []
26
31
  for f in complete:
32
+ if f._state == 'CANCELLED':
33
+ continue # was canceled internally
27
34
  err = f.exception()
28
35
  if err:
29
36
  exceptions.append(err)
@@ -33,7 +40,13 @@ class Future(asyncio.Future):
33
40
  return
34
41
  # else return first result
35
42
  else:
36
- first_result = list(complete)[0].result()
43
+ futures_list = list(complete)
44
+ are_all_canceled = all(f._state == 'CANCELLED' for f in futures_list)
45
+ if are_all_canceled and future._state == 'PENDING':
46
+ future.set_exception(ExchangeClosedByUser('Connection closed by the user'))
47
+ return
48
+ first = futures_list[0]
49
+ first_result = first.result()
37
50
  future.set_result(first_result)
38
51
  else:
39
52
  future.set_exception(exception)
@@ -2107,6 +2107,7 @@ class bingx(Exchange, ImplicitAPI):
2107
2107
  :param str id: order id
2108
2108
  :param str symbol: unified symbol of the market the order was made in
2109
2109
  :param dict [params]: extra parameters specific to the exchange API endpoint
2110
+ :param str [params.clientOrderId]: a unique id for the order
2110
2111
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
2111
2112
  """
2112
2113
  if symbol is None:
@@ -2115,8 +2116,13 @@ class bingx(Exchange, ImplicitAPI):
2115
2116
  market = self.market(symbol)
2116
2117
  request = {
2117
2118
  'symbol': market['id'],
2118
- 'orderId': id,
2119
2119
  }
2120
+ clientOrderId = self.safe_string_2(params, 'clientOrderId', 'clientOrderID')
2121
+ params = self.omit(params, ['clientOrderId'])
2122
+ if clientOrderId is not None:
2123
+ request['clientOrderID'] = clientOrderId
2124
+ else:
2125
+ request['orderId'] = id
2120
2126
  response = None
2121
2127
  marketType, query = self.handle_market_type_and_params('cancelOrder', market, params)
2122
2128
  if marketType == 'spot':
@@ -1733,6 +1733,7 @@ class bitmex(Exchange, ImplicitAPI):
1733
1733
  :param dict [params]: extra parameters specific to the exchange API endpoint
1734
1734
  :param dict [params.triggerPrice]: the price at which a trigger order is triggered at
1735
1735
  :param dict [params.triggerDirection]: the direction whenever the trigger happens with relation to price - 'above' or 'below'
1736
+ :param float [params.trailingAmount]: the quote amount to trail away from the current market price
1736
1737
  :returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
1737
1738
  """
1738
1739
  await self.load_markets()
@@ -1740,7 +1741,7 @@ class bitmex(Exchange, ImplicitAPI):
1740
1741
  orderType = self.capitalize(type)
1741
1742
  reduceOnly = self.safe_value(params, 'reduceOnly')
1742
1743
  if reduceOnly is not None:
1743
- if (market['type'] != 'swap') and (market['type'] != 'future'):
1744
+ if (not market['swap']) and (not market['future']):
1744
1745
  raise InvalidOrder(self.id + ' createOrder() does not support reduceOnly for ' + market['type'] + ' orders, reduceOnly orders are supported for swap and future markets only')
1745
1746
  brokerId = self.safe_string(self.options, 'brokerId', 'CCXT')
1746
1747
  qty = self.parse_to_int(self.amount_to_precision(symbol, amount))
@@ -1751,35 +1752,42 @@ class bitmex(Exchange, ImplicitAPI):
1751
1752
  'ordType': orderType,
1752
1753
  'text': brokerId,
1753
1754
  }
1754
- customTriggerType = (orderType == 'Stop') or (orderType == 'StopLimit') or (orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched')
1755
1755
  # support for unified trigger format
1756
1756
  triggerPrice = self.safe_number_n(params, ['triggerPrice', 'stopPx', 'stopPrice'])
1757
- if (triggerPrice is not None) and not customTriggerType:
1758
- request['stopPx'] = float(self.price_to_precision(symbol, triggerPrice))
1757
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'pegOffsetValue')
1758
+ isTriggerOrder = triggerPrice is not None
1759
+ isTrailingAmountOrder = trailingAmount is not None
1760
+ if isTriggerOrder or isTrailingAmountOrder:
1759
1761
  triggerDirection = self.safe_string(params, 'triggerDirection')
1760
- params = self.omit(params, ['triggerPrice', 'stopPrice', 'stopPx', 'triggerDirection'])
1761
1762
  triggerAbove = (triggerDirection == 'above')
1762
- self.check_required_argument('createOrder', triggerDirection, 'triggerDirection', ['above', 'below'])
1763
- self.check_required_argument('createOrder', side, 'side', ['buy', 'sell'])
1763
+ if (type == 'limit') or (type == 'market'):
1764
+ self.check_required_argument('createOrder', triggerDirection, 'triggerDirection', ['above', 'below'])
1764
1765
  if type == 'limit':
1765
- request['price'] = float(self.price_to_precision(symbol, price))
1766
1766
  if side == 'buy':
1767
- request['ordType'] = 'StopLimit' if triggerAbove else 'LimitIfTouched'
1767
+ orderType = 'StopLimit' if triggerAbove else 'LimitIfTouched'
1768
1768
  else:
1769
- request['ordType'] = 'LimitIfTouched' if triggerAbove else 'StopLimit'
1769
+ orderType = 'LimitIfTouched' if triggerAbove else 'StopLimit'
1770
1770
  elif type == 'market':
1771
1771
  if side == 'buy':
1772
- request['ordType'] = 'Stop' if triggerAbove else 'MarketIfTouched'
1772
+ orderType = 'Stop' if triggerAbove else 'MarketIfTouched'
1773
1773
  else:
1774
- request['ordType'] = 'MarketIfTouched' if triggerAbove else 'Stop'
1775
- elif customTriggerType:
1776
- if triggerPrice is None:
1777
- # if exchange specific trigger types were provided
1778
- raise ArgumentsRequired(self.id + ' createOrder() requires a triggerPrice(stopPx|stopPrice) parameter for the ' + orderType + ' order type')
1779
- params = self.omit(params, ['triggerPrice', 'stopPrice', 'stopPx'])
1780
- request['stopPx'] = float(self.price_to_precision(symbol, triggerPrice))
1774
+ orderType = 'MarketIfTouched' if triggerAbove else 'Stop'
1775
+ if isTrailingAmountOrder:
1776
+ isStopSellOrder = (side == 'sell') and ((orderType == 'Stop') or (orderType == 'StopLimit'))
1777
+ isBuyIfTouchedOrder = (side == 'buy') and ((orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched'))
1778
+ if isStopSellOrder or isBuyIfTouchedOrder:
1779
+ trailingAmount = '-' + trailingAmount
1780
+ request['pegOffsetValue'] = self.parse_to_numeric(trailingAmount)
1781
+ request['pegPriceType'] = 'TrailingStopPeg'
1782
+ else:
1783
+ if triggerPrice is None:
1784
+ # if exchange specific trigger types were provided
1785
+ raise ArgumentsRequired(self.id + ' createOrder() requires a triggerPrice(stopPx|stopPrice) parameter for the ' + orderType + ' order type')
1786
+ request['stopPx'] = self.parse_to_numeric(self.price_to_precision(symbol, triggerPrice))
1787
+ request['ordType'] = orderType
1788
+ params = self.omit(params, ['triggerPrice', 'stopPrice', 'stopPx', 'triggerDirection', 'trailingAmount'])
1781
1789
  if (orderType == 'Limit') or (orderType == 'StopLimit') or (orderType == 'LimitIfTouched'):
1782
- request['price'] = float(self.price_to_precision(symbol, price))
1790
+ request['price'] = self.parse_to_numeric(self.price_to_precision(symbol, price))
1783
1791
  clientOrderId = self.safe_string_2(params, 'clOrdID', 'clientOrderId')
1784
1792
  if clientOrderId is not None:
1785
1793
  request['clOrdID'] = clientOrderId
@@ -1790,6 +1798,30 @@ class bitmex(Exchange, ImplicitAPI):
1790
1798
  async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
1791
1799
  await self.load_markets()
1792
1800
  request = {}
1801
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'pegOffsetValue')
1802
+ isTrailingAmountOrder = trailingAmount is not None
1803
+ if isTrailingAmountOrder:
1804
+ triggerDirection = self.safe_string(params, 'triggerDirection')
1805
+ triggerAbove = (triggerDirection == 'above')
1806
+ if (type == 'limit') or (type == 'market'):
1807
+ self.check_required_argument('createOrder', triggerDirection, 'triggerDirection', ['above', 'below'])
1808
+ orderType = None
1809
+ if type == 'limit':
1810
+ if side == 'buy':
1811
+ orderType = 'StopLimit' if triggerAbove else 'LimitIfTouched'
1812
+ else:
1813
+ orderType = 'LimitIfTouched' if triggerAbove else 'StopLimit'
1814
+ elif type == 'market':
1815
+ if side == 'buy':
1816
+ orderType = 'Stop' if triggerAbove else 'MarketIfTouched'
1817
+ else:
1818
+ orderType = 'MarketIfTouched' if triggerAbove else 'Stop'
1819
+ isStopSellOrder = (side == 'sell') and ((orderType == 'Stop') or (orderType == 'StopLimit'))
1820
+ isBuyIfTouchedOrder = (side == 'buy') and ((orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched'))
1821
+ if isStopSellOrder or isBuyIfTouchedOrder:
1822
+ trailingAmount = '-' + trailingAmount
1823
+ request['pegOffsetValue'] = self.parse_to_numeric(trailingAmount)
1824
+ params = self.omit(params, ['triggerDirection', 'trailingAmount'])
1793
1825
  origClOrdID = self.safe_string_2(params, 'origClOrdID', 'clientOrderId')
1794
1826
  if origClOrdID is not None:
1795
1827
  request['origClOrdID'] = origClOrdID
@@ -139,7 +139,7 @@ class htx(Exchange, ImplicitAPI):
139
139
  'repayIsolatedMargin': True,
140
140
  'setLeverage': True,
141
141
  'setMarginMode': False,
142
- 'setPositionMode': False,
142
+ 'setPositionMode': True,
143
143
  'signIn': None,
144
144
  'transfer': True,
145
145
  'withdraw': True,
@@ -8216,3 +8216,61 @@ class htx(Exchange, ImplicitAPI):
8216
8216
  'timestamp': timestamp,
8217
8217
  'datetime': self.iso8601(timestamp),
8218
8218
  })
8219
+
8220
+ async def set_position_mode(self, hedged, symbol: Str = None, params={}):
8221
+ """
8222
+ set hedged to True or False
8223
+ :see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-switch-position-mode
8224
+ :see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-switch-position-mode
8225
+ :param bool hedged: set to True to for hedged mode, must be set separately for each market in isolated margin mode, only valid for linear markets
8226
+ :param str [symbol]: unified market symbol, required for isolated margin mode
8227
+ :param dict [params]: extra parameters specific to the exchange API endpoint
8228
+ :param str [params.marginMode]: "cross"(default) or "isolated"
8229
+ :returns dict: response from the exchange
8230
+ """
8231
+ await self.load_markets()
8232
+ posMode = 'dual_side' if hedged else 'single_side'
8233
+ market = None
8234
+ if symbol is not None:
8235
+ market = self.market(symbol)
8236
+ marginMode = None
8237
+ marginMode, params = self.handle_margin_mode_and_params('setPositionMode', params, 'cross')
8238
+ request = {
8239
+ 'position_mode': posMode,
8240
+ }
8241
+ response = None
8242
+ if (market is not None) and (market['inverse']):
8243
+ raise BadRequest(self.id + ' setPositionMode can only be used for linear markets')
8244
+ if marginMode == 'isolated':
8245
+ if symbol is None:
8246
+ raise ArgumentsRequired(self.id + ' setPositionMode requires a symbol argument for isolated margin mode')
8247
+ request['margin_account'] = market['id']
8248
+ response = await self.contractPrivatePostLinearSwapApiV1SwapSwitchPositionMode(self.extend(request, params))
8249
+ #
8250
+ # {
8251
+ # "status": "ok",
8252
+ # "data": [
8253
+ # {
8254
+ # "margin_account": "BTC-USDT",
8255
+ # "position_mode": "single_side"
8256
+ # }
8257
+ # ],
8258
+ # "ts": 1566899973811
8259
+ # }
8260
+ #
8261
+ else:
8262
+ request['margin_account'] = 'USDT'
8263
+ response = await self.contractPrivatePostLinearSwapApiV1SwapCrossSwitchPositionMode(self.extend(request, params))
8264
+ #
8265
+ # {
8266
+ # "status": "ok",
8267
+ # "data": [
8268
+ # {
8269
+ # "margin_account": "USDT",
8270
+ # "position_mode": "single_side"
8271
+ # }
8272
+ # ],
8273
+ # "ts": 1566899973811
8274
+ # }
8275
+ #
8276
+ return response
@@ -750,9 +750,9 @@ class woo(Exchange, ImplicitAPI):
750
750
 
751
751
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
752
752
  """
753
+ create a trade order
753
754
  :see: https://docs.woo.org/#send-order
754
755
  :see: https://docs.woo.org/#send-algo-order
755
- create a trade order
756
756
  :param str symbol: unified symbol of the market to create an order in
757
757
  :param str type: 'market' or 'limit'
758
758
  :param str side: 'buy' or 'sell'
@@ -766,6 +766,9 @@ class woo(Exchange, ImplicitAPI):
766
766
  :param float [params.stopLoss.triggerPrice]: stop loss trigger price
767
767
  :param float [params.algoType]: 'STOP'or 'TRAILING_STOP' or 'OCO' or 'CLOSE_POSITION'
768
768
  :param float [params.cost]: *spot market buy only* the quote quantity that can be used alternative for the amount
769
+ :param str [params.trailingAmount]: the quote amount to trail away from the current market price
770
+ :param str [params.trailingPercent]: the percent to trail away from the current market price
771
+ :param str [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
769
772
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
770
773
  """
771
774
  reduceOnly = self.safe_value_2(params, 'reduceOnly', 'reduce_only')
@@ -782,7 +785,13 @@ class woo(Exchange, ImplicitAPI):
782
785
  stopLoss = self.safe_value(params, 'stopLoss')
783
786
  takeProfit = self.safe_value(params, 'takeProfit')
784
787
  algoType = self.safe_string(params, 'algoType')
785
- isStop = stopPrice is not None or stopLoss is not None or takeProfit is not None or (self.safe_value(params, 'childOrders') is not None)
788
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activatedPrice', price)
789
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'callbackValue')
790
+ trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
791
+ isTrailingAmountOrder = trailingAmount is not None
792
+ isTrailingPercentOrder = trailingPercent is not None
793
+ isTrailing = isTrailingAmountOrder or isTrailingPercentOrder
794
+ isStop = isTrailing or stopPrice is not None or stopLoss is not None or takeProfit is not None or (self.safe_value(params, 'childOrders') is not None)
786
795
  isMarket = orderType == 'MARKET'
787
796
  timeInForce = self.safe_string_lower(params, 'timeInForce')
788
797
  postOnly = self.is_post_only(isMarket, None, params)
@@ -831,7 +840,17 @@ class woo(Exchange, ImplicitAPI):
831
840
  clientOrderId = self.safe_string_n(params, ['clOrdID', 'clientOrderId', 'client_order_id'])
832
841
  if clientOrderId is not None:
833
842
  request[clientOrderIdKey] = clientOrderId
834
- if stopPrice is not None:
843
+ if isTrailing:
844
+ if trailingTriggerPrice is None:
845
+ raise ArgumentsRequired(self.id + ' createOrder() requires a trailingTriggerPrice parameter for trailing orders')
846
+ request['activatedPrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
847
+ request['algoType'] = 'TRAILING_STOP'
848
+ if isTrailingAmountOrder:
849
+ request['callbackValue'] = trailingAmount
850
+ elif isTrailingPercentOrder:
851
+ convertedTrailingPercent = Precise.string_div(trailingPercent, '100')
852
+ request['callbackRate'] = convertedTrailingPercent
853
+ elif stopPrice is not None:
835
854
  if algoType != 'TRAILING_STOP':
836
855
  request['triggerPrice'] = self.price_to_precision(symbol, stopPrice)
837
856
  request['algoType'] = 'STOP'
@@ -865,7 +884,7 @@ class woo(Exchange, ImplicitAPI):
865
884
  }
866
885
  outterOrder['childOrders'].append(takeProfitOrder)
867
886
  request['childOrders'] = [outterOrder]
868
- params = self.omit(params, ['clOrdID', 'clientOrderId', 'client_order_id', 'postOnly', 'timeInForce', 'stopPrice', 'triggerPrice', 'stopLoss', 'takeProfit'])
887
+ params = self.omit(params, ['clOrdID', 'clientOrderId', 'client_order_id', 'postOnly', 'timeInForce', 'stopPrice', 'triggerPrice', 'stopLoss', 'takeProfit', 'trailingPercent', 'trailingAmount', 'trailingTriggerPrice'])
869
888
  response = None
870
889
  if isStop:
871
890
  response = await self.v3PrivatePostAlgoOrder(self.extend(request, params))
@@ -906,11 +925,11 @@ class woo(Exchange, ImplicitAPI):
906
925
 
907
926
  async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
908
927
  """
928
+ edit a trade order
909
929
  :see: https://docs.woo.org/#edit-order
910
930
  :see: https://docs.woo.org/#edit-order-by-client_order_id
911
931
  :see: https://docs.woo.org/#edit-algo-order
912
932
  :see: https://docs.woo.org/#edit-algo-order-by-client_order_id
913
- edit a trade order
914
933
  :param str id: order id
915
934
  :param str symbol: unified symbol of the market to create an order in
916
935
  :param str type: 'market' or 'limit'
@@ -921,6 +940,9 @@ class woo(Exchange, ImplicitAPI):
921
940
  :param float [params.triggerPrice]: The price a trigger order is triggered at
922
941
  :param float [params.stopLossPrice]: price to trigger stop-loss orders
923
942
  :param float [params.takeProfitPrice]: price to trigger take-profit orders
943
+ :param str [params.trailingAmount]: the quote amount to trail away from the current market price
944
+ :param str [params.trailingPercent]: the percent to trail away from the current market price
945
+ :param str [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
924
946
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
925
947
  """
926
948
  await self.load_markets()
@@ -939,8 +961,22 @@ class woo(Exchange, ImplicitAPI):
939
961
  stopPrice = self.safe_number_n(params, ['triggerPrice', 'stopPrice', 'takeProfitPrice', 'stopLossPrice'])
940
962
  if stopPrice is not None:
941
963
  request['triggerPrice'] = self.price_to_precision(symbol, stopPrice)
942
- params = self.omit(params, ['clOrdID', 'clientOrderId', 'client_order_id', 'stopPrice', 'triggerPrice', 'takeProfitPrice', 'stopLossPrice'])
943
- isStop = (stopPrice is not None) or (self.safe_value(params, 'childOrders') is not None)
964
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activatedPrice', price)
965
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'callbackValue')
966
+ trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
967
+ isTrailingAmountOrder = trailingAmount is not None
968
+ isTrailingPercentOrder = trailingPercent is not None
969
+ isTrailing = isTrailingAmountOrder or isTrailingPercentOrder
970
+ if isTrailing:
971
+ if trailingTriggerPrice is not None:
972
+ request['activatedPrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
973
+ if isTrailingAmountOrder:
974
+ request['callbackValue'] = trailingAmount
975
+ elif isTrailingPercentOrder:
976
+ convertedTrailingPercent = Precise.string_div(trailingPercent, '100')
977
+ request['callbackRate'] = convertedTrailingPercent
978
+ params = self.omit(params, ['clOrdID', 'clientOrderId', 'client_order_id', 'stopPrice', 'triggerPrice', 'takeProfitPrice', 'stopLossPrice', 'trailingTriggerPrice', 'trailingAmount', 'trailingPercent'])
979
+ isStop = isTrailing or (stopPrice is not None) or (self.safe_value(params, 'childOrders') is not None)
944
980
  response = None
945
981
  if isByClientOrder:
946
982
  request['client_order_id'] = clientOrderIdExchangeSpecific
@@ -1113,9 +1149,9 @@ class woo(Exchange, ImplicitAPI):
1113
1149
 
1114
1150
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1115
1151
  """
1152
+ fetches information on multiple orders made by the user
1116
1153
  :see: https://docs.woo.org/#get-orders
1117
1154
  :see: https://docs.woo.org/#get-algo-orders
1118
- fetches information on multiple orders made by the user
1119
1155
  :param str symbol: unified market symbol of the market orders were made in
1120
1156
  :param int [since]: the earliest time in ms to fetch orders for
1121
1157
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1123,25 +1159,29 @@ class woo(Exchange, ImplicitAPI):
1123
1159
  :param boolean [params.stop]: whether the order is a stop/algo order
1124
1160
  :param boolean [params.isTriggered]: whether the order has been triggered(False by default)
1125
1161
  :param str [params.side]: 'buy' or 'sell'
1162
+ :param boolean [params.trailing]: set to True if you want to fetch trailing orders
1126
1163
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1127
1164
  """
1128
1165
  await self.load_markets()
1129
1166
  request = {}
1130
1167
  market: Market = None
1131
1168
  stop = self.safe_value(params, 'stop')
1132
- params = self.omit(params, 'stop')
1169
+ trailing = self.safe_value(params, 'trailing', False)
1170
+ params = self.omit(params, ['stop', 'trailing'])
1133
1171
  if symbol is not None:
1134
1172
  market = self.market(symbol)
1135
1173
  request['symbol'] = market['id']
1136
1174
  if since is not None:
1137
- if stop:
1175
+ if stop or trailing:
1138
1176
  request['createdTimeStart'] = since
1139
1177
  else:
1140
1178
  request['start_t'] = since
1141
1179
  if stop:
1142
1180
  request['algoType'] = 'stop'
1181
+ elif trailing:
1182
+ request['algoType'] = 'TRAILING_STOP'
1143
1183
  response = None
1144
- if stop:
1184
+ if stop or trailing:
1145
1185
  response = await self.v3PrivateGetAlgoOrders(self.extend(request, params))
1146
1186
  else:
1147
1187
  response = await self.v1PrivateGetOrders(self.extend(request, params))
@@ -45,6 +45,7 @@ error_hierarchy = {
45
45
  'RequestTimeout': {},
46
46
  },
47
47
  },
48
+ 'ExchangeClosedByUser': {},
48
49
  },
49
50
  }
50
51
 
@@ -189,6 +190,10 @@ class RequestTimeout(NetworkError):
189
190
  pass
190
191
 
191
192
 
193
+ class ExchangeClosedByUser(BaseError):
194
+ pass
195
+
196
+
192
197
  __all__ = [
193
198
  'error_hierarchy',
194
199
  'BaseError',
@@ -225,5 +230,6 @@ __all__ = [
225
230
  'ExchangeNotAvailable',
226
231
  'OnMaintenance',
227
232
  'InvalidNonce',
228
- 'RequestTimeout'
233
+ 'RequestTimeout',
234
+ 'ExchangeClosedByUser'
229
235
  ]
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.2.5'
7
+ __version__ = '4.2.6'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2106,6 +2106,7 @@ class bingx(Exchange, ImplicitAPI):
2106
2106
  :param str id: order id
2107
2107
  :param str symbol: unified symbol of the market the order was made in
2108
2108
  :param dict [params]: extra parameters specific to the exchange API endpoint
2109
+ :param str [params.clientOrderId]: a unique id for the order
2109
2110
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
2110
2111
  """
2111
2112
  if symbol is None:
@@ -2114,8 +2115,13 @@ class bingx(Exchange, ImplicitAPI):
2114
2115
  market = self.market(symbol)
2115
2116
  request = {
2116
2117
  'symbol': market['id'],
2117
- 'orderId': id,
2118
2118
  }
2119
+ clientOrderId = self.safe_string_2(params, 'clientOrderId', 'clientOrderID')
2120
+ params = self.omit(params, ['clientOrderId'])
2121
+ if clientOrderId is not None:
2122
+ request['clientOrderID'] = clientOrderId
2123
+ else:
2124
+ request['orderId'] = id
2119
2125
  response = None
2120
2126
  marketType, query = self.handle_market_type_and_params('cancelOrder', market, params)
2121
2127
  if marketType == 'spot':