ccxt 4.3.68 → 4.3.70

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 (76) hide show
  1. package/README.md +6 -6
  2. package/dist/ccxt.browser.min.js +5 -5
  3. package/dist/cjs/ccxt.js +3 -1
  4. package/dist/cjs/src/ascendex.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +365 -353
  6. package/dist/cjs/src/binance.js +1 -1
  7. package/dist/cjs/src/bingx.js +134 -75
  8. package/dist/cjs/src/blofin.js +63 -6
  9. package/dist/cjs/src/btcbox.js +2 -1
  10. package/dist/cjs/src/bybit.js +1 -1
  11. package/dist/cjs/src/coinbaseinternational.js +247 -3
  12. package/dist/cjs/src/cryptocom.js +9 -1
  13. package/dist/cjs/src/hitbtc.js +1 -1
  14. package/dist/cjs/src/hyperliquid.js +0 -3
  15. package/dist/cjs/src/kucoin.js +12 -5
  16. package/dist/cjs/src/oxfun.js +2 -2
  17. package/dist/cjs/src/poloniex.js +34 -33
  18. package/dist/cjs/src/poloniexfutures.js +26 -26
  19. package/dist/cjs/src/pro/blofin.js +665 -0
  20. package/dist/cjs/src/pro/coinbaseinternational.js +154 -9
  21. package/dist/cjs/src/pro/cryptocom.js +3 -1
  22. package/dist/cjs/src/pro/hitbtc.js +26 -8
  23. package/dist/cjs/src/pro/okx.js +7 -0
  24. package/dist/cjs/src/pro/poloniex.js +50 -25
  25. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  26. package/dist/cjs/src/pro/woo.js +5 -4
  27. package/js/ccxt.d.ts +6 -3
  28. package/js/ccxt.js +3 -1
  29. package/js/src/abstract/coinbaseinternational.d.ts +1 -1
  30. package/js/src/ascendex.js +1 -1
  31. package/js/src/base/Exchange.d.ts +108 -82
  32. package/js/src/base/Exchange.js +365 -353
  33. package/js/src/base/types.d.ts +0 -2
  34. package/js/src/binance.d.ts +2 -2
  35. package/js/src/binance.js +1 -1
  36. package/js/src/bingx.d.ts +2 -2
  37. package/js/src/bingx.js +134 -75
  38. package/js/src/bitget.d.ts +2 -2
  39. package/js/src/bitmart.d.ts +2 -2
  40. package/js/src/bitrue.d.ts +2 -2
  41. package/js/src/blofin.d.ts +1 -1
  42. package/js/src/blofin.js +63 -6
  43. package/js/src/btcbox.js +2 -1
  44. package/js/src/bybit.d.ts +2 -2
  45. package/js/src/bybit.js +1 -1
  46. package/js/src/coinbaseinternational.d.ts +17 -1
  47. package/js/src/coinbaseinternational.js +247 -3
  48. package/js/src/coinex.d.ts +2 -2
  49. package/js/src/coinlist.d.ts +2 -2
  50. package/js/src/cryptocom.js +10 -2
  51. package/js/src/deribit.d.ts +2 -2
  52. package/js/src/digifinex.d.ts +2 -2
  53. package/js/src/hitbtc.js +1 -1
  54. package/js/src/hyperliquid.js +0 -3
  55. package/js/src/kucoin.js +12 -5
  56. package/js/src/latoken.d.ts +2 -2
  57. package/js/src/mexc.d.ts +2 -2
  58. package/js/src/okx.d.ts +2 -2
  59. package/js/src/oxfun.d.ts +1 -1
  60. package/js/src/oxfun.js +2 -2
  61. package/js/src/phemex.d.ts +2 -2
  62. package/js/src/poloniex.js +34 -33
  63. package/js/src/poloniexfutures.js +26 -26
  64. package/js/src/pro/blofin.d.ts +39 -0
  65. package/js/src/pro/blofin.js +668 -0
  66. package/js/src/pro/coinbaseinternational.d.ts +5 -1
  67. package/js/src/pro/coinbaseinternational.js +155 -10
  68. package/js/src/pro/cryptocom.js +4 -2
  69. package/js/src/pro/hitbtc.d.ts +1 -1
  70. package/js/src/pro/hitbtc.js +26 -8
  71. package/js/src/pro/okx.js +7 -0
  72. package/js/src/pro/poloniex.js +50 -25
  73. package/js/src/pro/poloniexfutures.js +5 -5
  74. package/js/src/pro/woo.js +5 -4
  75. package/js/src/woo.d.ts +2 -2
  76. package/package.json +1 -1
@@ -65,7 +65,7 @@ class coinbaseinternational extends coinbaseinternational$1 {
65
65
  'fetchCrossBorrowRates': false,
66
66
  'fetchCurrencies': true,
67
67
  'fetchDeposits': true,
68
- 'fetchFundingHistory': false,
68
+ 'fetchFundingHistory': true,
69
69
  'fetchFundingRate': false,
70
70
  'fetchFundingRateHistory': true,
71
71
  'fetchFundingRates': false,
@@ -83,7 +83,7 @@ class coinbaseinternational extends coinbaseinternational$1 {
83
83
  'fetchMyBuys': true,
84
84
  'fetchMySells': true,
85
85
  'fetchMyTrades': true,
86
- 'fetchOHLCV': false,
86
+ 'fetchOHLCV': true,
87
87
  'fetchOpenInterestHistory': false,
88
88
  'fetchOpenOrders': true,
89
89
  'fetchOrder': true,
@@ -102,6 +102,7 @@ class coinbaseinternational extends coinbaseinternational$1 {
102
102
  'fetchTrades': false,
103
103
  'fetchTradingFee': false,
104
104
  'fetchTradingFees': false,
105
+ 'fetchTransfers': true,
105
106
  'fetchWithdrawals': true,
106
107
  'reduceMargin': false,
107
108
  'sandbox': true,
@@ -144,7 +145,7 @@ class coinbaseinternational extends coinbaseinternational$1 {
144
145
  'instruments/{instrument}',
145
146
  'instruments/{instrument}/quote',
146
147
  'instruments/{instrument}/funding',
147
- '',
148
+ 'instruments/{instrument}/candles',
148
149
  ],
149
150
  },
150
151
  'private': {
@@ -352,6 +353,81 @@ class coinbaseinternational extends coinbaseinternational$1 {
352
353
  'info': account,
353
354
  };
354
355
  }
356
+ async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = 100, params = {}) {
357
+ /**
358
+ * @method
359
+ * @name coinbaseinternational#fetchOHLCV
360
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
361
+ * @see https://docs.cdp.coinbase.com/intx/reference/getinstrumentcandles
362
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
363
+ * @param {string} timeframe the length of time each candle represents
364
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
365
+ * @param {int} [limit] the maximum amount of candles to fetch, default 100 max 10000
366
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
367
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
368
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
369
+ * @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)
370
+ */
371
+ await this.loadMarkets();
372
+ let paginate = false;
373
+ [paginate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'paginate');
374
+ if (paginate) {
375
+ return await this.fetchPaginatedCallDeterministic('fetchOHLCV', symbol, since, limit, timeframe, params, 10000);
376
+ }
377
+ const market = this.market(symbol);
378
+ const request = {
379
+ 'instrument': market['id'],
380
+ 'granularity': this.safeString(this.timeframes, timeframe, timeframe),
381
+ };
382
+ if (since !== undefined) {
383
+ request['start'] = this.iso8601(since);
384
+ }
385
+ else {
386
+ throw new errors.ArgumentsRequired(this.id + ' fetchOHLCV() requires a since argument');
387
+ }
388
+ const unitl = this.safeInteger(params, 'until');
389
+ if (unitl !== undefined) {
390
+ params = this.omit(params, 'until');
391
+ request['end'] = this.iso8601(unitl);
392
+ }
393
+ const response = await this.v1PublicGetInstrumentsInstrumentCandles(this.extend(request, params));
394
+ //
395
+ // {
396
+ // "aggregations": [
397
+ // {
398
+ // "start": "2024-04-23T00:00:00Z",
399
+ // "open": "62884.4",
400
+ // "high": "64710.6",
401
+ // "low": "62884.4",
402
+ // "close": "63508.4",
403
+ // "volume": "3253.9983"
404
+ // }
405
+ // ]
406
+ // }
407
+ //
408
+ const candles = this.safeList(response, 'aggregations', []);
409
+ return this.parseOHLCVs(candles, market, timeframe, since, limit);
410
+ }
411
+ parseOHLCV(ohlcv, market = undefined) {
412
+ //
413
+ // {
414
+ // "start": "2024-04-23T00:00:00Z",
415
+ // "open": "62884.4",
416
+ // "high": "64710.6",
417
+ // "low": "62884.4",
418
+ // "close": "63508.4",
419
+ // "volume": "3253.9983"
420
+ // }
421
+ //
422
+ return [
423
+ this.parse8601(this.safeString2(ohlcv, 'start', 'time')),
424
+ this.safeNumber(ohlcv, 'open'),
425
+ this.safeNumber(ohlcv, 'high'),
426
+ this.safeNumber(ohlcv, 'low'),
427
+ this.safeNumber(ohlcv, 'close'),
428
+ this.safeNumber(ohlcv, 'volume'),
429
+ ];
430
+ }
355
431
  async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
356
432
  /**
357
433
  * @method
@@ -439,6 +515,174 @@ class coinbaseinternational extends coinbaseinternational$1 {
439
515
  'previousFundingDatetime': undefined,
440
516
  };
441
517
  }
518
+ async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
519
+ /**
520
+ * @method
521
+ * @name coinbaseinternational#fetchFundingHistory
522
+ * @description fetch the history of funding payments paid and received on this account
523
+ * @see https://docs.cdp.coinbase.com/intx/reference/gettransfers
524
+ * @param {string} [symbol] unified market symbol
525
+ * @param {int} [since] the earliest time in ms to fetch funding history for
526
+ * @param {int} [limit] the maximum number of funding history structures to retrieve
527
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
528
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
529
+ */
530
+ await this.loadMarkets();
531
+ const request = {
532
+ 'type': 'FUNDING',
533
+ };
534
+ let market = undefined;
535
+ if (symbol !== undefined) {
536
+ market = this.market(symbol);
537
+ }
538
+ let portfolios = undefined;
539
+ [portfolios, params] = this.handleOptionAndParams(params, 'fetchFundingHistory', 'portfolios');
540
+ if (portfolios !== undefined) {
541
+ request['portfolios'] = portfolios;
542
+ }
543
+ if (since !== undefined) {
544
+ request['time_from'] = this.iso8601(since);
545
+ }
546
+ if (limit !== undefined) {
547
+ request['result_limit'] = limit;
548
+ }
549
+ else {
550
+ request['result_limit'] = 100;
551
+ }
552
+ const response = await this.v1PrivateGetTransfers(this.extend(request, params));
553
+ const fundings = this.safeList(response, 'results', []);
554
+ return this.parseIncomes(fundings, market, since, limit);
555
+ }
556
+ parseIncome(income, market = undefined) {
557
+ //
558
+ // {
559
+ // "amount":"0.0008",
560
+ // "asset":"USDC",
561
+ // "created_at":"2024-02-22T16:00:00Z",
562
+ // "from_portfolio":{
563
+ // "id":"13yuk1fs-1-0",
564
+ // "name":"Eng Test Portfolio - 2",
565
+ // "uuid":"018712f2-5ff9-7de3-9010-xxxxxxxxx"
566
+ // },
567
+ // "instrument_id":"149264164756389888",
568
+ // "instrument_symbol":"ETH-PERP",
569
+ // "position_id":"1xy4v51m-1-2",
570
+ // "status":"PROCESSED",
571
+ // "to_portfolio":{
572
+ // "name":"CB_FUND"
573
+ // },
574
+ // "transfer_type":"FUNDING",
575
+ // "transfer_uuid":"a6b708df-2c44-32c5-bb98-xxxxxxxxxx",
576
+ // "updated_at":"2024-02-22T16:00:00Z"
577
+ // }
578
+ //
579
+ const marketId = this.safeString(income, 'symbol');
580
+ market = this.safeMarket(marketId, market, undefined, 'contract');
581
+ const datetime = this.safeInteger(income, 'created_at');
582
+ const timestamp = this.parse8601(datetime);
583
+ const currencyId = this.safeString(income, 'asset');
584
+ const code = this.safeCurrencyCode(currencyId);
585
+ return {
586
+ 'info': income,
587
+ 'symbol': market['symbol'],
588
+ 'code': code,
589
+ 'timestamp': timestamp,
590
+ 'datetime': this.iso8601(timestamp),
591
+ 'id': this.safeString(income, 'transfer_uuid'),
592
+ 'amount': this.safeNumber(income, 'amount'),
593
+ 'rate': undefined,
594
+ };
595
+ }
596
+ async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
597
+ /**
598
+ * @method
599
+ * @name coinbaseinternational#fetchTransfers
600
+ * @description fetch a history of internal transfers made on an account
601
+ * @see https://docs.cdp.coinbase.com/intx/reference/gettransfers
602
+ * @param {string} code unified currency code of the currency transferred
603
+ * @param {int} [since] the earliest time in ms to fetch transfers for
604
+ * @param {int} [limit] the maximum number of transfers structures to retrieve
605
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
606
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
607
+ */
608
+ await this.loadMarkets();
609
+ const request = {
610
+ 'type': 'INTERNAL',
611
+ };
612
+ let currency = undefined;
613
+ if (code !== undefined) {
614
+ currency = this.currency(code);
615
+ }
616
+ let portfolios = undefined;
617
+ [portfolios, params] = this.handleOptionAndParams(params, 'fetchTransfers', 'portfolios');
618
+ if (portfolios !== undefined) {
619
+ request['portfolios'] = portfolios;
620
+ }
621
+ if (since !== undefined) {
622
+ request['time_from'] = this.iso8601(since);
623
+ }
624
+ if (limit !== undefined) {
625
+ request['result_limit'] = limit;
626
+ }
627
+ else {
628
+ request['result_limit'] = 100;
629
+ }
630
+ const response = await this.v1PrivateGetTransfers(this.extend(request, params));
631
+ const transfers = this.safeList(response, 'results', []);
632
+ return this.parseTransfers(transfers, currency, since, limit);
633
+ }
634
+ parseTransfer(transfer, currency = undefined) {
635
+ //
636
+ // {
637
+ // "amount":"0.0008",
638
+ // "asset":"USDC",
639
+ // "created_at":"2024-02-22T16:00:00Z",
640
+ // "from_portfolio":{
641
+ // "id":"13yuk1fs-1-0",
642
+ // "name":"Eng Test Portfolio - 2",
643
+ // "uuid":"018712f2-5ff9-7de3-9010-xxxxxxxxx"
644
+ // },
645
+ // "instrument_id":"149264164756389888",
646
+ // "instrument_symbol":"ETH-PERP",
647
+ // "position_id":"1xy4v51m-1-2",
648
+ // "status":"PROCESSED",
649
+ // "to_portfolio":{
650
+ // "name":"CB_FUND"
651
+ // },
652
+ // "transfer_type":"FUNDING",
653
+ // "transfer_uuid":"a6b708df-2c44-32c5-bb98-xxxxxxxxxx",
654
+ // "updated_at":"2024-02-22T16:00:00Z"
655
+ // }
656
+ //
657
+ const datetime = this.safeInteger(transfer, 'created_at');
658
+ const timestamp = this.parse8601(datetime);
659
+ const currencyId = this.safeString(transfer, 'asset');
660
+ const code = this.safeCurrencyCode(currencyId);
661
+ const fromPorfolio = this.safeDict(transfer, 'from_portfolio', {});
662
+ const fromId = this.safeString(fromPorfolio, 'id');
663
+ const toPorfolio = this.safeDict(transfer, 'to_portfolio', {});
664
+ const toId = this.safeString(toPorfolio, 'id');
665
+ return {
666
+ 'info': transfer,
667
+ 'id': this.safeString(transfer, 'transfer_uuid'),
668
+ 'timestamp': timestamp,
669
+ 'datetime': this.iso8601(timestamp),
670
+ 'currency': code,
671
+ 'amount': this.safeNumber(transfer, 'amount'),
672
+ 'fromAccount': fromId,
673
+ 'toAccount': toId,
674
+ 'status': this.parseTransferStatus(this.safeString(transfer, 'status')),
675
+ };
676
+ }
677
+ parseTransferStatus(status) {
678
+ const statuses = {
679
+ 'FAILED': 'failed',
680
+ 'PROCESSED': 'ok',
681
+ 'NEW': 'pending',
682
+ 'STARTED': 'pending',
683
+ };
684
+ return this.safeString(statuses, status, status);
685
+ }
442
686
  async createDepositAddress(code, params = {}) {
443
687
  /**
444
688
  * @method
@@ -386,7 +386,15 @@ class cryptocom extends cryptocom$1 {
386
386
  '40006': errors.BadRequest,
387
387
  '40007': errors.BadRequest,
388
388
  '40101': errors.AuthenticationError,
389
- '50001': errors.BadRequest,
389
+ '40102': errors.InvalidNonce,
390
+ '40103': errors.AuthenticationError,
391
+ '40104': errors.AuthenticationError,
392
+ '40107': errors.BadRequest,
393
+ '40401': errors.OrderNotFound,
394
+ '40801': errors.RequestTimeout,
395
+ '42901': errors.RateLimitExceeded,
396
+ '43005': errors.InvalidOrder,
397
+ '50001': errors.ExchangeError,
390
398
  '9010001': errors.OnMaintenance, // {"code":9010001,"message":"SYSTEM_MAINTENANCE","details":"Crypto.com Exchange is currently under maintenance. Please refer to https://status.crypto.com for more details."}
391
399
  },
392
400
  'broad': {},
@@ -2523,7 +2523,7 @@ class hitbtc extends hitbtc$1 {
2523
2523
  async fetchMarginModes(symbols = undefined, params = {}) {
2524
2524
  /**
2525
2525
  * @method
2526
- * @name hitbtc#fetchMarginMode
2526
+ * @name hitbtc#fetchMarginModes
2527
2527
  * @description fetches margin mode of the user
2528
2528
  * @see https://api.hitbtc.com/#get-margin-position-parameters
2529
2529
  * @see https://api.hitbtc.com/#get-futures-position-parameters
@@ -829,9 +829,6 @@ class hyperliquid extends hyperliquid$1 {
829
829
  if (since === undefined) {
830
830
  since = 0;
831
831
  }
832
- if (limit === undefined) {
833
- limit = 500;
834
- }
835
832
  params = this.omit(params, ['until']);
836
833
  const request = {
837
834
  'type': 'candleSnapshot',
@@ -1521,21 +1521,28 @@ class kucoin extends kucoin$1 {
1521
1521
  },
1522
1522
  'networks': {},
1523
1523
  };
1524
- const isWithdrawEnabled = this.safeBool(fee, 'isWithdrawEnabled');
1524
+ const isWithdrawEnabled = this.safeBool(fee, 'isWithdrawEnabled', true);
1525
+ let minFee = undefined;
1525
1526
  if (isWithdrawEnabled) {
1526
- result['withdraw']['fee'] = this.safeNumber2(fee, 'withdrawalMinFee', 'withdrawMinFee');
1527
1527
  result['withdraw']['percentage'] = false;
1528
- const networkId = this.safeString(fee, 'chain');
1529
- if (networkId) {
1528
+ const chains = this.safeList(fee, 'chains', []);
1529
+ for (let i = 0; i < chains.length; i++) {
1530
+ const chain = chains[i];
1531
+ const networkId = this.safeString(chain, 'chainId');
1530
1532
  const networkCode = this.networkIdToCode(networkId, this.safeString(currency, 'code'));
1533
+ const withdrawFee = this.safeString(chain, 'withdrawalMinFee');
1534
+ if (minFee === undefined || (Precise["default"].stringLt(withdrawFee, minFee))) {
1535
+ minFee = withdrawFee;
1536
+ }
1531
1537
  result['networks'][networkCode] = {
1532
- 'withdraw': result['withdraw'],
1538
+ 'withdraw': this.parseNumber(withdrawFee),
1533
1539
  'deposit': {
1534
1540
  'fee': undefined,
1535
1541
  'percentage': undefined,
1536
1542
  },
1537
1543
  };
1538
1544
  }
1545
+ result['withdraw']['fee'] = this.parseNumber(minFee);
1539
1546
  }
1540
1547
  return result;
1541
1548
  }
@@ -2044,9 +2044,9 @@ class oxfun extends oxfun$1 {
2044
2044
  async withdraw(code, amount, address, tag = undefined, params = {}) {
2045
2045
  /**
2046
2046
  * @method
2047
- * @name bitflex#withdraw
2047
+ * @name oxfun#withdraw
2048
2048
  * @description make a withdrawal
2049
- * @see https://docs.bitflex.com/spot#withdraw
2049
+ * @see https://docs.ox.fun/?json#post-v3-withdrawal
2050
2050
  * @param {string} code unified currency code
2051
2051
  * @param {float} amount the amount to withdraw
2052
2052
  * @param {string} address the address to withdraw to
@@ -98,7 +98,7 @@ class poloniex extends poloniex$1 {
98
98
  'rest': 'https://sand-spot-api-gateway.poloniex.com',
99
99
  },
100
100
  'www': 'https://www.poloniex.com',
101
- 'doc': 'https://docs.poloniex.com',
101
+ 'doc': 'https://api-docs.poloniex.com/spot/',
102
102
  'fees': 'https://poloniex.com/fees',
103
103
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
104
104
  },
@@ -344,6 +344,7 @@ class poloniex extends poloniex$1 {
344
344
  '21350': errors.InvalidOrder,
345
345
  '21355': errors.ExchangeError,
346
346
  '21356': errors.BadRequest,
347
+ '21721': errors.InsufficientFunds,
347
348
  '24101': errors.BadSymbol,
348
349
  '24102': errors.InvalidOrder,
349
350
  '24103': errors.InvalidOrder,
@@ -411,7 +412,7 @@ class poloniex extends poloniex$1 {
411
412
  * @method
412
413
  * @name poloniex#fetchOHLCV
413
414
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
414
- * @see https://docs.poloniex.com/#public-endpoints-market-data-candles
415
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
415
416
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
416
417
  * @param {string} timeframe the length of time each candle represents
417
418
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -476,7 +477,7 @@ class poloniex extends poloniex$1 {
476
477
  * @method
477
478
  * @name poloniex#fetchMarkets
478
479
  * @description retrieves data on all markets for poloniex
479
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
480
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
480
481
  * @param {object} [params] extra parameters specific to the exchange API endpoint
481
482
  * @returns {object[]} an array of objects representing market data
482
483
  */
@@ -567,7 +568,7 @@ class poloniex extends poloniex$1 {
567
568
  * @method
568
569
  * @name poloniex#fetchTime
569
570
  * @description fetches the current integer timestamp in milliseconds from the exchange server
570
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
571
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
571
572
  * @param {object} [params] extra parameters specific to the exchange API endpoint
572
573
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
573
574
  */
@@ -634,7 +635,7 @@ class poloniex extends poloniex$1 {
634
635
  * @method
635
636
  * @name poloniex#fetchTickers
636
637
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
637
- * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
638
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
638
639
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
639
640
  * @param {object} [params] extra parameters specific to the exchange API endpoint
640
641
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -673,7 +674,7 @@ class poloniex extends poloniex$1 {
673
674
  * @method
674
675
  * @name poloniex#fetchCurrencies
675
676
  * @description fetches all available currencies on an exchange
676
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
677
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
677
678
  * @param {object} [params] extra parameters specific to the exchange API endpoint
678
679
  * @returns {object} an associative dictionary of currencies
679
680
  */
@@ -811,7 +812,7 @@ class poloniex extends poloniex$1 {
811
812
  * @method
812
813
  * @name poloniex#fetchTicker
813
814
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
814
- * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
815
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
815
816
  * @param {string} symbol unified symbol of the market to fetch the ticker for
816
817
  * @param {object} [params] extra parameters specific to the exchange API endpoint
817
818
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -942,7 +943,7 @@ class poloniex extends poloniex$1 {
942
943
  * @method
943
944
  * @name poloniex#fetchTrades
944
945
  * @description get the list of most recent trades for a particular symbol
945
- * @see https://docs.poloniex.com/#public-endpoints-market-data-trades
946
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
946
947
  * @param {string} symbol unified symbol of the market to fetch trades for
947
948
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
948
949
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -978,7 +979,7 @@ class poloniex extends poloniex$1 {
978
979
  * @method
979
980
  * @name poloniex#fetchMyTrades
980
981
  * @description fetch all trades made by the user
981
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trade-history
982
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
982
983
  * @param {string} symbol unified market symbol
983
984
  * @param {int} [since] the earliest time in ms to fetch trades for
984
985
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1189,8 +1190,8 @@ class poloniex extends poloniex$1 {
1189
1190
  * @method
1190
1191
  * @name poloniex#fetchOpenOrders
1191
1192
  * @description fetch all unfilled currently open orders
1192
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-open-orders
1193
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1193
+ * @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
1194
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1194
1195
  * @param {string} symbol unified market symbol
1195
1196
  * @param {int} [since] the earliest time in ms to fetch open orders for
1196
1197
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1248,8 +1249,8 @@ class poloniex extends poloniex$1 {
1248
1249
  * @method
1249
1250
  * @name poloniex#createOrder
1250
1251
  * @description create a trade order
1251
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1252
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
1252
+ * @see https://api-docs.poloniex.com/spot/api/private/order#create-order
1253
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
1253
1254
  * @param {string} symbol unified symbol of the market to create an order in
1254
1255
  * @param {string} type 'market' or 'limit'
1255
1256
  * @param {string} side 'buy' or 'sell'
@@ -1354,8 +1355,8 @@ class poloniex extends poloniex$1 {
1354
1355
  * @method
1355
1356
  * @name poloniex#editOrder
1356
1357
  * @description edit a trade order
1357
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1358
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1358
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
1359
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
1359
1360
  * @param {string} id order id
1360
1361
  * @param {string} symbol unified symbol of the market to create an order in
1361
1362
  * @param {string} type 'market' or 'limit'
@@ -1401,8 +1402,8 @@ class poloniex extends poloniex$1 {
1401
1402
  // @method
1402
1403
  // @name poloniex#cancelOrder
1403
1404
  // @description cancels an open order
1404
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-order-by-id
1405
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
1405
+ // @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
1406
+ // @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id // trigger orders
1406
1407
  // @param {string} id order id
1407
1408
  // @param {string} symbol unified symbol of the market the order was made in
1408
1409
  // @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1441,8 +1442,8 @@ class poloniex extends poloniex$1 {
1441
1442
  * @method
1442
1443
  * @name poloniex#cancelAllOrders
1443
1444
  * @description cancel all open orders
1444
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1445
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
1445
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
1446
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
1446
1447
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1447
1448
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1448
1449
  * @param {boolean} [params.trigger] true if canceling trigger orders
@@ -1493,8 +1494,8 @@ class poloniex extends poloniex$1 {
1493
1494
  * @method
1494
1495
  * @name poloniex#fetchOrder
1495
1496
  * @description fetch an order by it's id
1496
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1497
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1497
+ * @see https://api-docs.poloniex.com/spot/api/private/order#order-details
1498
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1498
1499
  * @param {string} id order id
1499
1500
  * @param {string} symbol unified market symbol, default is undefined
1500
1501
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1552,7 +1553,7 @@ class poloniex extends poloniex$1 {
1552
1553
  * @method
1553
1554
  * @name poloniex#fetchOrderTrades
1554
1555
  * @description fetch all the trades made from a single order
1555
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trades-by-order-id
1556
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
1556
1557
  * @param {string} id order id
1557
1558
  * @param {string} symbol unified market symbol
1558
1559
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -1614,7 +1615,7 @@ class poloniex extends poloniex$1 {
1614
1615
  * @method
1615
1616
  * @name poloniex#fetchBalance
1616
1617
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1617
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
1618
+ * @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
1618
1619
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1619
1620
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1620
1621
  */
@@ -1646,7 +1647,7 @@ class poloniex extends poloniex$1 {
1646
1647
  * @method
1647
1648
  * @name poloniex#fetchTradingFees
1648
1649
  * @description fetch the trading fees for multiple markets
1649
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1650
+ * @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
1650
1651
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1651
1652
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1652
1653
  */
@@ -1679,7 +1680,7 @@ class poloniex extends poloniex$1 {
1679
1680
  * @method
1680
1681
  * @name poloniex#fetchOrderBook
1681
1682
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1682
- * @see https://docs.poloniex.com/#public-endpoints-market-data-order-book
1683
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
1683
1684
  * @param {string} symbol unified symbol of the market to fetch the order book for
1684
1685
  * @param {int} [limit] the maximum amount of order book entries to return
1685
1686
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1736,7 +1737,7 @@ class poloniex extends poloniex$1 {
1736
1737
  * @method
1737
1738
  * @name poloniex#createDepositAddress
1738
1739
  * @description create a currency deposit address
1739
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1740
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1740
1741
  * @param {string} code unified currency code of the currency for the deposit address
1741
1742
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1742
1743
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1787,7 +1788,7 @@ class poloniex extends poloniex$1 {
1787
1788
  * @method
1788
1789
  * @name poloniex#fetchDepositAddress
1789
1790
  * @description fetch the deposit address for a currency associated with this account
1790
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1791
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1791
1792
  * @param {string} code unified currency code
1792
1793
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1793
1794
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1838,7 +1839,7 @@ class poloniex extends poloniex$1 {
1838
1839
  * @method
1839
1840
  * @name poloniex#transfer
1840
1841
  * @description transfer currency internally between wallets on the same account
1841
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-accounts-transfer
1842
+ * @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
1842
1843
  * @param {string} code unified currency code
1843
1844
  * @param {float} amount amount to transfer
1844
1845
  * @param {string} fromAccount account to transfer from
@@ -1888,7 +1889,7 @@ class poloniex extends poloniex$1 {
1888
1889
  * @method
1889
1890
  * @name poloniex#withdraw
1890
1891
  * @description make a withdrawal
1891
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-withdraw-currency
1892
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
1892
1893
  * @param {string} code unified currency code
1893
1894
  * @param {float} amount the amount to withdraw
1894
1895
  * @param {string} address the address to withdraw to
@@ -2013,7 +2014,7 @@ class poloniex extends poloniex$1 {
2013
2014
  * @method
2014
2015
  * @name poloniex#fetchDepositsWithdrawals
2015
2016
  * @description fetch history of deposits and withdrawals
2016
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2017
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2017
2018
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2018
2019
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2019
2020
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -2038,7 +2039,7 @@ class poloniex extends poloniex$1 {
2038
2039
  * @method
2039
2040
  * @name poloniex#fetchWithdrawals
2040
2041
  * @description fetch all withdrawals made from an account
2041
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2042
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2042
2043
  * @param {string} code unified currency code
2043
2044
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2044
2045
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -2059,7 +2060,7 @@ class poloniex extends poloniex$1 {
2059
2060
  * @method
2060
2061
  * @name poloniex#fetchDepositWithdrawFees
2061
2062
  * @description fetch deposit and withdraw fees
2062
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
2063
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
2063
2064
  * @param {string[]|undefined} codes list of unified currency codes
2064
2065
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2065
2066
  * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -2184,7 +2185,7 @@ class poloniex extends poloniex$1 {
2184
2185
  * @method
2185
2186
  * @name poloniex#fetchDeposits
2186
2187
  * @description fetch all deposits made to an account
2187
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2188
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2188
2189
  * @param {string} code unified currency code
2189
2190
  * @param {int} [since] the earliest time in ms to fetch deposits for
2190
2191
  * @param {int} [limit] the maximum number of deposits structures to retrieve