ccxt 4.1.6 → 4.1.8

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 (56) hide show
  1. package/CHANGELOG.md +194 -0
  2. package/README.md +3 -3
  3. package/dist/ccxt.browser.js +142 -97
  4. package/dist/ccxt.browser.min.js +2 -2
  5. package/dist/cjs/ccxt.js +1 -1
  6. package/dist/cjs/src/binance.js +11 -11
  7. package/dist/cjs/src/bingx.js +2 -2
  8. package/dist/cjs/src/bitbns.js +3 -3
  9. package/dist/cjs/src/bitfinex2.js +5 -5
  10. package/dist/cjs/src/bitget.js +6 -6
  11. package/dist/cjs/src/bitmart.js +2 -0
  12. package/dist/cjs/src/bitmex.js +4 -4
  13. package/dist/cjs/src/bybit.js +7 -7
  14. package/dist/cjs/src/coinbase.js +5 -5
  15. package/dist/cjs/src/coinbasepro.js +3 -3
  16. package/dist/cjs/src/coinfalcon.js +3 -3
  17. package/dist/cjs/src/cryptocom.js +5 -5
  18. package/dist/cjs/src/gate.js +6 -6
  19. package/dist/cjs/src/huobi.js +4 -4
  20. package/dist/cjs/src/kraken.js +1 -1
  21. package/dist/cjs/src/krakenfutures.js +2 -2
  22. package/dist/cjs/src/kucoin.js +9 -9
  23. package/dist/cjs/src/kucoinfutures.js +6 -6
  24. package/dist/cjs/src/mexc.js +46 -3
  25. package/dist/cjs/src/okx.js +8 -8
  26. package/dist/cjs/src/poloniex.js +2 -2
  27. package/dist/cjs/src/pro/exmo.js +1 -1
  28. package/js/ccxt.d.ts +1 -1
  29. package/js/ccxt.js +1 -1
  30. package/js/src/abstract/bitmart.d.ts +1 -0
  31. package/js/src/abstract/mexc.d.ts +2 -0
  32. package/js/src/abstract/mexc3.d.ts +2 -0
  33. package/js/src/binance.js +11 -11
  34. package/js/src/bingx.js +2 -2
  35. package/js/src/bitbns.js +3 -3
  36. package/js/src/bitfinex2.js +5 -5
  37. package/js/src/bitget.js +6 -6
  38. package/js/src/bitmart.js +2 -0
  39. package/js/src/bitmex.js +4 -4
  40. package/js/src/bybit.js +7 -7
  41. package/js/src/coinbase.js +5 -5
  42. package/js/src/coinbasepro.js +3 -3
  43. package/js/src/coinfalcon.js +3 -3
  44. package/js/src/cryptocom.js +5 -5
  45. package/js/src/gate.js +6 -6
  46. package/js/src/huobi.js +4 -4
  47. package/js/src/kraken.js +1 -1
  48. package/js/src/krakenfutures.js +2 -2
  49. package/js/src/kucoin.js +9 -9
  50. package/js/src/kucoinfutures.js +6 -6
  51. package/js/src/mexc.d.ts +1 -1
  52. package/js/src/mexc.js +46 -3
  53. package/js/src/okx.js +8 -8
  54. package/js/src/poloniex.js +2 -2
  55. package/js/src/pro/exmo.js +1 -1
  56. package/package.json +1 -1
@@ -2365,7 +2365,7 @@ class huobi extends huobi$1 {
2365
2365
  * @param {int} [limit] the maximum number of trades structures to retrieve
2366
2366
  * @param {object} [params] extra parameters specific to the huobi api endpoint
2367
2367
  * @param {int} [params.until] the latest time in ms to fetch trades for
2368
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2368
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2369
2369
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2370
2370
  */
2371
2371
  await this.loadMarkets();
@@ -2642,7 +2642,7 @@ class huobi extends huobi$1 {
2642
2642
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
2643
2643
  * @param {int} [limit] the maximum amount of candles to fetch
2644
2644
  * @param {object} [params] extra parameters specific to the huobi api endpoint
2645
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2645
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2646
2646
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
2647
2647
  */
2648
2648
  await this.loadMarkets();
@@ -3924,7 +3924,7 @@ class huobi extends huobi$1 {
3924
3924
  * @param {int} [limit] the maximum number of orde structures to retrieve
3925
3925
  * @param {object} [params] extra parameters specific to the huobi api endpoint
3926
3926
  * @param {int} [params.until] the latest time in ms to fetch entries for
3927
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3927
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3928
3928
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3929
3929
  */
3930
3930
  await this.loadMarkets();
@@ -7292,7 +7292,7 @@ class huobi extends huobi$1 {
7292
7292
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
7293
7293
  * @param {object} [params] extra parameters specific to the huobi api endpoint
7294
7294
  * @param {int} [params.until] the latest time in ms to fetch entries for
7295
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7295
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7296
7296
  * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
7297
7297
  */
7298
7298
  await this.loadMarkets();
@@ -860,7 +860,7 @@ class kraken extends kraken$1 {
860
860
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
861
861
  * @param {int} [limit] the maximum amount of candles to fetch
862
862
  * @param {object} [params] extra parameters specific to the kraken api endpoint
863
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
863
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
864
864
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
865
865
  */
866
866
  await this.loadMarkets();
@@ -571,7 +571,7 @@ class krakenfutures extends krakenfutures$1 {
571
571
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
572
572
  * @param {int} [limit] the maximum amount of candles to fetch
573
573
  * @param {object} [params] extra parameters specific to the kraken api endpoint
574
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
574
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
575
575
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
576
576
  */
577
577
  await this.loadMarkets();
@@ -657,7 +657,7 @@ class krakenfutures extends krakenfutures$1 {
657
657
  * @param {int} [limit] Total number of trades, cannot exceed 100
658
658
  * @param {object} [params] Exchange specific params
659
659
  * @param {int} [params.until] Timestamp in ms of latest trade
660
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
660
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
661
661
  * @returns An array of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
662
662
  */
663
663
  await this.loadMarkets();
@@ -1558,7 +1558,7 @@ class kucoin extends kucoin$1 {
1558
1558
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
1559
1559
  * @param {int} [limit] the maximum amount of candles to fetch
1560
1560
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
1561
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1561
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1562
1562
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1563
1563
  */
1564
1564
  await this.loadMarkets();
@@ -2222,10 +2222,10 @@ class kucoin extends kucoin$1 {
2222
2222
  * @param {string} [params.tradeType] TRADE for spot trading, MARGIN_TRADE for Margin Trading
2223
2223
  * @param {bool} [params.stop] True if fetching a stop order
2224
2224
  * @param {bool} [params.hf] false, // true for hf order
2225
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2225
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2226
2226
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2227
2227
  */
2228
- await this.loadMarkets;
2228
+ await this.loadMarkets();
2229
2229
  let paginate = false;
2230
2230
  [paginate, params] = this.handleOptionAndParams(params, 'fetchClosedOrders', 'paginate');
2231
2231
  if (paginate) {
@@ -2255,10 +2255,10 @@ class kucoin extends kucoin$1 {
2255
2255
  * @param {string} [params.orderIds] *stop orders only* comma seperated order ID list
2256
2256
  * @param {bool} [params.stop] True if fetching a stop order
2257
2257
  * @param {bool} [params.hf] false, // true for hf order
2258
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2258
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2259
2259
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2260
2260
  */
2261
- await this.loadMarkets;
2261
+ await this.loadMarkets();
2262
2262
  let paginate = false;
2263
2263
  [paginate, params] = this.handleOptionAndParams(params, 'fetchOpenOrders', 'paginate');
2264
2264
  if (paginate) {
@@ -2552,7 +2552,7 @@ class kucoin extends kucoin$1 {
2552
2552
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
2553
2553
  * @param {int} [params.until] the latest time in ms to fetch entries for
2554
2554
  * @param {bool} [params.hf] false, // true for hf order
2555
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2555
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2556
2556
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2557
2557
  */
2558
2558
  await this.loadMarkets();
@@ -3055,7 +3055,7 @@ class kucoin extends kucoin$1 {
3055
3055
  * @param {int} [limit] the maximum number of deposits structures to retrieve
3056
3056
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
3057
3057
  * @param {int} [params.until] the latest time in ms to fetch entries for
3058
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3058
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3059
3059
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
3060
3060
  */
3061
3061
  await this.loadMarkets();
@@ -3139,7 +3139,7 @@ class kucoin extends kucoin$1 {
3139
3139
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
3140
3140
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
3141
3141
  * @param {int} [params.until] the latest time in ms to fetch entries for
3142
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3142
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3143
3143
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
3144
3144
  */
3145
3145
  await this.loadMarkets();
@@ -3663,7 +3663,7 @@ class kucoin extends kucoin$1 {
3663
3663
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
3664
3664
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
3665
3665
  * @param {int} [params.until] the latest time in ms to fetch entries for
3666
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3666
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3667
3667
  * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
3668
3668
  */
3669
3669
  await this.loadMarkets();
@@ -537,7 +537,7 @@ class kucoinfutures extends kucoinfutures$1 {
537
537
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
538
538
  * @param {int} [limit] the maximum amount of candles to fetch
539
539
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
540
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
540
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
541
541
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
542
542
  */
543
543
  await this.loadMarkets();
@@ -1425,7 +1425,7 @@ class kucoinfutures extends kucoinfutures$1 {
1425
1425
  * @param {int} [params.until] End time in ms
1426
1426
  * @param {string} [params.side] buy or sell
1427
1427
  * @param {string} [params.type] limit or market
1428
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1428
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1429
1429
  * @returns An [array of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1430
1430
  */
1431
1431
  await this.loadMarkets();
@@ -1531,10 +1531,10 @@ class kucoinfutures extends kucoinfutures$1 {
1531
1531
  * @param {int} [params.till] end time in ms
1532
1532
  * @param {string} [params.side] buy or sell
1533
1533
  * @param {string} [params.type] limit, or market
1534
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1534
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1535
1535
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1536
1536
  */
1537
- await this.loadMarkets;
1537
+ await this.loadMarkets();
1538
1538
  let paginate = false;
1539
1539
  [paginate, params] = this.handleOptionAndParams(params, 'fetchClosedOrders', 'paginate');
1540
1540
  if (paginate) {
@@ -1905,7 +1905,7 @@ class kucoinfutures extends kucoinfutures$1 {
1905
1905
  * @param {int} [limit] the maximum number of trades structures to retrieve
1906
1906
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
1907
1907
  * @param {int} [params.until] End time in ms
1908
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1908
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1909
1909
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1910
1910
  */
1911
1911
  await this.loadMarkets();
@@ -2331,7 +2331,7 @@ class kucoinfutures extends kucoinfutures$1 {
2331
2331
  * @param {int} [since] not used by kucuoinfutures
2332
2332
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
2333
2333
  * @param {object} [params] extra parameters specific to the okx api endpoint
2334
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2334
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2335
2335
  * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2336
2336
  */
2337
2337
  if (symbol === undefined) {
@@ -193,6 +193,8 @@ class mexc extends mexc$1 {
193
193
  'rebate/detail/kickback': 1,
194
194
  'rebate/referCode': 1,
195
195
  'rebate/affiliate/commission': 1,
196
+ 'rebate/affiliate/withdraw': 1,
197
+ 'rebate/affiliate/commission/detail': 1,
196
198
  'mxDeduct/enable': 1,
197
199
  'userDataStream': 1,
198
200
  },
@@ -1357,11 +1359,15 @@ class mexc extends mexc$1 {
1357
1359
  /**
1358
1360
  * @method
1359
1361
  * @name mexc3#fetchTrades
1362
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#recent-trades-list
1363
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#compressed-aggregate-trades-list
1364
+ * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-data
1360
1365
  * @description get the list of most recent trades for a particular symbol
1361
1366
  * @param {string} symbol unified symbol of the market to fetch trades for
1362
1367
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1363
1368
  * @param {int} [limit] the maximum amount of trades to fetch
1364
1369
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1370
+ * @param {int} [params.until] *spot only* *since must be defined* the latest time in ms to fetch entries for
1365
1371
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1366
1372
  */
1367
1373
  await this.loadMarkets();
@@ -1372,11 +1378,21 @@ class mexc extends mexc$1 {
1372
1378
  if (limit !== undefined) {
1373
1379
  request['limit'] = limit;
1374
1380
  }
1375
- // if (since !== undefined) {
1376
- // request['startTime'] = since; bug in api, waiting for fix
1377
- // }
1378
1381
  let trades = undefined;
1379
1382
  if (market['spot']) {
1383
+ const until = this.safeIntegerN(params, ['endTime', 'until', 'till']);
1384
+ if (since !== undefined) {
1385
+ request['startTime'] = since;
1386
+ if (until === undefined) {
1387
+ throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires an until parameter when since is provided');
1388
+ }
1389
+ }
1390
+ if (until !== undefined) {
1391
+ if (since === undefined) {
1392
+ throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires a since parameter when until is provided');
1393
+ }
1394
+ request['endTime'] = until;
1395
+ }
1380
1396
  let method = this.safeString(this.options, 'fetchTradesMethod', 'spotPublicGetAggTrades');
1381
1397
  method = this.safeString(params, 'method', method); // AggTrades, HistoricalTrades, Trades
1382
1398
  trades = await this[method](this.extend(request, params));
@@ -1607,31 +1623,53 @@ class mexc extends mexc$1 {
1607
1623
  /**
1608
1624
  * @method
1609
1625
  * @name mexc3#fetchOHLCV
1626
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
1627
+ * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#k-line-data
1610
1628
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1611
1629
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1612
1630
  * @param {string} timeframe the length of time each candle represents
1613
1631
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
1614
1632
  * @param {int} [limit] the maximum amount of candles to fetch
1615
1633
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1634
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
1635
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1616
1636
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1617
1637
  */
1618
1638
  await this.loadMarkets();
1619
1639
  const market = this.market(symbol);
1640
+ const maxLimit = (market['spot']) ? 1000 : 2000;
1641
+ let paginate = false;
1642
+ [paginate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'paginate', false);
1643
+ if (paginate) {
1644
+ return await this.fetchPaginatedCallDeterministic('fetchOHLCV', symbol, since, limit, timeframe, params, maxLimit);
1645
+ }
1620
1646
  const options = this.safeValue(this.options, 'timeframes', {});
1621
1647
  const timeframes = this.safeValue(options, market['type'], {});
1622
1648
  const timeframeValue = this.safeString(timeframes, timeframe);
1649
+ const duration = this.parseTimeframe(timeframe) * 1000;
1623
1650
  const request = {
1624
1651
  'symbol': market['id'],
1625
1652
  'interval': timeframeValue,
1626
1653
  };
1627
1654
  let candles = undefined;
1628
1655
  if (market['spot']) {
1656
+ const until = this.safeIntegerN(params, ['until', 'endTime', 'till']);
1629
1657
  if (since !== undefined) {
1630
1658
  request['startTime'] = since;
1659
+ if (until === undefined) {
1660
+ // we have to calculate it assuming we can get at most 2000 entries per request
1661
+ const end = this.sum(since, maxLimit * duration);
1662
+ const now = this.milliseconds();
1663
+ request['endTime'] = Math.min(end, now);
1664
+ }
1631
1665
  }
1632
1666
  if (limit !== undefined) {
1633
1667
  request['limit'] = limit;
1634
1668
  }
1669
+ if (until !== undefined) {
1670
+ params = this.omit(params, ['until', 'till']);
1671
+ request['endTime'] = until;
1672
+ }
1635
1673
  const response = await this.spotPublicGetKlines(this.extend(request, params));
1636
1674
  //
1637
1675
  // [
@@ -1650,9 +1688,14 @@ class mexc extends mexc$1 {
1650
1688
  candles = response;
1651
1689
  }
1652
1690
  else if (market['swap']) {
1691
+ const until = this.safeIntegerProductN(params, ['until', 'endTime', 'till'], 0.001);
1653
1692
  if (since !== undefined) {
1654
1693
  request['start'] = this.parseToInt(since / 1000);
1655
1694
  }
1695
+ if (until !== undefined) {
1696
+ params = this.omit(params, ['until', 'till']);
1697
+ request['end'] = until;
1698
+ }
1656
1699
  const priceType = this.safeString(params, 'price', 'default');
1657
1700
  params = this.omit(params, 'price');
1658
1701
  const method = this.getSupportedMapping(priceType, {
@@ -2051,7 +2051,7 @@ class okx extends okx$1 {
2051
2051
  * @param {object} [params] extra parameters specific to the okx api endpoint
2052
2052
  * @param {string} [params.price] "mark" or "index" for mark price and index price candles
2053
2053
  * @param {int} [params.until] timestamp in ms of the latest candle to fetch
2054
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2054
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2055
2055
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
2056
2056
  */
2057
2057
  await this.loadMarkets();
@@ -2151,7 +2151,7 @@ class okx extends okx$1 {
2151
2151
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2152
2152
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
2153
2153
  * @param {object} [params] extra parameters specific to the okx api endpoint
2154
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2154
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2155
2155
  * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2156
2156
  */
2157
2157
  if (symbol === undefined) {
@@ -3395,7 +3395,7 @@ class okx extends okx$1 {
3395
3395
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
3396
3396
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3397
3397
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
3398
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3398
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3399
3399
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3400
3400
  */
3401
3401
  await this.loadMarkets();
@@ -3727,7 +3727,7 @@ class okx extends okx$1 {
3727
3727
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3728
3728
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
3729
3729
  * @param {int} [params.until] timestamp in ms to fetch orders for
3730
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3730
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3731
3731
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3732
3732
  */
3733
3733
  await this.loadMarkets();
@@ -3896,7 +3896,7 @@ class okx extends okx$1 {
3896
3896
  * @param {int} [limit] the maximum number of trades structures to retrieve
3897
3897
  * @param {object} [params] extra parameters specific to the okx api endpoint
3898
3898
  * @param {int} [params.until] Timestamp in ms of the latest time to retrieve trades for
3899
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3899
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3900
3900
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3901
3901
  */
3902
3902
  await this.loadMarkets();
@@ -3990,7 +3990,7 @@ class okx extends okx$1 {
3990
3990
  * @param {object} [params] extra parameters specific to the okx api endpoint
3991
3991
  * @param {string} [params.marginMode] 'cross' or 'isolated'
3992
3992
  * @param {int} [params.until] the latest time in ms to fetch entries for
3993
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3993
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3994
3994
  * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
3995
3995
  */
3996
3996
  await this.loadMarkets();
@@ -4454,7 +4454,7 @@ class okx extends okx$1 {
4454
4454
  * @param {int} [limit] the maximum number of deposits structures to retrieve
4455
4455
  * @param {object} [params] extra parameters specific to the okx api endpoint
4456
4456
  * @param {int} [params.until] the latest time in ms to fetch entries for
4457
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4457
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4458
4458
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4459
4459
  */
4460
4460
  await this.loadMarkets();
@@ -4560,7 +4560,7 @@ class okx extends okx$1 {
4560
4560
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
4561
4561
  * @param {object} [params] extra parameters specific to the okx api endpoint
4562
4562
  * @param {int} [params.until] the latest time in ms to fetch entries for
4563
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4563
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4564
4564
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4565
4565
  */
4566
4566
  await this.loadMarkets();
@@ -398,7 +398,7 @@ class poloniex extends poloniex$1 {
398
398
  * @param {int} [limit] the maximum amount of candles to fetch
399
399
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
400
400
  * @param {int} [params.until] timestamp in ms
401
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
401
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
402
402
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
403
403
  */
404
404
  await this.loadMarkets();
@@ -960,7 +960,7 @@ class poloniex extends poloniex$1 {
960
960
  * @param {int} [limit] the maximum number of trades structures to retrieve
961
961
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
962
962
  * @param {int} [params.until] the latest time in ms to fetch entries for
963
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
963
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
964
964
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
965
965
  */
966
966
  await this.loadMarkets();
@@ -513,7 +513,7 @@ class exmo extends exmo$1 {
513
513
  const symbol = this.safeSymbol(marketId);
514
514
  const orderBook = this.safeValue(message, 'data', {});
515
515
  const messageHash = 'orderbook:' + symbol;
516
- const timestamp = this.safeNumber(message, 'ts');
516
+ const timestamp = this.safeInteger(message, 'ts');
517
517
  let storedOrderBook = this.safeValue(this.orderbooks, symbol);
518
518
  if (storedOrderBook === undefined) {
519
519
  storedOrderBook = this.orderBook({});
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.5";
7
+ declare const version = "4.1.7";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.6';
41
+ const version = '4.1.8';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -52,6 +52,7 @@ interface Exchange {
52
52
  privateGetSpotV1MarginIsolatedAccount(params?: {}): Promise<implicitReturnType>;
53
53
  privateGetSpotV1TradeFee(params?: {}): Promise<implicitReturnType>;
54
54
  privateGetSpotV1UserFee(params?: {}): Promise<implicitReturnType>;
55
+ privateGetSpotV1BrokerRebate(params?: {}): Promise<implicitReturnType>;
55
56
  privateGetContractPrivateAssetsDetail(params?: {}): Promise<implicitReturnType>;
56
57
  privateGetContractPrivateOrder(params?: {}): Promise<implicitReturnType>;
57
58
  privateGetContractPrivateOrderHistory(params?: {}): Promise<implicitReturnType>;
@@ -49,6 +49,8 @@ interface Exchange {
49
49
  spotPrivateGetRebateDetailKickback(params?: {}): Promise<implicitReturnType>;
50
50
  spotPrivateGetRebateReferCode(params?: {}): Promise<implicitReturnType>;
51
51
  spotPrivateGetRebateAffiliateCommission(params?: {}): Promise<implicitReturnType>;
52
+ spotPrivateGetRebateAffiliateWithdraw(params?: {}): Promise<implicitReturnType>;
53
+ spotPrivateGetRebateAffiliateCommissionDetail(params?: {}): Promise<implicitReturnType>;
52
54
  spotPrivateGetMxDeductEnable(params?: {}): Promise<implicitReturnType>;
53
55
  spotPrivateGetUserDataStream(params?: {}): Promise<implicitReturnType>;
54
56
  spotPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
@@ -49,6 +49,8 @@ interface mexc {
49
49
  spotPrivateGetRebateDetailKickback(params?: {}): Promise<implicitReturnType>;
50
50
  spotPrivateGetRebateReferCode(params?: {}): Promise<implicitReturnType>;
51
51
  spotPrivateGetRebateAffiliateCommission(params?: {}): Promise<implicitReturnType>;
52
+ spotPrivateGetRebateAffiliateWithdraw(params?: {}): Promise<implicitReturnType>;
53
+ spotPrivateGetRebateAffiliateCommissionDetail(params?: {}): Promise<implicitReturnType>;
52
54
  spotPrivateGetMxDeductEnable(params?: {}): Promise<implicitReturnType>;
53
55
  spotPrivateGetUserDataStream(params?: {}): Promise<implicitReturnType>;
54
56
  spotPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
package/js/src/binance.js CHANGED
@@ -3324,7 +3324,7 @@ export default class binance extends Exchange {
3324
3324
  * @param {object} [params] extra parameters specific to the binance api endpoint
3325
3325
  * @param {string} [params.price] "mark" or "index" for mark price and index price candles
3326
3326
  * @param {int} [params.until] timestamp in ms of the latest candle to fetch
3327
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3327
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3328
3328
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
3329
3329
  */
3330
3330
  await this.loadMarkets();
@@ -3667,7 +3667,7 @@ export default class binance extends Exchange {
3667
3667
  * @param {object} [params] extra parameters specific to the binance api endpoint
3668
3668
  * @param {int} [params.until] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
3669
3669
  * @param {int} [params.fetchTradesMethod] 'publicGetAggTrades' (spot default), 'fapiPublicGetAggTrades' (swap default), 'dapiPublicGetAggTrades' (future default), 'eapiPublicGetTrades' (option default), 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', 'publicGetHistoricalTrades', 'fapiPublicGetHistoricalTrades', 'dapiPublicGetHistoricalTrades', 'eapiPublicGetHistoricalTrades'
3670
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3670
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3671
3671
  *
3672
3672
  * EXCHANGE SPECIFIC PARAMETERS
3673
3673
  * @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
@@ -4711,7 +4711,7 @@ export default class binance extends Exchange {
4711
4711
  * @param {object} [params] extra parameters specific to the binance api endpoint
4712
4712
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4713
4713
  * @param {int} [params.until] the latest time in ms to fetch orders for
4714
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4714
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4715
4715
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4716
4716
  */
4717
4717
  this.checkRequiredSymbol('fetchOrders', symbol);
@@ -4922,7 +4922,7 @@ export default class binance extends Exchange {
4922
4922
  * @param {int} [since] the earliest time in ms to fetch orders for
4923
4923
  * @param {int} [limit] the maximum number of order structures to retrieve
4924
4924
  * @param {object} [params] extra parameters specific to the binance api endpoint
4925
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4925
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4926
4926
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4927
4927
  */
4928
4928
  const orders = await this.fetchOrders(symbol, since, limit, params);
@@ -4940,7 +4940,7 @@ export default class binance extends Exchange {
4940
4940
  * @param {int} [since] the earliest time in ms to fetch orders for
4941
4941
  * @param {int} [limit] the maximum number of order structures to retrieve
4942
4942
  * @param {object} [params] extra parameters specific to the binance api endpoint
4943
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4943
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4944
4944
  * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4945
4945
  */
4946
4946
  this.checkRequiredSymbol('fetchCanceledOrders', symbol);
@@ -5174,7 +5174,7 @@ export default class binance extends Exchange {
5174
5174
  * @param {int} [since] the earliest time in ms to fetch trades for
5175
5175
  * @param {int} [limit] the maximum number of trades structures to retrieve
5176
5176
  * @param {object} [params] extra parameters specific to the binance api endpoint
5177
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5177
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5178
5178
  * @param {int} [params.until] the latest time in ms to fetch entries for
5179
5179
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
5180
5180
  */
@@ -5464,7 +5464,7 @@ export default class binance extends Exchange {
5464
5464
  * @param {object} [params] extra parameters specific to the binance api endpoint
5465
5465
  * @param {bool} [params.fiat] if true, only fiat deposits will be returned
5466
5466
  * @param {int} [params.until] the latest time in ms to fetch entries for
5467
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5467
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5468
5468
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5469
5469
  */
5470
5470
  await this.loadMarkets();
@@ -5579,7 +5579,7 @@ export default class binance extends Exchange {
5579
5579
  * @param {object} [params] extra parameters specific to the binance api endpoint
5580
5580
  * @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
5581
5581
  * @param {int} [params.until] the latest time in ms to fetch withdrawals for
5582
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5582
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
5583
5583
  * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5584
5584
  */
5585
5585
  await this.loadMarkets();
@@ -6056,7 +6056,7 @@ export default class binance extends Exchange {
6056
6056
  * @param {int} [limit] the maximum number of transfers structures to retrieve
6057
6057
  * @param {object} [params] extra parameters specific to the binance api endpoint
6058
6058
  * @param {int} [params.until] the latest time in ms to fetch transfers for
6059
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
6059
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
6060
6060
  * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
6061
6061
  */
6062
6062
  await this.loadMarkets();
@@ -6786,7 +6786,7 @@ export default class binance extends Exchange {
6786
6786
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
6787
6787
  * @param {object} [params] extra parameters specific to the binance api endpoint
6788
6788
  * @param {int} [params.until] timestamp in ms of the latest funding rate
6789
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
6789
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
6790
6790
  * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
6791
6791
  */
6792
6792
  await this.loadMarkets();
@@ -8201,7 +8201,7 @@ export default class binance extends Exchange {
8201
8201
  * @param {int} [limit] max number of ledger entrys to return
8202
8202
  * @param {object} [params] extra parameters specific to the binance api endpoint
8203
8203
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
8204
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8204
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8205
8205
  * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
8206
8206
  */
8207
8207
  await this.loadMarkets();
package/js/src/bingx.js CHANGED
@@ -629,7 +629,7 @@ export default class bingx extends Exchange {
629
629
  * @param {object} [params] extra parameters specific to the bingx api endpoint
630
630
  * @param {string} [params.price] "mark" or "index" for mark price and index price candles
631
631
  * @param {int} [params.until] timestamp in ms of the latest candle to fetch
632
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
632
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
633
633
  * @returns {[[int]]} A list of candles ordered as timestamp, open, high, low, close, volume
634
634
  */
635
635
  await this.loadMarkets();
@@ -1037,7 +1037,7 @@ export default class bingx extends Exchange {
1037
1037
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
1038
1038
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1039
1039
  * @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
1040
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters] (ttps://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1040
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
1041
1041
  * @returns {[object]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
1042
1042
  */
1043
1043
  this.checkRequiredSymbol('fetchFundingRateHistory', symbol);