ccxt 4.3.61 → 4.3.62

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 (71) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/binance.js +44 -34
  5. package/dist/cjs/src/bingx.js +41 -33
  6. package/dist/cjs/src/bybit.js +1 -1
  7. package/dist/cjs/src/pro/alpaca.js +3 -3
  8. package/dist/cjs/src/pro/binance.js +2 -4
  9. package/dist/cjs/src/pro/bingx.js +2 -2
  10. package/dist/cjs/src/pro/bitfinex2.js +2 -2
  11. package/dist/cjs/src/pro/bitget.js +1 -1
  12. package/dist/cjs/src/pro/bitmex.js +1 -1
  13. package/dist/cjs/src/pro/bitopro.js +1 -1
  14. package/dist/cjs/src/pro/bybit.js +5 -5
  15. package/dist/cjs/src/pro/coinbaseexchange.js +2 -2
  16. package/dist/cjs/src/pro/coincheck.js +1 -1
  17. package/dist/cjs/src/pro/coinone.js +1 -1
  18. package/dist/cjs/src/pro/cryptocom.js +1 -1
  19. package/dist/cjs/src/pro/deribit.js +1 -1
  20. package/dist/cjs/src/pro/gate.js +2 -2
  21. package/dist/cjs/src/pro/hollaex.js +1 -1
  22. package/dist/cjs/src/pro/htx.js +1 -1
  23. package/dist/cjs/src/pro/hyperliquid.js +3 -3
  24. package/dist/cjs/src/pro/kraken.js +1 -1
  25. package/dist/cjs/src/pro/kucoin.js +1 -1
  26. package/dist/cjs/src/pro/mexc.js +1 -1
  27. package/dist/cjs/src/pro/okx.js +1 -1
  28. package/dist/cjs/src/pro/oxfun.js +1 -1
  29. package/dist/cjs/src/pro/phemex.js +1 -1
  30. package/dist/cjs/src/pro/upbit.js +1 -1
  31. package/dist/cjs/src/pro/vertex.js +2 -2
  32. package/dist/cjs/src/pro/whitebit.js +1 -1
  33. package/dist/cjs/src/pro/woo.js +1 -1
  34. package/dist/cjs/src/tradeogre.js +1 -1
  35. package/dist/cjs/src/xt.js +1 -1
  36. package/js/ccxt.d.ts +1 -1
  37. package/js/ccxt.js +1 -1
  38. package/js/src/base/ws/Client.d.ts +1 -1
  39. package/js/src/binance.js +44 -34
  40. package/js/src/bingx.js +41 -33
  41. package/js/src/bybit.js +1 -1
  42. package/js/src/pro/alpaca.js +3 -3
  43. package/js/src/pro/binance.js +2 -4
  44. package/js/src/pro/bingx.js +2 -2
  45. package/js/src/pro/bitfinex2.js +2 -2
  46. package/js/src/pro/bitget.js +1 -1
  47. package/js/src/pro/bitmex.js +1 -1
  48. package/js/src/pro/bitopro.js +1 -1
  49. package/js/src/pro/bybit.js +5 -5
  50. package/js/src/pro/coinbaseexchange.js +2 -2
  51. package/js/src/pro/coincheck.js +1 -1
  52. package/js/src/pro/coinone.js +1 -1
  53. package/js/src/pro/cryptocom.js +1 -1
  54. package/js/src/pro/deribit.js +1 -1
  55. package/js/src/pro/gate.js +2 -2
  56. package/js/src/pro/hollaex.js +1 -1
  57. package/js/src/pro/htx.js +1 -1
  58. package/js/src/pro/hyperliquid.js +3 -3
  59. package/js/src/pro/kraken.js +1 -1
  60. package/js/src/pro/kucoin.js +1 -1
  61. package/js/src/pro/mexc.js +1 -1
  62. package/js/src/pro/okx.js +1 -1
  63. package/js/src/pro/oxfun.js +1 -1
  64. package/js/src/pro/phemex.js +1 -1
  65. package/js/src/pro/upbit.js +1 -1
  66. package/js/src/pro/vertex.js +2 -2
  67. package/js/src/pro/whitebit.js +1 -1
  68. package/js/src/pro/woo.js +1 -1
  69. package/js/src/tradeogre.js +1 -1
  70. package/js/src/xt.js +1 -1
  71. package/package.json +1 -1
@@ -131,7 +131,7 @@ export default class hyperliquid extends hyperliquidRest {
131
131
  * @param {int} [limit] the maximum number of order structures to retrieve
132
132
  * @param {object} [params] extra parameters specific to the exchange API endpoint
133
133
  * @param {string} [params.user] user address, will default to this.walletAddress if not provided
134
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
134
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
135
135
  */
136
136
  let userAddress = undefined;
137
137
  [userAddress, params] = this.handlePublicAddress('watchMyTrades', params);
@@ -222,7 +222,7 @@ export default class hyperliquid extends hyperliquidRest {
222
222
  * @param {int} [since] the earliest time in ms to fetch trades for
223
223
  * @param {int} [limit] the maximum number of trade structures to retrieve
224
224
  * @param {object} [params] extra parameters specific to the exchange API endpoint
225
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
225
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
226
226
  */
227
227
  await this.loadMarkets();
228
228
  const market = this.market(symbol);
@@ -422,7 +422,7 @@ export default class hyperliquid extends hyperliquidRest {
422
422
  * @param {int} [limit] the maximum number of order structures to retrieve
423
423
  * @param {object} [params] extra parameters specific to the exchange API endpoint
424
424
  * @param {string} [params.user] user address, will default to this.walletAddress if not provided
425
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
425
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
426
426
  */
427
427
  await this.loadMarkets();
428
428
  let userAddress = undefined;
@@ -884,7 +884,7 @@ export default class kraken extends krakenRest {
884
884
  * @param {int} [since] the earliest time in ms to fetch trades for
885
885
  * @param {int} [limit] the maximum number of trade structures to retrieve
886
886
  * @param {object} [params] extra parameters specific to the exchange API endpoint
887
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
887
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
888
888
  */
889
889
  return await this.watchPrivate('ownTrades', symbol, since, limit, params);
890
890
  }
@@ -990,7 +990,7 @@ export default class kucoin extends kucoinRest {
990
990
  * @param {int} [limit] the maximum number of trade structures to retrieve
991
991
  * @param {object} [params] extra parameters specific to the exchange API endpoint
992
992
  * @param {string} [params.method] '/spotMarket/tradeOrders' or '/spot/tradeFills' default is '/spotMarket/tradeOrders'
993
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
993
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
994
994
  */
995
995
  await this.loadMarkets();
996
996
  const url = await this.negotiate(true);
@@ -617,7 +617,7 @@ export default class mexc extends mexcRest {
617
617
  * @param {int} [since] the earliest time in ms to fetch trades for
618
618
  * @param {int} [limit] the maximum number of trade structures to retrieve
619
619
  * @param {object} [params] extra parameters specific to the exchange API endpoint
620
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
620
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
621
621
  */
622
622
  await this.loadMarkets();
623
623
  let messageHash = 'myTrades';
package/js/src/pro/okx.js CHANGED
@@ -1226,7 +1226,7 @@ export default class okx extends okxRest {
1226
1226
  * @param {bool} [params.stop] true if fetching trigger or conditional trades
1227
1227
  * @param {string} [params.type] 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
1228
1228
  * @param {string} [params.marginMode] 'cross' or 'isolated', for automatically setting the type to spot margin
1229
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
1229
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1230
1230
  */
1231
1231
  // By default, receive order updates from any instrument type
1232
1232
  let type = undefined;
@@ -80,7 +80,7 @@ export default class oxfun extends oxfunRest {
80
80
  * @param {int} [limit] the maximum number of trade structures to retrieve
81
81
  * @param {object} [params] extra parameters specific to the exchange API endpoint
82
82
  * @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
83
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
83
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
84
84
  */
85
85
  return await this.watchTradesForSymbols([symbol], since, limit, params);
86
86
  }
@@ -733,7 +733,7 @@ export default class phemex extends phemexRest {
733
733
  * @param {int} [since] the earliest time in ms to fetch trades for
734
734
  * @param {int} [limit] the maximum number of trade structures to retrieve
735
735
  * @param {object} [params] extra parameters specific to the exchange API endpoint
736
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
736
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
737
737
  */
738
738
  await this.loadMarkets();
739
739
  let market = undefined;
@@ -309,7 +309,7 @@ export default class upbit extends upbitRest {
309
309
  * @param {int} [since] the earliest time in ms to fetch orders for
310
310
  * @param {int} [limit] the maximum number of order structures to retrieve
311
311
  * @param {object} [params] extra parameters specific to the exchange API endpoint
312
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
312
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
313
313
  */
314
314
  await this.loadMarkets();
315
315
  const channel = 'myOrder';
@@ -87,7 +87,7 @@ export default class vertex extends vertexRest {
87
87
  * @param {int} [since] the earliest time in ms to fetch trades for
88
88
  * @param {int} [limit] the maximum number of trade structures to retrieve
89
89
  * @param {object} [params] extra parameters specific to the exchange API endpoint
90
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
90
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
91
91
  */
92
92
  await this.loadMarkets();
93
93
  const market = this.market(symbol);
@@ -148,7 +148,7 @@ export default class vertex extends vertexRest {
148
148
  * @param {int} [limit] the maximum number of order structures to retrieve
149
149
  * @param {object} [params] extra parameters specific to the exchange API endpoint
150
150
  * @param {string} [params.user] user address, will default to this.walletAddress if not provided
151
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
151
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
152
152
  */
153
153
  if (symbol === undefined) {
154
154
  throw new ArgumentsRequired(this.id + ' watchMyTrades requires a symbol.');
@@ -478,7 +478,7 @@ export default class whitebit extends whitebitRest {
478
478
  * @param {int} [since] the earliest time in ms to fetch orders for
479
479
  * @param {int} [limit] the maximum number of order structures to retrieve
480
480
  * @param {object} [params] extra parameters specific to the exchange API endpoint
481
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
481
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
482
482
  */
483
483
  if (symbol === undefined) {
484
484
  throw new ArgumentsRequired(this.id + ' watchOrders() requires a symbol argument');
package/js/src/pro/woo.js CHANGED
@@ -379,7 +379,7 @@ export default class woo extends wooRest {
379
379
  * @param {int} [since] the earliest time in ms to fetch trades for
380
380
  * @param {int} [limit] the maximum number of trade structures to retrieve
381
381
  * @param {object} [params] extra parameters specific to the exchange API endpoint
382
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
382
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
383
383
  */
384
384
  await this.loadMarkets();
385
385
  const market = this.market(symbol);
@@ -218,7 +218,7 @@ export default class tradeogre extends Exchange {
218
218
  'inverse': undefined,
219
219
  'contractSize': undefined,
220
220
  'taker': this.fees['trading']['taker'],
221
- 'maker': this.fees['trading']['taker'],
221
+ 'maker': this.fees['trading']['maker'],
222
222
  'expiry': undefined,
223
223
  'expiryDatetime': undefined,
224
224
  'strike': undefined,
package/js/src/xt.js CHANGED
@@ -4784,7 +4784,7 @@ export default class xt extends Exchange {
4784
4784
  if (isUndefinedBody) {
4785
4785
  if (urlencoded) {
4786
4786
  url += '?' + urlencoded;
4787
- payloadString += '#' + method + '#' + payload + '#' + urlencoded;
4787
+ payloadString += '#' + method + '#' + payload + '#' + this.rawencode(this.keysort(query));
4788
4788
  }
4789
4789
  else {
4790
4790
  payloadString += '#' + method + '#' + payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.3.61",
3
+ "version": "4.3.62",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",