ccxt 4.1.64 → 4.1.66

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 (293) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.js +2790 -2607
  3. package/dist/ccxt.browser.min.js +2 -2
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +13 -13
  6. package/dist/cjs/src/alpaca.js +10 -10
  7. package/dist/cjs/src/ascendex.js +33 -33
  8. package/dist/cjs/src/base/Exchange.js +232 -80
  9. package/dist/cjs/src/bigone.js +23 -23
  10. package/dist/cjs/src/binance.js +68 -68
  11. package/dist/cjs/src/binanceus.js +1 -0
  12. package/dist/cjs/src/bingx.js +33 -33
  13. package/dist/cjs/src/bit2c.js +11 -11
  14. package/dist/cjs/src/bitbank.js +14 -14
  15. package/dist/cjs/src/bitbns.js +15 -15
  16. package/dist/cjs/src/bitfinex.js +24 -24
  17. package/dist/cjs/src/bitfinex2.js +30 -30
  18. package/dist/cjs/src/bitflyer.js +17 -17
  19. package/dist/cjs/src/bitforex.js +12 -12
  20. package/dist/cjs/src/bitget.js +50 -50
  21. package/dist/cjs/src/bithumb.js +13 -13
  22. package/dist/cjs/src/bitmart.js +74 -59
  23. package/dist/cjs/src/bitmex.js +29 -28
  24. package/dist/cjs/src/bitopro.js +23 -23
  25. package/dist/cjs/src/bitpanda.js +25 -25
  26. package/dist/cjs/src/bitrue.js +26 -26
  27. package/dist/cjs/src/bitso.js +22 -22
  28. package/dist/cjs/src/bitstamp.js +24 -24
  29. package/dist/cjs/src/bittrex.js +31 -31
  30. package/dist/cjs/src/bitvavo.js +23 -23
  31. package/dist/cjs/src/bl3p.js +7 -7
  32. package/dist/cjs/src/blockchaincom.js +23 -23
  33. package/dist/cjs/src/btcalpha.js +17 -17
  34. package/dist/cjs/src/btcbox.js +9 -9
  35. package/dist/cjs/src/btcmarkets.js +19 -19
  36. package/dist/cjs/src/btcturk.js +13 -13
  37. package/dist/cjs/src/bybit.js +71 -67
  38. package/dist/cjs/src/cex.js +17 -17
  39. package/dist/cjs/src/coinbase.js +28 -28
  40. package/dist/cjs/src/coinbasepro.js +27 -27
  41. package/dist/cjs/src/coincheck.js +11 -11
  42. package/dist/cjs/src/coinex.js +42 -42
  43. package/dist/cjs/src/coinlist.js +29 -29
  44. package/dist/cjs/src/coinmate.js +14 -14
  45. package/dist/cjs/src/coinone.js +13 -13
  46. package/dist/cjs/src/coinsph.js +25 -25
  47. package/dist/cjs/src/coinspot.js +9 -9
  48. package/dist/cjs/src/cryptocom.js +33 -32
  49. package/dist/cjs/src/currencycom.js +24 -24
  50. package/dist/cjs/src/delta.js +29 -29
  51. package/dist/cjs/src/deribit.js +35 -35
  52. package/dist/cjs/src/digifinex.js +43 -43
  53. package/dist/cjs/src/exmo.js +30 -30
  54. package/dist/cjs/src/gate.js +46 -39
  55. package/dist/cjs/src/gemini.js +18 -18
  56. package/dist/cjs/src/hitbtc.js +40 -40
  57. package/dist/cjs/src/hollaex.js +26 -26
  58. package/dist/cjs/src/htx.js +48 -48
  59. package/dist/cjs/src/huobijp.js +24 -24
  60. package/dist/cjs/src/idex.js +23 -23
  61. package/dist/cjs/src/independentreserve.js +12 -12
  62. package/dist/cjs/src/indodax.js +16 -16
  63. package/dist/cjs/src/kraken.js +28 -28
  64. package/dist/cjs/src/krakenfutures.js +9 -9
  65. package/dist/cjs/src/kucoin.js +39 -39
  66. package/dist/cjs/src/kucoinfutures.js +24 -24
  67. package/dist/cjs/src/kuna.js +25 -25
  68. package/dist/cjs/src/latoken.js +20 -20
  69. package/dist/cjs/src/lbank.js +24 -24
  70. package/dist/cjs/src/luno.js +17 -17
  71. package/dist/cjs/src/lykke.js +18 -18
  72. package/dist/cjs/src/mercado.js +13 -13
  73. package/dist/cjs/src/mexc.js +47 -45
  74. package/dist/cjs/src/ndax.js +23 -23
  75. package/dist/cjs/src/novadax.js +23 -23
  76. package/dist/cjs/src/oceanex.js +19 -19
  77. package/dist/cjs/src/okcoin.js +25 -25
  78. package/dist/cjs/src/okx.js +53 -53
  79. package/dist/cjs/src/p2b.js +14 -14
  80. package/dist/cjs/src/paymium.js +10 -10
  81. package/dist/cjs/src/phemex.js +32 -32
  82. package/dist/cjs/src/poloniex.js +27 -27
  83. package/dist/cjs/src/poloniexfutures.js +21 -21
  84. package/dist/cjs/src/pro/alpaca.js +6 -6
  85. package/dist/cjs/src/pro/ascendex.js +5 -5
  86. package/dist/cjs/src/pro/binance.js +21 -21
  87. package/dist/cjs/src/pro/bingx.js +6 -6
  88. package/dist/cjs/src/pro/bitfinex.js +4 -4
  89. package/dist/cjs/src/pro/bitfinex2.js +7 -7
  90. package/dist/cjs/src/pro/bitget.js +12 -12
  91. package/dist/cjs/src/pro/bitmart.js +5 -5
  92. package/dist/cjs/src/pro/bitmex.js +8 -8
  93. package/dist/cjs/src/pro/bitopro.js +4 -4
  94. package/dist/cjs/src/pro/bitpanda.js +7 -7
  95. package/dist/cjs/src/pro/bitrue.js +2 -2
  96. package/dist/cjs/src/pro/bitstamp.js +3 -3
  97. package/dist/cjs/src/pro/bittrex.js +7 -7
  98. package/dist/cjs/src/pro/bitvavo.js +6 -6
  99. package/dist/cjs/src/pro/blockchaincom.js +6 -6
  100. package/dist/cjs/src/pro/bybit.js +12 -12
  101. package/dist/cjs/src/pro/cex.js +9 -9
  102. package/dist/cjs/src/pro/coinbase.js +6 -6
  103. package/dist/cjs/src/pro/coinbasepro.js +10 -10
  104. package/dist/cjs/src/pro/coinex.js +7 -7
  105. package/dist/cjs/src/pro/cryptocom.js +13 -13
  106. package/dist/cjs/src/pro/currencycom.js +5 -5
  107. package/dist/cjs/src/pro/deribit.js +7 -7
  108. package/dist/cjs/src/pro/exmo.js +5 -5
  109. package/dist/cjs/src/pro/gate.js +10 -10
  110. package/dist/cjs/src/pro/gemini.js +4 -4
  111. package/dist/cjs/src/pro/hitbtc.js +11 -11
  112. package/dist/cjs/src/pro/hollaex.js +5 -5
  113. package/dist/cjs/src/pro/htx.js +8 -8
  114. package/dist/cjs/src/pro/huobijp.js +4 -4
  115. package/dist/cjs/src/pro/idex.js +5 -5
  116. package/dist/cjs/src/pro/independentreserve.js +2 -2
  117. package/dist/cjs/src/pro/kraken.js +11 -11
  118. package/dist/cjs/src/pro/krakenfutures.js +8 -8
  119. package/dist/cjs/src/pro/kucoin.js +10 -10
  120. package/dist/cjs/src/pro/kucoinfutures.js +8 -8
  121. package/dist/cjs/src/pro/luno.js +4 -4
  122. package/dist/cjs/src/pro/mexc.js +7 -7
  123. package/dist/cjs/src/pro/ndax.js +4 -4
  124. package/dist/cjs/src/pro/okcoin.js +6 -6
  125. package/dist/cjs/src/pro/okx.js +16 -16
  126. package/dist/cjs/src/pro/phemex.js +7 -7
  127. package/dist/cjs/src/pro/poloniex.js +7 -7
  128. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  129. package/dist/cjs/src/pro/probit.js +6 -6
  130. package/dist/cjs/src/pro/upbit.js +3 -3
  131. package/dist/cjs/src/pro/wazirx.js +7 -7
  132. package/dist/cjs/src/pro/whitebit.js +7 -7
  133. package/dist/cjs/src/pro/woo.js +1 -1
  134. package/dist/cjs/src/probit.js +24 -24
  135. package/dist/cjs/src/tidex.js +15 -15
  136. package/dist/cjs/src/timex.js +19 -19
  137. package/dist/cjs/src/tokocrypto.js +21 -21
  138. package/dist/cjs/src/upbit.js +22 -22
  139. package/dist/cjs/src/wavesexchange.js +19 -19
  140. package/dist/cjs/src/wazirx.js +15 -15
  141. package/dist/cjs/src/whitebit.js +29 -29
  142. package/dist/cjs/src/woo.js +26 -26
  143. package/dist/cjs/src/yobit.js +17 -17
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +16 -16
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/mexc.d.ts +2 -0
  149. package/js/src/ace.js +13 -13
  150. package/js/src/alpaca.js +10 -10
  151. package/js/src/ascendex.js +33 -33
  152. package/js/src/base/Exchange.d.ts +20 -1
  153. package/js/src/base/Exchange.js +232 -80
  154. package/js/src/bigone.js +23 -23
  155. package/js/src/binance.js +68 -68
  156. package/js/src/binanceus.js +1 -0
  157. package/js/src/bingx.js +33 -33
  158. package/js/src/bit2c.js +11 -11
  159. package/js/src/bitbank.js +14 -14
  160. package/js/src/bitbns.js +15 -15
  161. package/js/src/bitfinex.js +24 -24
  162. package/js/src/bitfinex2.js +30 -30
  163. package/js/src/bitflyer.js +17 -17
  164. package/js/src/bitforex.js +12 -12
  165. package/js/src/bitget.js +50 -50
  166. package/js/src/bithumb.js +13 -13
  167. package/js/src/bitmart.js +74 -59
  168. package/js/src/bitmex.js +29 -28
  169. package/js/src/bitopro.js +23 -23
  170. package/js/src/bitpanda.js +25 -25
  171. package/js/src/bitrue.js +26 -26
  172. package/js/src/bitso.js +22 -22
  173. package/js/src/bitstamp.js +24 -24
  174. package/js/src/bittrex.js +31 -31
  175. package/js/src/bitvavo.js +23 -23
  176. package/js/src/bl3p.js +7 -7
  177. package/js/src/blockchaincom.js +23 -23
  178. package/js/src/btcalpha.js +17 -17
  179. package/js/src/btcbox.js +9 -9
  180. package/js/src/btcmarkets.js +19 -19
  181. package/js/src/btcturk.js +13 -13
  182. package/js/src/bybit.js +71 -67
  183. package/js/src/cex.js +17 -17
  184. package/js/src/coinbase.js +28 -28
  185. package/js/src/coinbasepro.js +27 -27
  186. package/js/src/coincheck.js +11 -11
  187. package/js/src/coinex.js +42 -42
  188. package/js/src/coinlist.js +29 -29
  189. package/js/src/coinmate.js +14 -14
  190. package/js/src/coinone.js +13 -13
  191. package/js/src/coinsph.js +25 -25
  192. package/js/src/coinspot.js +9 -9
  193. package/js/src/cryptocom.js +33 -32
  194. package/js/src/currencycom.js +24 -24
  195. package/js/src/delta.js +29 -29
  196. package/js/src/deribit.js +35 -35
  197. package/js/src/digifinex.js +43 -43
  198. package/js/src/exmo.js +30 -30
  199. package/js/src/gate.js +46 -39
  200. package/js/src/gemini.js +18 -18
  201. package/js/src/hitbtc.js +40 -40
  202. package/js/src/hollaex.js +26 -26
  203. package/js/src/htx.js +48 -48
  204. package/js/src/huobijp.js +24 -24
  205. package/js/src/idex.js +23 -23
  206. package/js/src/independentreserve.js +12 -12
  207. package/js/src/indodax.js +16 -16
  208. package/js/src/kraken.js +28 -28
  209. package/js/src/krakenfutures.js +9 -9
  210. package/js/src/kucoin.js +39 -39
  211. package/js/src/kucoinfutures.js +24 -24
  212. package/js/src/kuna.js +25 -25
  213. package/js/src/latoken.js +20 -20
  214. package/js/src/lbank.js +24 -24
  215. package/js/src/luno.js +17 -17
  216. package/js/src/lykke.js +18 -18
  217. package/js/src/mercado.js +13 -13
  218. package/js/src/mexc.js +47 -45
  219. package/js/src/ndax.js +23 -23
  220. package/js/src/novadax.js +23 -23
  221. package/js/src/oceanex.js +19 -19
  222. package/js/src/okcoin.js +25 -25
  223. package/js/src/okx.js +53 -53
  224. package/js/src/p2b.js +14 -14
  225. package/js/src/paymium.js +10 -10
  226. package/js/src/phemex.js +32 -32
  227. package/js/src/poloniex.js +27 -27
  228. package/js/src/poloniexfutures.js +21 -21
  229. package/js/src/pro/alpaca.js +6 -6
  230. package/js/src/pro/ascendex.js +5 -5
  231. package/js/src/pro/binance.js +21 -21
  232. package/js/src/pro/bingx.js +6 -6
  233. package/js/src/pro/bitfinex.js +4 -4
  234. package/js/src/pro/bitfinex2.js +7 -7
  235. package/js/src/pro/bitget.js +12 -12
  236. package/js/src/pro/bitmart.js +5 -5
  237. package/js/src/pro/bitmex.js +8 -8
  238. package/js/src/pro/bitopro.js +4 -4
  239. package/js/src/pro/bitpanda.js +7 -7
  240. package/js/src/pro/bitrue.js +2 -2
  241. package/js/src/pro/bitstamp.js +3 -3
  242. package/js/src/pro/bittrex.js +7 -7
  243. package/js/src/pro/bitvavo.js +6 -6
  244. package/js/src/pro/blockchaincom.js +6 -6
  245. package/js/src/pro/bybit.js +12 -12
  246. package/js/src/pro/cex.js +9 -9
  247. package/js/src/pro/coinbase.js +6 -6
  248. package/js/src/pro/coinbasepro.js +10 -10
  249. package/js/src/pro/coinex.js +7 -7
  250. package/js/src/pro/cryptocom.js +13 -13
  251. package/js/src/pro/currencycom.js +5 -5
  252. package/js/src/pro/deribit.js +7 -7
  253. package/js/src/pro/exmo.js +5 -5
  254. package/js/src/pro/gate.js +10 -10
  255. package/js/src/pro/gemini.js +4 -4
  256. package/js/src/pro/hitbtc.js +11 -11
  257. package/js/src/pro/hollaex.js +5 -5
  258. package/js/src/pro/htx.js +8 -8
  259. package/js/src/pro/huobijp.js +4 -4
  260. package/js/src/pro/idex.js +5 -5
  261. package/js/src/pro/independentreserve.js +2 -2
  262. package/js/src/pro/kraken.js +11 -11
  263. package/js/src/pro/krakenfutures.js +8 -8
  264. package/js/src/pro/kucoin.js +10 -10
  265. package/js/src/pro/kucoinfutures.js +8 -8
  266. package/js/src/pro/luno.js +4 -4
  267. package/js/src/pro/mexc.js +7 -7
  268. package/js/src/pro/ndax.js +4 -4
  269. package/js/src/pro/okcoin.js +6 -6
  270. package/js/src/pro/okx.js +16 -16
  271. package/js/src/pro/phemex.js +7 -7
  272. package/js/src/pro/poloniex.js +7 -7
  273. package/js/src/pro/poloniexfutures.js +5 -5
  274. package/js/src/pro/probit.js +6 -6
  275. package/js/src/pro/upbit.js +3 -3
  276. package/js/src/pro/wazirx.js +7 -7
  277. package/js/src/pro/whitebit.js +7 -7
  278. package/js/src/pro/woo.js +1 -1
  279. package/js/src/probit.js +24 -24
  280. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
  281. package/js/src/tidex.js +15 -15
  282. package/js/src/timex.js +19 -19
  283. package/js/src/tokocrypto.js +21 -21
  284. package/js/src/upbit.js +22 -22
  285. package/js/src/wavesexchange.js +19 -19
  286. package/js/src/wazirx.js +15 -15
  287. package/js/src/whitebit.js +29 -29
  288. package/js/src/woo.js +26 -26
  289. package/js/src/yobit.js +17 -17
  290. package/js/src/zaif.js +10 -10
  291. package/js/src/zonda.js +16 -16
  292. package/package.json +1 -1
  293. package/skip-tests.json +14 -7
@@ -376,7 +376,7 @@ export default class ascendex extends Exchange {
376
376
  * @method
377
377
  * @name ascendex#fetchCurrencies
378
378
  * @description fetches all available currencies on an exchange
379
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
379
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
380
380
  * @returns {object} an associative dictionary of currencies
381
381
  */
382
382
  const assets = await this.v1PublicGetAssets(params);
@@ -484,7 +484,7 @@ export default class ascendex extends Exchange {
484
484
  * @method
485
485
  * @name ascendex#fetchMarkets
486
486
  * @description retrieves data on all markets for ascendex
487
- * @param {object} [params] extra parameters specific to the exchange api endpoint
487
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
488
488
  * @returns {object[]} an array of objects representing market data
489
489
  */
490
490
  const products = await this.v1PublicGetProducts(params);
@@ -680,7 +680,7 @@ export default class ascendex extends Exchange {
680
680
  * @method
681
681
  * @name ascendex#fetchTime
682
682
  * @description fetches the current integer timestamp in milliseconds from the ascendex server
683
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
683
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
684
684
  * @returns {int} the current integer timestamp in milliseconds from the ascendex server
685
685
  */
686
686
  const request = {
@@ -705,7 +705,7 @@ export default class ascendex extends Exchange {
705
705
  * @method
706
706
  * @name ascendex#fetchAccounts
707
707
  * @description fetch all the accounts associated with a profile
708
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
708
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
709
709
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
710
710
  */
711
711
  let accountGroup = this.safeString(this.options, 'account-group');
@@ -803,7 +803,7 @@ export default class ascendex extends Exchange {
803
803
  * @method
804
804
  * @name ascendex#fetchBalance
805
805
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
806
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
806
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
807
807
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
808
808
  */
809
809
  await this.loadMarkets();
@@ -892,7 +892,7 @@ export default class ascendex extends Exchange {
892
892
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
893
893
  * @param {string} symbol unified symbol of the market to fetch the order book for
894
894
  * @param {int} [limit] the maximum amount of order book entries to return
895
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
895
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
896
896
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
897
897
  */
898
898
  await this.loadMarkets();
@@ -983,7 +983,7 @@ export default class ascendex extends Exchange {
983
983
  * @name ascendex#fetchTicker
984
984
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
985
985
  * @param {string} symbol unified symbol of the market to fetch the ticker for
986
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
986
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
987
987
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
988
988
  */
989
989
  await this.loadMarkets();
@@ -1015,11 +1015,11 @@ export default class ascendex extends Exchange {
1015
1015
  /**
1016
1016
  * @method
1017
1017
  * @name ascendex#fetchTickers
1018
- * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1018
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1019
1019
  * @see https://ascendex.github.io/ascendex-pro-api/#ticker
1020
1020
  * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
1021
1021
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1022
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1022
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1023
1023
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1024
1024
  */
1025
1025
  await this.loadMarkets();
@@ -1099,7 +1099,7 @@ export default class ascendex extends Exchange {
1099
1099
  * @param {string} timeframe the length of time each candle represents
1100
1100
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
1101
1101
  * @param {int} [limit] the maximum amount of candles to fetch
1102
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1102
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1103
1103
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1104
1104
  */
1105
1105
  await this.loadMarkets();
@@ -1193,7 +1193,7 @@ export default class ascendex extends Exchange {
1193
1193
  * @param {string} symbol unified symbol of the market to fetch trades for
1194
1194
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1195
1195
  * @param {int} [limit] the maximum amount of trades to fetch
1196
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1196
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1197
1197
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1198
1198
  */
1199
1199
  await this.loadMarkets();
@@ -1420,7 +1420,7 @@ export default class ascendex extends Exchange {
1420
1420
  * @method
1421
1421
  * @name ascendex#fetchTradingFees
1422
1422
  * @description fetch the trading fees for multiple markets
1423
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1423
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1424
1424
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1425
1425
  */
1426
1426
  await this.loadMarkets();
@@ -1475,7 +1475,7 @@ export default class ascendex extends Exchange {
1475
1475
  * @param {string} side 'buy' or 'sell'
1476
1476
  * @param {float} amount how much you want to trade in units of the base currency
1477
1477
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1478
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1478
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1479
1479
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
1480
1480
  * @param {bool} [params.postOnly] true or false
1481
1481
  * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
@@ -1660,7 +1660,7 @@ export default class ascendex extends Exchange {
1660
1660
  * @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
1661
1661
  * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
1662
1662
  * @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
1663
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1663
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1664
1664
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
1665
1665
  * @param {bool} [params.postOnly] true or false
1666
1666
  * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
@@ -1757,7 +1757,7 @@ export default class ascendex extends Exchange {
1757
1757
  * @name ascendex#fetchOrder
1758
1758
  * @description fetches information on an order made by the user
1759
1759
  * @param {string} symbol unified symbol of the market the order was made in
1760
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1760
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1761
1761
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1762
1762
  */
1763
1763
  await this.loadMarkets();
@@ -1870,7 +1870,7 @@ export default class ascendex extends Exchange {
1870
1870
  * @param {string} symbol unified market symbol
1871
1871
  * @param {int} [since] the earliest time in ms to fetch open orders for
1872
1872
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1873
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1873
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1874
1874
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1875
1875
  */
1876
1876
  await this.loadMarkets();
@@ -1993,7 +1993,7 @@ export default class ascendex extends Exchange {
1993
1993
  * @param {string} symbol unified market symbol of the market orders were made in
1994
1994
  * @param {int} [since] the earliest time in ms to fetch orders for
1995
1995
  * @param {int} [limit] the maximum number of orde structures to retrieve
1996
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
1996
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1997
1997
  * @param {int} [params.until] the latest time in ms to fetch orders for
1998
1998
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1999
1999
  */
@@ -2153,7 +2153,7 @@ export default class ascendex extends Exchange {
2153
2153
  * @description cancels an open order
2154
2154
  * @param {string} id order id
2155
2155
  * @param {string} symbol unified symbol of the market the order was made in
2156
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2156
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2157
2157
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2158
2158
  */
2159
2159
  if (symbol === undefined) {
@@ -2271,7 +2271,7 @@ export default class ascendex extends Exchange {
2271
2271
  * @name ascendex#cancelAllOrders
2272
2272
  * @description cancel all open orders
2273
2273
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
2274
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2274
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2275
2275
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2276
2276
  */
2277
2277
  await this.loadMarkets();
@@ -2397,7 +2397,7 @@ export default class ascendex extends Exchange {
2397
2397
  * @name ascendex#fetchDepositAddress
2398
2398
  * @description fetch the deposit address for a currency associated with this account
2399
2399
  * @param {string} code unified currency code
2400
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2400
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2401
2401
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2402
2402
  */
2403
2403
  await this.loadMarkets();
@@ -2471,7 +2471,7 @@ export default class ascendex extends Exchange {
2471
2471
  * @param {string} code unified currency code
2472
2472
  * @param {int} [since] the earliest time in ms to fetch deposits for
2473
2473
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2474
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2474
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2475
2475
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2476
2476
  */
2477
2477
  const request = {
@@ -2487,7 +2487,7 @@ export default class ascendex extends Exchange {
2487
2487
  * @param {string} code unified currency code
2488
2488
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2489
2489
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2490
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2490
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2491
2491
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2492
2492
  */
2493
2493
  const request = {
@@ -2503,7 +2503,7 @@ export default class ascendex extends Exchange {
2503
2503
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2504
2504
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2505
2505
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
2506
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2506
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2507
2507
  * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2508
2508
  */
2509
2509
  await this.loadMarkets();
@@ -2626,7 +2626,7 @@ export default class ascendex extends Exchange {
2626
2626
  * @name ascendex#fetchPositions
2627
2627
  * @description fetch all open positions
2628
2628
  * @param {string[]|undefined} symbols list of unified market symbols
2629
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2629
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2630
2630
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2631
2631
  */
2632
2632
  await this.loadMarkets();
@@ -2792,7 +2792,7 @@ export default class ascendex extends Exchange {
2792
2792
  * @name ascendex#fetchFundingRates
2793
2793
  * @description fetch the funding rate for multiple markets
2794
2794
  * @param {string[]|undefined} symbols list of unified market symbols
2795
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2795
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2796
2796
  * @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
2797
2797
  */
2798
2798
  await this.loadMarkets();
@@ -2874,7 +2874,7 @@ export default class ascendex extends Exchange {
2874
2874
  * @description remove margin from a position
2875
2875
  * @param {string} symbol unified market symbol
2876
2876
  * @param {float} amount the amount of margin to remove
2877
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2877
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2878
2878
  * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
2879
2879
  */
2880
2880
  return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
@@ -2886,7 +2886,7 @@ export default class ascendex extends Exchange {
2886
2886
  * @description add margin
2887
2887
  * @param {string} symbol unified market symbol
2888
2888
  * @param {float} amount amount of margin to add
2889
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2889
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2890
2890
  * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
2891
2891
  */
2892
2892
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
@@ -2899,7 +2899,7 @@ export default class ascendex extends Exchange {
2899
2899
  * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
2900
2900
  * @param {float} leverage the rate of leverage
2901
2901
  * @param {string} symbol unified market symbol
2902
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2902
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2903
2903
  * @returns {object} response from the exchange
2904
2904
  */
2905
2905
  if (symbol === undefined) {
@@ -2931,7 +2931,7 @@ export default class ascendex extends Exchange {
2931
2931
  * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
2932
2932
  * @param {string} marginMode 'cross' or 'isolated'
2933
2933
  * @param {string} symbol unified market symbol
2934
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2934
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2935
2935
  * @returns {object} response from the exchange
2936
2936
  */
2937
2937
  if (symbol === undefined) {
@@ -2965,7 +2965,7 @@ export default class ascendex extends Exchange {
2965
2965
  * @name ascendex#fetchLeverageTiers
2966
2966
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
2967
2967
  * @param {string[]|undefined} symbols list of unified market symbols
2968
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
2968
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2969
2969
  * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
2970
2970
  */
2971
2971
  await this.loadMarkets();
@@ -3106,7 +3106,7 @@ export default class ascendex extends Exchange {
3106
3106
  * @description fetch deposit and withdraw fees
3107
3107
  * @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
3108
3108
  * @param {string[]|undefined} codes list of unified currency codes
3109
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
3109
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3110
3110
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
3111
3111
  */
3112
3112
  await this.loadMarkets();
@@ -3123,7 +3123,7 @@ export default class ascendex extends Exchange {
3123
3123
  * @param {float} amount amount to transfer
3124
3124
  * @param {string} fromAccount account to transfer from
3125
3125
  * @param {string} toAccount account to transfer to
3126
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
3126
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3127
3127
  * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
3128
3128
  */
3129
3129
  await this.loadMarkets();
@@ -3194,7 +3194,7 @@ export default class ascendex extends Exchange {
3194
3194
  * @param {string} [symbol] unified market symbol
3195
3195
  * @param {int} [since] the earliest time in ms to fetch funding history for
3196
3196
  * @param {int} [limit] the maximum number of funding history structures to retrieve
3197
- * @param {object} [params] extra parameters specific to the ascendex api endpoint
3197
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3198
3198
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3199
3199
  * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
3200
3200
  */
@@ -37,10 +37,17 @@ export default class Exchange {
37
37
  user_agent: {
38
38
  'User-Agent': string;
39
39
  } | false;
40
+ wsProxy: string;
41
+ ws_proxy: string;
42
+ wssProxy: string;
43
+ wss_proxy: string;
40
44
  userAgents: any;
41
45
  headers: any;
42
46
  origin: string;
43
47
  agent: any;
48
+ nodeHttpModuleLoaded: boolean;
49
+ httpAgent: any;
50
+ httpsAgent: any;
44
51
  minFundingAddressLength: number;
45
52
  substituteCommonCurrencyCodes: boolean;
46
53
  quoteJsonNumbers: boolean;
@@ -493,6 +500,14 @@ export default class Exchange {
493
500
  defineRestApiEndpoint(methodName: any, uppercaseMethod: any, lowercaseMethod: any, camelcaseMethod: any, path: any, paths: any, config?: {}): void;
494
501
  defineRestApi(api: any, methodName: any, paths?: any[]): void;
495
502
  log(...args: any[]): void;
503
+ httpProxyAgentModule: any;
504
+ httpsProxyAgentModule: any;
505
+ socksProxyAgentModule: any;
506
+ socksProxyAgentModuleChecked: boolean;
507
+ proxyDictionaries: any;
508
+ proxyModulesLoaded: boolean;
509
+ loadProxyModules(): Promise<void>;
510
+ setProxyAgents(httpProxy: any, httpsProxy: any, socksProxy: any): any;
496
511
  fetch(url: any, method?: string, headers?: any, body?: any): Promise<any>;
497
512
  parseJson(jsonString: any): any;
498
513
  getResponseHeaders(response: any): {};
@@ -526,12 +541,16 @@ export default class Exchange {
526
541
  valueIsDefined(value: any): boolean;
527
542
  arraySlice(array: any, first: any, second?: any): any;
528
543
  getProperty(obj: any, property: any, defaultValue?: any): any;
544
+ setProperty(obj: any, property: any, defaultValue?: any): void;
529
545
  axolotl(payload: any, hexKey: any, ed25519: any): string;
530
546
  handleDeltas(orderbook: any, deltas: any): void;
531
547
  handleDelta(bookside: any, delta: any): void;
532
548
  getCacheIndex(orderbook: any, deltas: any): number;
533
549
  findTimeframe(timeframe: any, timeframes?: any): string;
534
- checkProxySettings(url: any, method: any, headers: any, body: any): string[];
550
+ checkProxyUrlSettings(url?: any, method?: any, headers?: any, body?: any): any;
551
+ checkProxySettings(url?: any, method?: any, headers?: any, body?: any): any[];
552
+ checkWsProxySettings(): any[];
553
+ checkConflictingProxies(proxyAgentSet: any, proxyUrlSet: any): void;
535
554
  findMessageHashes(client: any, element: string): string[];
536
555
  filterByLimit(array: object[], limit?: Int, key?: IndexType): any;
537
556
  filterBySinceLimit(array: object[], since?: Int, limit?: Int, key?: IndexType, tail?: boolean): any;