ccxt 4.2.7__tar.gz → 4.2.8__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.7/ccxt.egg-info → ccxt-4.2.8}/PKG-INFO +4 -4
  2. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/__init__.py +1 -1
  3. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/__init__.py +1 -1
  4. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/exchange.py +1 -1
  5. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/binance.py +16 -5
  6. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bingx.py +15 -0
  7. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bybit.py +19 -3
  8. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/okx.py +40 -15
  9. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/exchange.py +1 -1
  10. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/binance.py +16 -5
  11. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bingx.py +15 -0
  12. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bybit.py +19 -3
  13. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/okx.py +40 -15
  14. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/__init__.py +1 -1
  15. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/coinbasepro.py +0 -1
  16. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/cryptocom.py +8 -3
  17. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/poloniex.py +2 -1
  18. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/test_async.py +3 -0
  19. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/test_sync.py +3 -0
  20. {ccxt-4.2.7 → ccxt-4.2.8/ccxt.egg-info}/PKG-INFO +4 -4
  21. {ccxt-4.2.7 → ccxt-4.2.8}/package.json +1 -1
  22. {ccxt-4.2.7 → ccxt-4.2.8}/LICENSE.txt +0 -0
  23. {ccxt-4.2.7 → ccxt-4.2.8}/MANIFEST.in +0 -0
  24. {ccxt-4.2.7 → ccxt-4.2.8}/README.rst +0 -0
  25. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/__init__.py +0 -0
  26. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/ace.py +0 -0
  27. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/alpaca.py +0 -0
  28. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/ascendex.py +0 -0
  29. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bequant.py +0 -0
  30. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bigone.py +0 -0
  31. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/binance.py +0 -0
  32. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/binancecoinm.py +0 -0
  33. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/binanceus.py +0 -0
  34. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/binanceusdm.py +0 -0
  35. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bingx.py +0 -0
  36. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bit2c.py +0 -0
  37. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitbank.py +0 -0
  38. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitbay.py +0 -0
  39. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitbns.py +0 -0
  40. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitcoincom.py +0 -0
  41. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitfinex.py +0 -0
  42. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitfinex2.py +0 -0
  43. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitflyer.py +0 -0
  44. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitforex.py +0 -0
  45. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitget.py +0 -0
  46. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bithumb.py +0 -0
  47. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitmart.py +0 -0
  48. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitmex.py +0 -0
  49. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitopro.py +0 -0
  50. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitpanda.py +0 -0
  51. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitrue.py +0 -0
  52. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitso.py +0 -0
  53. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitstamp.py +0 -0
  54. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitteam.py +0 -0
  55. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bitvavo.py +0 -0
  56. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bl3p.py +0 -0
  57. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/blockchaincom.py +0 -0
  58. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/btcalpha.py +0 -0
  59. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/btcbox.py +0 -0
  60. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/btcmarkets.py +0 -0
  61. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/btcturk.py +0 -0
  62. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/bybit.py +0 -0
  63. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/cex.py +0 -0
  64. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinbase.py +0 -0
  65. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinbasepro.py +0 -0
  66. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coincheck.py +0 -0
  67. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinex.py +0 -0
  68. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinlist.py +0 -0
  69. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinmate.py +0 -0
  70. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinone.py +0 -0
  71. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinsph.py +0 -0
  72. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/coinspot.py +0 -0
  73. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/cryptocom.py +0 -0
  74. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/currencycom.py +0 -0
  75. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/delta.py +0 -0
  76. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/deribit.py +0 -0
  77. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/digifinex.py +0 -0
  78. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/exmo.py +0 -0
  79. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/fmfwio.py +0 -0
  80. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/gate.py +0 -0
  81. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/gateio.py +0 -0
  82. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/gemini.py +0 -0
  83. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/hitbtc.py +0 -0
  84. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/hitbtc3.py +0 -0
  85. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/hollaex.py +0 -0
  86. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/htx.py +0 -0
  87. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/huobi.py +0 -0
  88. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/huobijp.py +0 -0
  89. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/idex.py +0 -0
  90. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/independentreserve.py +0 -0
  91. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/indodax.py +0 -0
  92. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/kraken.py +0 -0
  93. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/krakenfutures.py +0 -0
  94. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/kucoin.py +0 -0
  95. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/kucoinfutures.py +0 -0
  96. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/kuna.py +0 -0
  97. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/latoken.py +0 -0
  98. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/lbank.py +0 -0
  99. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/luno.py +0 -0
  100. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/lykke.py +0 -0
  101. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/mercado.py +0 -0
  102. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/mexc.py +0 -0
  103. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/ndax.py +0 -0
  104. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/novadax.py +0 -0
  105. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/oceanex.py +0 -0
  106. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/okcoin.py +0 -0
  107. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/okx.py +0 -0
  108. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/p2b.py +0 -0
  109. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/paymium.py +0 -0
  110. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/phemex.py +0 -0
  111. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/poloniex.py +0 -0
  112. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/poloniexfutures.py +0 -0
  113. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/probit.py +0 -0
  114. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/timex.py +0 -0
  115. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/tokocrypto.py +0 -0
  116. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/upbit.py +0 -0
  117. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/wavesexchange.py +0 -0
  118. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/wazirx.py +0 -0
  119. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/whitebit.py +0 -0
  120. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/woo.py +0 -0
  121. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/yobit.py +0 -0
  122. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/zaif.py +0 -0
  123. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/abstract/zonda.py +0 -0
  124. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/ace.py +0 -0
  125. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/alpaca.py +0 -0
  126. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/ascendex.py +0 -0
  127. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/ace.py +0 -0
  128. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/alpaca.py +0 -0
  129. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/ascendex.py +0 -0
  130. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/__init__.py +0 -0
  131. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/throttler.py +0 -0
  132. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/__init__.py +0 -0
  133. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/aiohttp_client.py +0 -0
  134. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/cache.py +0 -0
  135. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/client.py +0 -0
  136. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/fast_client.py +0 -0
  137. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/functions.py +0 -0
  138. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/future.py +0 -0
  139. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/order_book.py +0 -0
  140. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/base/ws/order_book_side.py +0 -0
  141. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bequant.py +0 -0
  142. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bigone.py +0 -0
  143. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/binancecoinm.py +0 -0
  144. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/binanceus.py +0 -0
  145. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/binanceusdm.py +0 -0
  146. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bit2c.py +0 -0
  147. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitbank.py +0 -0
  148. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitbay.py +0 -0
  149. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitbns.py +0 -0
  150. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitcoincom.py +0 -0
  151. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitfinex.py +0 -0
  152. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitfinex2.py +0 -0
  153. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitflyer.py +0 -0
  154. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitforex.py +0 -0
  155. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitget.py +0 -0
  156. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bithumb.py +0 -0
  157. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitmart.py +0 -0
  158. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitmex.py +0 -0
  159. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitopro.py +0 -0
  160. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitpanda.py +0 -0
  161. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitrue.py +0 -0
  162. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitso.py +0 -0
  163. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitstamp.py +0 -0
  164. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitteam.py +0 -0
  165. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bitvavo.py +0 -0
  166. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/bl3p.py +0 -0
  167. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/blockchaincom.py +0 -0
  168. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/btcalpha.py +0 -0
  169. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/btcbox.py +0 -0
  170. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/btcmarkets.py +0 -0
  171. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/btcturk.py +0 -0
  172. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/cex.py +0 -0
  173. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinbase.py +0 -0
  174. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinbasepro.py +0 -0
  175. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coincheck.py +0 -0
  176. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinex.py +0 -0
  177. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinlist.py +0 -0
  178. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinmate.py +0 -0
  179. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinone.py +0 -0
  180. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinsph.py +0 -0
  181. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/coinspot.py +0 -0
  182. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/cryptocom.py +0 -0
  183. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/currencycom.py +0 -0
  184. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/delta.py +0 -0
  185. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/deribit.py +0 -0
  186. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/digifinex.py +0 -0
  187. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/exmo.py +0 -0
  188. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/flowbtc.py +0 -0
  189. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/fmfwio.py +0 -0
  190. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/gate.py +0 -0
  191. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/gateio.py +0 -0
  192. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/gemini.py +0 -0
  193. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/hitbtc.py +0 -0
  194. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/hitbtc3.py +0 -0
  195. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/hollaex.py +0 -0
  196. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/htx.py +0 -0
  197. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/huobi.py +0 -0
  198. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/huobijp.py +0 -0
  199. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/idex.py +0 -0
  200. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/independentreserve.py +0 -0
  201. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/indodax.py +0 -0
  202. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/kraken.py +0 -0
  203. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/krakenfutures.py +0 -0
  204. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/kucoin.py +0 -0
  205. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/kucoinfutures.py +0 -0
  206. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/kuna.py +0 -0
  207. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/latoken.py +0 -0
  208. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/lbank.py +0 -0
  209. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/luno.py +0 -0
  210. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/lykke.py +0 -0
  211. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/mercado.py +0 -0
  212. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/mexc.py +0 -0
  213. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/ndax.py +0 -0
  214. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/novadax.py +0 -0
  215. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/oceanex.py +0 -0
  216. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/okcoin.py +0 -0
  217. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/p2b.py +0 -0
  218. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/paymium.py +0 -0
  219. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/phemex.py +0 -0
  220. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/poloniex.py +0 -0
  221. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/poloniexfutures.py +0 -0
  222. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/probit.py +0 -0
  223. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/timex.py +0 -0
  224. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/tokocrypto.py +0 -0
  225. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/upbit.py +0 -0
  226. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/wavesexchange.py +0 -0
  227. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/wazirx.py +0 -0
  228. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/whitebit.py +0 -0
  229. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/woo.py +0 -0
  230. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/yobit.py +0 -0
  231. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/zaif.py +0 -0
  232. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/async_support/zonda.py +0 -0
  233. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/__init__.py +0 -0
  234. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/decimal_to_precision.py +0 -0
  235. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/errors.py +0 -0
  236. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/precise.py +0 -0
  237. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/base/types.py +0 -0
  238. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bequant.py +0 -0
  239. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bigone.py +0 -0
  240. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/binancecoinm.py +0 -0
  241. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/binanceus.py +0 -0
  242. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/binanceusdm.py +0 -0
  243. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bit2c.py +0 -0
  244. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitbank.py +0 -0
  245. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitbay.py +0 -0
  246. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitbns.py +0 -0
  247. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitcoincom.py +0 -0
  248. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitfinex.py +0 -0
  249. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitfinex2.py +0 -0
  250. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitflyer.py +0 -0
  251. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitforex.py +0 -0
  252. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitget.py +0 -0
  253. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bithumb.py +0 -0
  254. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitmart.py +0 -0
  255. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitmex.py +0 -0
  256. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitopro.py +0 -0
  257. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitpanda.py +0 -0
  258. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitrue.py +0 -0
  259. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitso.py +0 -0
  260. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitstamp.py +0 -0
  261. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitteam.py +0 -0
  262. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bitvavo.py +0 -0
  263. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/bl3p.py +0 -0
  264. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/blockchaincom.py +0 -0
  265. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/btcalpha.py +0 -0
  266. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/btcbox.py +0 -0
  267. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/btcmarkets.py +0 -0
  268. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/btcturk.py +0 -0
  269. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/cex.py +0 -0
  270. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinbase.py +0 -0
  271. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinbasepro.py +0 -0
  272. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coincheck.py +0 -0
  273. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinex.py +0 -0
  274. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinlist.py +0 -0
  275. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinmate.py +0 -0
  276. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinone.py +0 -0
  277. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinsph.py +0 -0
  278. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/coinspot.py +0 -0
  279. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/cryptocom.py +0 -0
  280. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/currencycom.py +0 -0
  281. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/delta.py +0 -0
  282. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/deribit.py +0 -0
  283. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/digifinex.py +0 -0
  284. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/exmo.py +0 -0
  285. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/flowbtc.py +0 -0
  286. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/fmfwio.py +0 -0
  287. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/gate.py +0 -0
  288. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/gateio.py +0 -0
  289. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/gemini.py +0 -0
  290. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/hitbtc.py +0 -0
  291. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/hitbtc3.py +0 -0
  292. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/hollaex.py +0 -0
  293. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/htx.py +0 -0
  294. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/huobi.py +0 -0
  295. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/huobijp.py +0 -0
  296. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/idex.py +0 -0
  297. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/independentreserve.py +0 -0
  298. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/indodax.py +0 -0
  299. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/kraken.py +0 -0
  300. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/krakenfutures.py +0 -0
  301. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/kucoin.py +0 -0
  302. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/kucoinfutures.py +0 -0
  303. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/kuna.py +0 -0
  304. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/latoken.py +0 -0
  305. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/lbank.py +0 -0
  306. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/luno.py +0 -0
  307. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/lykke.py +0 -0
  308. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/mercado.py +0 -0
  309. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/mexc.py +0 -0
  310. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/ndax.py +0 -0
  311. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/novadax.py +0 -0
  312. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/oceanex.py +0 -0
  313. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/okcoin.py +0 -0
  314. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/p2b.py +0 -0
  315. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/paymium.py +0 -0
  316. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/phemex.py +0 -0
  317. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/poloniex.py +0 -0
  318. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/poloniexfutures.py +0 -0
  319. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/alpaca.py +0 -0
  320. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/ascendex.py +0 -0
  321. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bequant.py +0 -0
  322. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/binance.py +0 -0
  323. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/binancecoinm.py +0 -0
  324. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/binanceus.py +0 -0
  325. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/binanceusdm.py +0 -0
  326. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bingx.py +0 -0
  327. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitcoincom.py +0 -0
  328. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitfinex.py +0 -0
  329. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitfinex2.py +0 -0
  330. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitget.py +0 -0
  331. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitmart.py +0 -0
  332. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitmex.py +0 -0
  333. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitopro.py +0 -0
  334. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitpanda.py +0 -0
  335. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitrue.py +0 -0
  336. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitstamp.py +0 -0
  337. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bitvavo.py +0 -0
  338. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/blockchaincom.py +0 -0
  339. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/bybit.py +0 -0
  340. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/cex.py +0 -0
  341. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/coinbase.py +0 -0
  342. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/coinex.py +0 -0
  343. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/currencycom.py +0 -0
  344. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/deribit.py +0 -0
  345. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/exmo.py +0 -0
  346. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/gate.py +0 -0
  347. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/gateio.py +0 -0
  348. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/gemini.py +0 -0
  349. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/hitbtc.py +0 -0
  350. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/hollaex.py +0 -0
  351. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/htx.py +0 -0
  352. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/huobi.py +0 -0
  353. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/huobijp.py +0 -0
  354. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/idex.py +0 -0
  355. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/independentreserve.py +0 -0
  356. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/kraken.py +0 -0
  357. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/krakenfutures.py +0 -0
  358. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/kucoin.py +0 -0
  359. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/kucoinfutures.py +0 -0
  360. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/luno.py +0 -0
  361. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/mexc.py +0 -0
  362. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/ndax.py +0 -0
  363. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/okcoin.py +0 -0
  364. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/okx.py +0 -0
  365. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/phemex.py +0 -0
  366. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/poloniexfutures.py +0 -0
  367. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/probit.py +0 -0
  368. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/upbit.py +0 -0
  369. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/wazirx.py +0 -0
  370. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/whitebit.py +0 -0
  371. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/pro/woo.py +0 -0
  372. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/probit.py +0 -0
  373. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/__init__.py +0 -0
  374. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
  375. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/_version.py +0 -0
  376. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/curves.py +0 -0
  377. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/der.py +0 -0
  378. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
  379. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
  380. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/keys.py +0 -0
  381. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
  382. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
  383. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/util.py +0 -0
  384. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/keccak/__init__.py +0 -0
  385. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/static_dependencies/keccak/keccak.py +0 -0
  386. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/__init__.py +0 -0
  387. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/__init__.py +0 -0
  388. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_account.py +0 -0
  389. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_balance.py +0 -0
  390. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_borrow_interest.py +0 -0
  391. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_borrow_rate.py +0 -0
  392. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_calculate_fee.py +0 -0
  393. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_crypto.py +0 -0
  394. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_currency.py +0 -0
  395. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_datetime.py +0 -0
  396. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_decimal_to_precision.py +0 -0
  397. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_deep_extend.py +0 -0
  398. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_deposit_withdrawal.py +0 -0
  399. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_exchange_datetime_functions.py +0 -0
  400. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_funding_rate_history.py +0 -0
  401. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_ledger_entry.py +0 -0
  402. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_ledger_item.py +0 -0
  403. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_leverage_tier.py +0 -0
  404. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_margin_modification.py +0 -0
  405. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_market.py +0 -0
  406. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_number.py +0 -0
  407. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_ohlcv.py +0 -0
  408. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_open_interest.py +0 -0
  409. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_order.py +0 -0
  410. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_order_book.py +0 -0
  411. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_position.py +0 -0
  412. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_shared_methods.py +0 -0
  413. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_status.py +0 -0
  414. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_throttle.py +0 -0
  415. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_ticker.py +0 -0
  416. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_trade.py +0 -0
  417. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_trading_fee.py +0 -0
  418. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/test/base/test_transaction.py +0 -0
  419. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/timex.py +0 -0
  420. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/tokocrypto.py +0 -0
  421. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/upbit.py +0 -0
  422. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/wavesexchange.py +0 -0
  423. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/wazirx.py +0 -0
  424. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/whitebit.py +0 -0
  425. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/woo.py +0 -0
  426. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/yobit.py +0 -0
  427. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/zaif.py +0 -0
  428. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt/zonda.py +0 -0
  429. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt.egg-info/SOURCES.txt +0 -0
  430. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt.egg-info/dependency_links.txt +0 -0
  431. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt.egg-info/requires.txt +0 -0
  432. {ccxt-4.2.7 → ccxt-4.2.8}/ccxt.egg-info/top_level.txt +0 -0
  433. {ccxt-4.2.7 → ccxt-4.2.8}/setup.cfg +0 -0
  434. {ccxt-4.2.7 → ccxt-4.2.8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 4.2.7
3
+ Version: 4.2.8
4
4
  Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
5
5
  Home-page: https://ccxt.com
6
6
  Author: Igor Kroitor
@@ -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.7/dist/ccxt.browser.js
226
- * unpkg: https://unpkg.com/ccxt@4.2.7/dist/ccxt.browser.js
225
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.8/dist/ccxt.browser.js
226
+ * unpkg: https://unpkg.com/ccxt@4.2.8/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.7/dist/ccxt.browser.js"></script>
231
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.8/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.7'
25
+ __version__ = '4.2.8'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.2.7'
7
+ __version__ = '4.2.8'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.2.7'
5
+ __version__ = '4.2.8'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -4199,6 +4199,8 @@ class binance(Exchange, ImplicitAPI):
4199
4199
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4200
4200
  :param boolean [params.sor]: *spot only* whether to use SOR(Smart Order Routing) or not, default is False
4201
4201
  :param boolean [params.test]: *spot only* whether to use the test endpoint or not, default is False
4202
+ :param float [params.trailingPercent]: the percent to trail away from the current market price
4203
+ :param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
4202
4204
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
4203
4205
  """
4204
4206
  await self.load_markets()
@@ -4238,6 +4240,8 @@ class binance(Exchange, ImplicitAPI):
4238
4240
  :param float|None price: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4239
4241
  :param dict params: extra parameters specific to the exchange API endpoint
4240
4242
  :param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
4243
+ :param float [params.trailingPercent]: the percent to trail away from the current market price
4244
+ :param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
4241
4245
  :returns dict: request to be sent to the exchange
4242
4246
  """
4243
4247
  market = self.market(symbol)
@@ -4251,9 +4255,12 @@ class binance(Exchange, ImplicitAPI):
4251
4255
  stopLossPrice = self.safe_value(params, 'stopLossPrice', triggerPrice) # fallback to stopLoss
4252
4256
  takeProfitPrice = self.safe_value(params, 'takeProfitPrice')
4253
4257
  trailingDelta = self.safe_value(params, 'trailingDelta')
4258
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activationPrice', price)
4259
+ trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
4260
+ isTrailingPercentOrder = trailingPercent is not None
4254
4261
  isStopLoss = stopLossPrice is not None or trailingDelta is not None
4255
4262
  isTakeProfit = takeProfitPrice is not None
4256
- params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice'])
4263
+ params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice', 'trailingTriggerPrice', 'trailingPercent'])
4257
4264
  marginMode, query = self.handle_margin_mode_and_params('createOrder', params)
4258
4265
  request = {
4259
4266
  'symbol': market['id'],
@@ -4270,7 +4277,12 @@ class binance(Exchange, ImplicitAPI):
4270
4277
  params = self.omit(params, 'reduceOnly')
4271
4278
  uppercaseType = type.upper()
4272
4279
  stopPrice = None
4273
- if isStopLoss:
4280
+ if isTrailingPercentOrder:
4281
+ uppercaseType = 'TRAILING_STOP_MARKET'
4282
+ request['callbackRate'] = trailingPercent
4283
+ if trailingTriggerPrice is not None:
4284
+ request['activationPrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
4285
+ elif isStopLoss:
4274
4286
  stopPrice = stopLossPrice
4275
4287
  if isMarketOrder:
4276
4288
  # spot STOP_LOSS market orders are not a valid order type
@@ -4381,9 +4393,8 @@ class binance(Exchange, ImplicitAPI):
4381
4393
  stopPriceIsRequired = True
4382
4394
  elif uppercaseType == 'TRAILING_STOP_MARKET':
4383
4395
  quantityIsRequired = True
4384
- callbackRate = self.safe_number(query, 'callbackRate')
4385
- if callbackRate is None:
4386
- raise InvalidOrder(self.id + ' createOrder() requires a callbackRate extra param for a ' + type + ' order')
4396
+ if trailingPercent is None:
4397
+ raise InvalidOrder(self.id + ' createOrder() requires a trailingPercent param for a ' + type + ' order')
4387
4398
  if quantityIsRequired:
4388
4399
  request['quantity'] = self.amount_to_precision(symbol, amount)
4389
4400
  if priceIsRequired:
@@ -12,6 +12,7 @@ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, O
12
12
  from typing import List
13
13
  from ccxt.base.errors import ExchangeError
14
14
  from ccxt.base.errors import PermissionDenied
15
+ from ccxt.base.errors import AccountSuspended
15
16
  from ccxt.base.errors import ArgumentsRequired
16
17
  from ccxt.base.errors import BadRequest
17
18
  from ccxt.base.errors import BadSymbol
@@ -369,6 +370,7 @@ class bingx(Exchange, ImplicitAPI):
369
370
  '80014': BadRequest,
370
371
  '80016': OrderNotFound,
371
372
  '80017': OrderNotFound,
373
+ '100414': AccountSuspended, # {"code":100414,"msg":"Code: 100414, Msg: risk control check fail,code(1)","debugMsg":""}
372
374
  '100437': BadRequest, # {"code":100437,"msg":"The withdrawal amount is lower than the minimum limit, please re-enter.","timestamp":1689258588845}
373
375
  },
374
376
  'broad': {},
@@ -1794,11 +1796,24 @@ class bingx(Exchange, ImplicitAPI):
1794
1796
  # }
1795
1797
  #
1796
1798
  if isinstance(response, str):
1799
+ # broken api engine : order-ids are too long numbers(i.e. 1742930526912864656)
1800
+ # and json.loadscan not handle them in JS, so we have to use .parse_json # however, when order has an attached SL/TP, their value types need extra parsing
1801
+ response = self.fix_stringified_json_members(response)
1797
1802
  response = self.parse_json(response)
1798
1803
  data = self.safe_value(response, 'data', {})
1799
1804
  order = self.safe_value(data, 'order', data)
1800
1805
  return self.parse_order(order, market)
1801
1806
 
1807
+ def fix_stringified_json_members(self, content):
1808
+ # when stringified json has members with their values also stringified, like:
1809
+ # '{"code":0, "data":{"order":{"orderId":1742968678528512345,"symbol":"BTC-USDT", "takeProfit":"{\"type\":\"TAKE_PROFIT\",\"stopPrice\":43320.1}","reduceOnly":false}}}'
1810
+ # we can fix with below manipulations
1811
+ # @ts-ignore
1812
+ modifiedContent = content.replace('\\', '')
1813
+ modifiedContent = modifiedContent.replace('"{', '{')
1814
+ modifiedContent = modifiedContent.replace('}"', '}')
1815
+ return modifiedContent
1816
+
1802
1817
  async def create_orders(self, orders: List[OrderRequest], params={}):
1803
1818
  """
1804
1819
  create a list of trade orders
@@ -3324,6 +3324,7 @@ class bybit(Exchange, ImplicitAPI):
3324
3324
  """
3325
3325
  create a trade order
3326
3326
  :see: https://bybit-exchange.github.io/docs/v5/order/create-order
3327
+ :see: https://bybit-exchange.github.io/docs/v5/position/trading-stop
3327
3328
  :param str symbol: unified symbol of the market to create an order in
3328
3329
  :param str type: 'market' or 'limit'
3329
3330
  :param str side: 'buy' or 'sell'
@@ -3345,6 +3346,8 @@ class bybit(Exchange, ImplicitAPI):
3345
3346
  :param float [params.takeProfit.triggerPrice]: take profit trigger price
3346
3347
  :param dict [params.stopLoss]: *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
3347
3348
  :param float [params.stopLoss.triggerPrice]: stop loss trigger price
3349
+ :param str [params.trailingAmount]: the quote amount to trail away from the current market price
3350
+ :param str [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
3348
3351
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
3349
3352
  """
3350
3353
  await self.load_markets()
@@ -3354,8 +3357,14 @@ class bybit(Exchange, ImplicitAPI):
3354
3357
  isUsdcSettled = market['settle'] == 'USDC'
3355
3358
  if isUsdcSettled and not isUnifiedAccount:
3356
3359
  return await self.create_usdc_order(symbol, type, side, amount, price, params)
3360
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
3361
+ isTrailingAmountOrder = trailingAmount is not None
3357
3362
  orderRequest = self.create_order_request(symbol, type, side, amount, price, params)
3358
- response = await self.privatePostV5OrderCreate(orderRequest) # already extended inside createOrderRequest
3363
+ response = None
3364
+ if isTrailingAmountOrder:
3365
+ response = await self.privatePostV5PositionTradingStop(orderRequest)
3366
+ else:
3367
+ response = await self.privatePostV5OrderCreate(orderRequest) # already extended inside createOrderRequest
3359
3368
  #
3360
3369
  # {
3361
3370
  # "retCode": 0,
@@ -3449,12 +3458,19 @@ class bybit(Exchange, ImplicitAPI):
3449
3458
  takeProfitTriggerPrice = self.safe_value(params, 'takeProfitPrice')
3450
3459
  stopLoss = self.safe_value(params, 'stopLoss')
3451
3460
  takeProfit = self.safe_value(params, 'takeProfit')
3461
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activePrice', price)
3462
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
3463
+ isTrailingAmountOrder = trailingAmount is not None
3452
3464
  isStopLossTriggerOrder = stopLossTriggerPrice is not None
3453
3465
  isTakeProfitTriggerOrder = takeProfitTriggerPrice is not None
3454
3466
  isStopLoss = stopLoss is not None
3455
3467
  isTakeProfit = takeProfit is not None
3456
3468
  isBuy = side == 'buy'
3457
- if triggerPrice is not None:
3469
+ if isTrailingAmountOrder:
3470
+ if trailingTriggerPrice is not None:
3471
+ request['activePrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
3472
+ request['trailingStop'] = trailingAmount
3473
+ elif triggerPrice is not None:
3458
3474
  triggerDirection = self.safe_string(params, 'triggerDirection')
3459
3475
  params = self.omit(params, ['triggerPrice', 'stopPrice', 'triggerDirection'])
3460
3476
  if market['spot']:
@@ -3493,7 +3509,7 @@ class bybit(Exchange, ImplicitAPI):
3493
3509
  elif market['option']:
3494
3510
  # mandatory field for options
3495
3511
  request['orderLinkId'] = self.uuid16()
3496
- params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit'])
3512
+ params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit', 'trailingAmount', 'trailingTriggerPrice'])
3497
3513
  return self.extend(request, params)
3498
3514
 
3499
3515
  async def create_orders(self, orders: List[OrderRequest], params={}):
@@ -2505,6 +2505,8 @@ class okx(Exchange, ImplicitAPI):
2505
2505
  stopLossDefined = (stopLoss is not None)
2506
2506
  takeProfit = self.safe_value(params, 'takeProfit')
2507
2507
  takeProfitDefined = (takeProfit is not None)
2508
+ trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRatio')
2509
+ isTrailingPercentOrder = trailingPercent is not None
2508
2510
  defaultMarginMode = self.safe_string_2(self.options, 'defaultMarginMode', 'marginMode', 'cross')
2509
2511
  marginMode = self.safe_string_2(params, 'marginMode', 'tdMode') # cross or isolated, tdMode not ommited so be extended into the request
2510
2512
  margin = False
@@ -2530,7 +2532,7 @@ class okx(Exchange, ImplicitAPI):
2530
2532
  isMarketOrder = type == 'market'
2531
2533
  postOnly = False
2532
2534
  postOnly, params = self.handle_post_only(isMarketOrder, type == 'post_only', params)
2533
- params = self.omit(params, ['currency', 'ccy', 'marginMode', 'timeInForce', 'stopPrice', 'triggerPrice', 'clientOrderId', 'stopLossPrice', 'takeProfitPrice', 'slOrdPx', 'tpOrdPx', 'margin', 'stopLoss', 'takeProfit'])
2535
+ params = self.omit(params, ['currency', 'ccy', 'marginMode', 'timeInForce', 'stopPrice', 'triggerPrice', 'clientOrderId', 'stopLossPrice', 'takeProfitPrice', 'slOrdPx', 'tpOrdPx', 'margin', 'stopLoss', 'takeProfit', 'trailingPercent'])
2534
2536
  ioc = (timeInForce == 'IOC') or (type == 'ioc')
2535
2537
  fok = (timeInForce == 'FOK') or (type == 'fok')
2536
2538
  trigger = (triggerPrice is not None) or (type == 'trigger')
@@ -2574,7 +2576,11 @@ class okx(Exchange, ImplicitAPI):
2574
2576
  request['ordType'] = 'ioc'
2575
2577
  elif fok:
2576
2578
  request['ordType'] = 'fok'
2577
- if stopLossDefined or takeProfitDefined:
2579
+ if isTrailingPercentOrder:
2580
+ convertedTrailingPercent = Precise.string_div(trailingPercent, '100')
2581
+ request['callbackRatio'] = convertedTrailingPercent
2582
+ request['ordType'] = 'move_order_stop'
2583
+ elif stopLossDefined or takeProfitDefined:
2578
2584
  if stopLossDefined:
2579
2585
  stopLossTriggerPrice = self.safe_value_n(stopLoss, ['triggerPrice', 'stopPrice', 'slTriggerPx'])
2580
2586
  if stopLossTriggerPrice is None:
@@ -2683,6 +2689,7 @@ class okx(Exchange, ImplicitAPI):
2683
2689
  :param float [params.stopLoss.price]: used for stop loss limit orders, not used for stop loss market price orders
2684
2690
  :param str [params.stopLoss.type]: 'market' or 'limit' used to specify the stop loss price type
2685
2691
  :param str [params.positionSide]: if position mode is one-way: set to 'net', if position mode is hedge-mode: set to 'long' or 'short'
2692
+ :param str [params.trailingPercent]: the percent to trail away from the current market price
2686
2693
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
2687
2694
  """
2688
2695
  await self.load_markets()
@@ -2690,7 +2697,7 @@ class okx(Exchange, ImplicitAPI):
2690
2697
  request = self.create_order_request(symbol, type, side, amount, price, params)
2691
2698
  method = self.safe_string(self.options, 'createOrder', 'privatePostTradeBatchOrders')
2692
2699
  requestOrdType = self.safe_string(request, 'ordType')
2693
- if (requestOrdType == 'trigger') or (requestOrdType == 'conditional') or (type == 'oco') or (type == 'move_order_stop') or (type == 'iceberg') or (type == 'twap'):
2700
+ if (requestOrdType == 'trigger') or (requestOrdType == 'conditional') or (requestOrdType == 'move_order_stop') or (type == 'move_order_stop') or (type == 'oco') or (type == 'iceberg') or (type == 'twap'):
2694
2701
  method = 'privatePostTradeOrderAlgo'
2695
2702
  if (method != 'privatePostTradeOrder') and (method != 'privatePostTradeOrderAlgo') and (method != 'privatePostTradeBatchOrders'):
2696
2703
  raise ExchangeError(self.id + ' createOrder() self.options["createOrder"] must be either privatePostTradeBatchOrders or privatePostTradeOrder or privatePostTradeOrderAlgo')
@@ -2866,16 +2873,19 @@ class okx(Exchange, ImplicitAPI):
2866
2873
  """
2867
2874
  cancels an open order
2868
2875
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-cancel-order
2876
+ :see: https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-post-cancel-algo-order
2869
2877
  :param str id: order id
2870
2878
  :param str symbol: unified symbol of the market the order was made in
2871
2879
  :param dict [params]: extra parameters specific to the exchange API endpoint
2872
2880
  :param boolean [params.trigger]: True if trigger orders
2881
+ :param boolean [params.trailing]: set to True if you want to cancel a trailing order
2873
2882
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
2874
2883
  """
2875
2884
  if symbol is None:
2876
2885
  raise ArgumentsRequired(self.id + ' cancelOrder() requires a symbol argument')
2877
2886
  stop = self.safe_value_2(params, 'stop', 'trigger')
2878
- if stop:
2887
+ trailing = self.safe_value(params, 'trailing', False)
2888
+ if stop or trailing:
2879
2889
  orderInner = await self.cancel_orders([id], symbol, params)
2880
2890
  return self.safe_value(orderInner, 0)
2881
2891
  await self.load_markets()
@@ -2917,6 +2927,7 @@ class okx(Exchange, ImplicitAPI):
2917
2927
  :param str symbol: unified market symbol
2918
2928
  :param dict [params]: extra parameters specific to the exchange API endpoint
2919
2929
  :param boolean [params.trigger]: whether the order is a stop/trigger order
2930
+ :param boolean [params.trailing]: set to True if you want to cancel trailing orders
2920
2931
  :returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2921
2932
  """
2922
2933
  # TODO : the original endpoint signature differs, according to that you can skip individual symbol and assign ids in batch. At self moment, `params` is not being used too.
@@ -2931,7 +2942,8 @@ class okx(Exchange, ImplicitAPI):
2931
2942
  clientOrderIds = self.parse_ids(self.safe_value_2(params, 'clOrdId', 'clientOrderId'))
2932
2943
  algoIds = self.parse_ids(self.safe_value(params, 'algoId'))
2933
2944
  stop = self.safe_value_2(params, 'stop', 'trigger')
2934
- if stop:
2945
+ trailing = self.safe_value(params, 'trailing', False)
2946
+ if stop or trailing:
2935
2947
  method = 'privatePostTradeCancelAlgos'
2936
2948
  if clientOrderIds is None:
2937
2949
  ids = self.parse_ids(ids)
@@ -2942,7 +2954,7 @@ class okx(Exchange, ImplicitAPI):
2942
2954
  'instId': market['id'],
2943
2955
  })
2944
2956
  for i in range(0, len(ids)):
2945
- if stop:
2957
+ if trailing or stop:
2946
2958
  request.append({
2947
2959
  'algoId': ids[i],
2948
2960
  'instId': market['id'],
@@ -3351,7 +3363,6 @@ class okx(Exchange, ImplicitAPI):
3351
3363
 
3352
3364
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3353
3365
  """
3354
- Fetch orders that are still open
3355
3366
  fetch all unfilled currently open orders
3356
3367
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-list
3357
3368
  :see: https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-list
@@ -3364,6 +3375,7 @@ class okx(Exchange, ImplicitAPI):
3364
3375
  :param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3365
3376
  :param str [params.algoId]: Algo ID "'433845797218942976'"
3366
3377
  :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)
3378
+ :param boolean [params.trailing]: set to True if you want to fetch trailing orders
3367
3379
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
3368
3380
  """
3369
3381
  await self.load_markets()
@@ -3393,12 +3405,16 @@ class okx(Exchange, ImplicitAPI):
3393
3405
  method = self.safe_string(params, 'method', defaultMethod)
3394
3406
  ordType = self.safe_string(params, 'ordType')
3395
3407
  stop = self.safe_value_2(params, 'stop', 'trigger')
3396
- if stop or (ordType in algoOrderTypes):
3408
+ trailing = self.safe_value(params, 'trailing', False)
3409
+ if trailing or stop or (ordType in algoOrderTypes):
3397
3410
  method = 'privateGetTradeOrdersAlgoPending'
3411
+ if trailing:
3412
+ request['ordType'] = 'move_order_stop'
3413
+ elif stop or (ordType in algoOrderTypes):
3398
3414
  if stop:
3399
3415
  if ordType is None:
3400
3416
  raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
3401
- query = self.omit(params, ['method', 'stop', 'trigger'])
3417
+ query = self.omit(params, ['method', 'stop', 'trigger', 'trailing'])
3402
3418
  response = None
3403
3419
  if method == 'privateGetTradeOrdersAlgoPending':
3404
3420
  response = await self.privateGetTradeOrdersAlgoPending(self.extend(request, query))
@@ -3515,6 +3531,7 @@ class okx(Exchange, ImplicitAPI):
3515
3531
  :param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3516
3532
  :param str [params.algoId]: Algo ID "'433845797218942976'"
3517
3533
  :param int [params.until]: timestamp in ms to fetch orders for
3534
+ :param boolean [params.trailing]: set to True if you want to fetch trailing orders
3518
3535
  :returns dict: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
3519
3536
  """
3520
3537
  await self.load_markets()
@@ -3546,7 +3563,11 @@ class okx(Exchange, ImplicitAPI):
3546
3563
  method = self.safe_string(params, 'method', defaultMethod)
3547
3564
  ordType = self.safe_string(params, 'ordType')
3548
3565
  stop = self.safe_value_2(params, 'stop', 'trigger')
3549
- if stop or (ordType in algoOrderTypes):
3566
+ trailing = self.safe_value(params, 'trailing', False)
3567
+ if trailing:
3568
+ method = 'privateGetTradeOrdersAlgoHistory'
3569
+ request['ordType'] = 'move_order_stop'
3570
+ elif stop or (ordType in algoOrderTypes):
3550
3571
  method = 'privateGetTradeOrdersAlgoHistory'
3551
3572
  algoId = self.safe_string(params, 'algoId')
3552
3573
  if algoId is not None:
@@ -3555,7 +3576,6 @@ class okx(Exchange, ImplicitAPI):
3555
3576
  if stop:
3556
3577
  if ordType is None:
3557
3578
  raise ArgumentsRequired(self.id + ' fetchCanceledOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
3558
- request['ordType'] = ordType
3559
3579
  else:
3560
3580
  if since is not None:
3561
3581
  request['begin'] = since
@@ -3563,7 +3583,7 @@ class okx(Exchange, ImplicitAPI):
3563
3583
  if until is not None:
3564
3584
  request['end'] = until
3565
3585
  query = self.omit(query, ['until', 'till'])
3566
- send = self.omit(query, ['method', 'stop', 'ordType', 'trigger'])
3586
+ send = self.omit(query, ['method', 'stop', 'trigger', 'trailing'])
3567
3587
  response = None
3568
3588
  if method == 'privateGetTradeOrdersAlgoHistory':
3569
3589
  response = await self.privateGetTradeOrdersAlgoHistory(self.extend(request, send))
@@ -3687,6 +3707,7 @@ class okx(Exchange, ImplicitAPI):
3687
3707
  :param int [params.until]: timestamp in ms to fetch orders for
3688
3708
  :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)
3689
3709
  :param str [params.method]: method to be used, either 'privateGetTradeOrdersHistory', 'privateGetTradeOrdersHistoryArchive' or 'privateGetTradeOrdersAlgoHistory' default is 'privateGetTradeOrdersHistory'
3710
+ :param boolean [params.trailing]: set to True if you want to fetch trailing orders
3690
3711
  :returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
3691
3712
  """
3692
3713
  await self.load_markets()
@@ -3721,12 +3742,16 @@ class okx(Exchange, ImplicitAPI):
3721
3742
  method = self.safe_string(params, 'method', defaultMethod)
3722
3743
  ordType = self.safe_string(params, 'ordType')
3723
3744
  stop = self.safe_value_2(params, 'stop', 'trigger')
3724
- if stop or (ordType in algoOrderTypes):
3745
+ trailing = self.safe_value(params, 'trailing', False)
3746
+ if trailing or stop or (ordType in algoOrderTypes):
3725
3747
  method = 'privateGetTradeOrdersAlgoHistory'
3748
+ request['state'] = 'effective'
3749
+ if trailing:
3750
+ request['ordType'] = 'move_order_stop'
3751
+ elif stop or (ordType in algoOrderTypes):
3726
3752
  if stop:
3727
3753
  if ordType is None:
3728
3754
  raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
3729
- request['state'] = 'effective'
3730
3755
  else:
3731
3756
  if since is not None:
3732
3757
  request['begin'] = since
@@ -3735,7 +3760,7 @@ class okx(Exchange, ImplicitAPI):
3735
3760
  request['end'] = until
3736
3761
  query = self.omit(query, ['until', 'till'])
3737
3762
  request['state'] = 'filled'
3738
- send = self.omit(query, ['method', 'stop', 'trigger'])
3763
+ send = self.omit(query, ['method', 'stop', 'trigger', 'trailing'])
3739
3764
  response = None
3740
3765
  if method == 'privateGetTradeOrdersAlgoHistory':
3741
3766
  response = await self.privateGetTradeOrdersAlgoHistory(self.extend(request, send))
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.2.7'
7
+ __version__ = '4.2.8'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -4198,6 +4198,8 @@ class binance(Exchange, ImplicitAPI):
4198
4198
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4199
4199
  :param boolean [params.sor]: *spot only* whether to use SOR(Smart Order Routing) or not, default is False
4200
4200
  :param boolean [params.test]: *spot only* whether to use the test endpoint or not, default is False
4201
+ :param float [params.trailingPercent]: the percent to trail away from the current market price
4202
+ :param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
4201
4203
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
4202
4204
  """
4203
4205
  self.load_markets()
@@ -4237,6 +4239,8 @@ class binance(Exchange, ImplicitAPI):
4237
4239
  :param float|None price: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4238
4240
  :param dict params: extra parameters specific to the exchange API endpoint
4239
4241
  :param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
4242
+ :param float [params.trailingPercent]: the percent to trail away from the current market price
4243
+ :param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
4240
4244
  :returns dict: request to be sent to the exchange
4241
4245
  """
4242
4246
  market = self.market(symbol)
@@ -4250,9 +4254,12 @@ class binance(Exchange, ImplicitAPI):
4250
4254
  stopLossPrice = self.safe_value(params, 'stopLossPrice', triggerPrice) # fallback to stopLoss
4251
4255
  takeProfitPrice = self.safe_value(params, 'takeProfitPrice')
4252
4256
  trailingDelta = self.safe_value(params, 'trailingDelta')
4257
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activationPrice', price)
4258
+ trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
4259
+ isTrailingPercentOrder = trailingPercent is not None
4253
4260
  isStopLoss = stopLossPrice is not None or trailingDelta is not None
4254
4261
  isTakeProfit = takeProfitPrice is not None
4255
- params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice'])
4262
+ params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice', 'trailingTriggerPrice', 'trailingPercent'])
4256
4263
  marginMode, query = self.handle_margin_mode_and_params('createOrder', params)
4257
4264
  request = {
4258
4265
  'symbol': market['id'],
@@ -4269,7 +4276,12 @@ class binance(Exchange, ImplicitAPI):
4269
4276
  params = self.omit(params, 'reduceOnly')
4270
4277
  uppercaseType = type.upper()
4271
4278
  stopPrice = None
4272
- if isStopLoss:
4279
+ if isTrailingPercentOrder:
4280
+ uppercaseType = 'TRAILING_STOP_MARKET'
4281
+ request['callbackRate'] = trailingPercent
4282
+ if trailingTriggerPrice is not None:
4283
+ request['activationPrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
4284
+ elif isStopLoss:
4273
4285
  stopPrice = stopLossPrice
4274
4286
  if isMarketOrder:
4275
4287
  # spot STOP_LOSS market orders are not a valid order type
@@ -4380,9 +4392,8 @@ class binance(Exchange, ImplicitAPI):
4380
4392
  stopPriceIsRequired = True
4381
4393
  elif uppercaseType == 'TRAILING_STOP_MARKET':
4382
4394
  quantityIsRequired = True
4383
- callbackRate = self.safe_number(query, 'callbackRate')
4384
- if callbackRate is None:
4385
- raise InvalidOrder(self.id + ' createOrder() requires a callbackRate extra param for a ' + type + ' order')
4395
+ if trailingPercent is None:
4396
+ raise InvalidOrder(self.id + ' createOrder() requires a trailingPercent param for a ' + type + ' order')
4386
4397
  if quantityIsRequired:
4387
4398
  request['quantity'] = self.amount_to_precision(symbol, amount)
4388
4399
  if priceIsRequired:
@@ -11,6 +11,7 @@ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, O
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
13
13
  from ccxt.base.errors import PermissionDenied
14
+ from ccxt.base.errors import AccountSuspended
14
15
  from ccxt.base.errors import ArgumentsRequired
15
16
  from ccxt.base.errors import BadRequest
16
17
  from ccxt.base.errors import BadSymbol
@@ -368,6 +369,7 @@ class bingx(Exchange, ImplicitAPI):
368
369
  '80014': BadRequest,
369
370
  '80016': OrderNotFound,
370
371
  '80017': OrderNotFound,
372
+ '100414': AccountSuspended, # {"code":100414,"msg":"Code: 100414, Msg: risk control check fail,code(1)","debugMsg":""}
371
373
  '100437': BadRequest, # {"code":100437,"msg":"The withdrawal amount is lower than the minimum limit, please re-enter.","timestamp":1689258588845}
372
374
  },
373
375
  'broad': {},
@@ -1793,11 +1795,24 @@ class bingx(Exchange, ImplicitAPI):
1793
1795
  # }
1794
1796
  #
1795
1797
  if isinstance(response, str):
1798
+ # broken api engine : order-ids are too long numbers(i.e. 1742930526912864656)
1799
+ # and json.loadscan not handle them in JS, so we have to use .parse_json # however, when order has an attached SL/TP, their value types need extra parsing
1800
+ response = self.fix_stringified_json_members(response)
1796
1801
  response = self.parse_json(response)
1797
1802
  data = self.safe_value(response, 'data', {})
1798
1803
  order = self.safe_value(data, 'order', data)
1799
1804
  return self.parse_order(order, market)
1800
1805
 
1806
+ def fix_stringified_json_members(self, content):
1807
+ # when stringified json has members with their values also stringified, like:
1808
+ # '{"code":0, "data":{"order":{"orderId":1742968678528512345,"symbol":"BTC-USDT", "takeProfit":"{\"type\":\"TAKE_PROFIT\",\"stopPrice\":43320.1}","reduceOnly":false}}}'
1809
+ # we can fix with below manipulations
1810
+ # @ts-ignore
1811
+ modifiedContent = content.replace('\\', '')
1812
+ modifiedContent = modifiedContent.replace('"{', '{')
1813
+ modifiedContent = modifiedContent.replace('}"', '}')
1814
+ return modifiedContent
1815
+
1801
1816
  def create_orders(self, orders: List[OrderRequest], params={}):
1802
1817
  """
1803
1818
  create a list of trade orders
@@ -3323,6 +3323,7 @@ class bybit(Exchange, ImplicitAPI):
3323
3323
  """
3324
3324
  create a trade order
3325
3325
  :see: https://bybit-exchange.github.io/docs/v5/order/create-order
3326
+ :see: https://bybit-exchange.github.io/docs/v5/position/trading-stop
3326
3327
  :param str symbol: unified symbol of the market to create an order in
3327
3328
  :param str type: 'market' or 'limit'
3328
3329
  :param str side: 'buy' or 'sell'
@@ -3344,6 +3345,8 @@ class bybit(Exchange, ImplicitAPI):
3344
3345
  :param float [params.takeProfit.triggerPrice]: take profit trigger price
3345
3346
  :param dict [params.stopLoss]: *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
3346
3347
  :param float [params.stopLoss.triggerPrice]: stop loss trigger price
3348
+ :param str [params.trailingAmount]: the quote amount to trail away from the current market price
3349
+ :param str [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
3347
3350
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
3348
3351
  """
3349
3352
  self.load_markets()
@@ -3353,8 +3356,14 @@ class bybit(Exchange, ImplicitAPI):
3353
3356
  isUsdcSettled = market['settle'] == 'USDC'
3354
3357
  if isUsdcSettled and not isUnifiedAccount:
3355
3358
  return self.create_usdc_order(symbol, type, side, amount, price, params)
3359
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
3360
+ isTrailingAmountOrder = trailingAmount is not None
3356
3361
  orderRequest = self.create_order_request(symbol, type, side, amount, price, params)
3357
- response = self.privatePostV5OrderCreate(orderRequest) # already extended inside createOrderRequest
3362
+ response = None
3363
+ if isTrailingAmountOrder:
3364
+ response = self.privatePostV5PositionTradingStop(orderRequest)
3365
+ else:
3366
+ response = self.privatePostV5OrderCreate(orderRequest) # already extended inside createOrderRequest
3358
3367
  #
3359
3368
  # {
3360
3369
  # "retCode": 0,
@@ -3448,12 +3457,19 @@ class bybit(Exchange, ImplicitAPI):
3448
3457
  takeProfitTriggerPrice = self.safe_value(params, 'takeProfitPrice')
3449
3458
  stopLoss = self.safe_value(params, 'stopLoss')
3450
3459
  takeProfit = self.safe_value(params, 'takeProfit')
3460
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activePrice', price)
3461
+ trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
3462
+ isTrailingAmountOrder = trailingAmount is not None
3451
3463
  isStopLossTriggerOrder = stopLossTriggerPrice is not None
3452
3464
  isTakeProfitTriggerOrder = takeProfitTriggerPrice is not None
3453
3465
  isStopLoss = stopLoss is not None
3454
3466
  isTakeProfit = takeProfit is not None
3455
3467
  isBuy = side == 'buy'
3456
- if triggerPrice is not None:
3468
+ if isTrailingAmountOrder:
3469
+ if trailingTriggerPrice is not None:
3470
+ request['activePrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
3471
+ request['trailingStop'] = trailingAmount
3472
+ elif triggerPrice is not None:
3457
3473
  triggerDirection = self.safe_string(params, 'triggerDirection')
3458
3474
  params = self.omit(params, ['triggerPrice', 'stopPrice', 'triggerDirection'])
3459
3475
  if market['spot']:
@@ -3492,7 +3508,7 @@ class bybit(Exchange, ImplicitAPI):
3492
3508
  elif market['option']:
3493
3509
  # mandatory field for options
3494
3510
  request['orderLinkId'] = self.uuid16()
3495
- params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit'])
3511
+ params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit', 'trailingAmount', 'trailingTriggerPrice'])
3496
3512
  return self.extend(request, params)
3497
3513
 
3498
3514
  def create_orders(self, orders: List[OrderRequest], params={}):