ccxt 4.3.67 → 4.3.69

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 (63) hide show
  1. package/README.md +5 -5
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/base/Exchange.js +364 -356
  5. package/dist/cjs/src/base/functions/type.js +2 -2
  6. package/dist/cjs/src/bingx.js +463 -217
  7. package/dist/cjs/src/bitget.js +4 -2
  8. package/dist/cjs/src/btcbox.js +2 -1
  9. package/dist/cjs/src/coinbaseinternational.js +79 -1
  10. package/dist/cjs/src/hyperliquid.js +0 -3
  11. package/dist/cjs/src/kucoin.js +12 -5
  12. package/dist/cjs/src/oxfun.js +2 -2
  13. package/dist/cjs/src/poloniex.js +33 -33
  14. package/dist/cjs/src/poloniexfutures.js +26 -26
  15. package/dist/cjs/src/pro/krakenfutures.js +7 -6
  16. package/dist/cjs/src/pro/poloniex.js +13 -13
  17. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  18. package/js/ccxt.d.ts +3 -3
  19. package/js/ccxt.js +1 -1
  20. package/js/src/base/Exchange.d.ts +107 -82
  21. package/js/src/base/Exchange.js +364 -356
  22. package/js/src/base/functions/type.js +2 -2
  23. package/js/src/base/types.d.ts +0 -2
  24. package/js/src/binance.d.ts +2 -2
  25. package/js/src/bingx.d.ts +4 -2
  26. package/js/src/bingx.js +463 -217
  27. package/js/src/bitget.d.ts +2 -2
  28. package/js/src/bitget.js +4 -2
  29. package/js/src/bitmart.d.ts +2 -2
  30. package/js/src/bitrue.d.ts +2 -2
  31. package/js/src/btcbox.js +2 -1
  32. package/js/src/bybit.d.ts +2 -2
  33. package/js/src/coinbaseinternational.d.ts +11 -0
  34. package/js/src/coinbaseinternational.js +79 -1
  35. package/js/src/coinex.d.ts +2 -2
  36. package/js/src/coinlist.d.ts +2 -2
  37. package/js/src/deribit.d.ts +2 -2
  38. package/js/src/digifinex.d.ts +2 -2
  39. package/js/src/hyperliquid.js +0 -3
  40. package/js/src/kucoin.js +12 -5
  41. package/js/src/latoken.d.ts +2 -2
  42. package/js/src/mexc.d.ts +2 -2
  43. package/js/src/okx.d.ts +2 -2
  44. package/js/src/oxfun.d.ts +1 -1
  45. package/js/src/oxfun.js +2 -2
  46. package/js/src/phemex.d.ts +2 -2
  47. package/js/src/poloniex.js +33 -33
  48. package/js/src/poloniexfutures.js +26 -26
  49. package/js/src/pro/krakenfutures.js +7 -6
  50. package/js/src/pro/poloniex.js +13 -13
  51. package/js/src/pro/poloniexfutures.js +5 -5
  52. package/js/src/woo.d.ts +2 -2
  53. package/package.json +1 -1
  54. package/js/src/coinbaseprime.d.ts +0 -4
  55. package/js/src/coinbaseprime.js +0 -32
  56. package/js/src/pro/coinbaseprime.d.ts +0 -4
  57. package/js/src/pro/coinbaseprime.js +0 -33
  58. package/js/src/pro/huobipro.d.ts +0 -4
  59. package/js/src/pro/huobipro.js +0 -17
  60. package/js/src/pro/mexc3.d.ts +0 -4
  61. package/js/src/pro/mexc3.js +0 -17
  62. package/js/src/pro/okex.d.ts +0 -4
  63. package/js/src/pro/okex.js +0 -17
@@ -5205,8 +5205,10 @@ class bitget extends bitget$1 {
5205
5205
  response = JSON.parse(response);
5206
5206
  }
5207
5207
  const data = this.safeDict(response, 'data');
5208
- if ((data !== undefined) && !Array.isArray(data)) {
5209
- return this.parseOrder(data, market);
5208
+ if ((data !== undefined)) {
5209
+ if (!Array.isArray(data)) {
5210
+ return this.parseOrder(data, market);
5211
+ }
5210
5212
  }
5211
5213
  const dataList = this.safeList(response, 'data', []);
5212
5214
  const first = this.safeDict(dataList, 0, {});
@@ -5,6 +5,7 @@ var errors = require('./base/errors.js');
5
5
  var Precise = require('./base/Precise.js');
6
6
  var number = require('./base/functions/number.js');
7
7
  var sha256 = require('./static_dependencies/noble-hashes/sha256.js');
8
+ var md5 = require('./static_dependencies/noble-hashes/md5.js');
8
9
 
9
10
  // ---------------------------------------------------------------------------
10
11
  // ---------------------------------------------------------------------------
@@ -676,7 +677,7 @@ class btcbox extends btcbox$1 {
676
677
  'nonce': nonce,
677
678
  }, params);
678
679
  const request = this.urlencode(query);
679
- const secret = this.hash(this.encode(this.secret), sha256.sha256);
680
+ const secret = this.hash(this.encode(this.secret), md5.md5);
680
681
  query['signature'] = this.hmac(this.encode(request), this.encode(secret), sha256.sha256);
681
682
  body = this.urlencode(query);
682
683
  headers = {
@@ -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,
@@ -439,6 +439,84 @@ class coinbaseinternational extends coinbaseinternational$1 {
439
439
  'previousFundingDatetime': undefined,
440
440
  };
441
441
  }
442
+ async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
443
+ /**
444
+ * @method
445
+ * @name coinbaseinternational#fetchFundingHistory
446
+ * @description fetch the history of funding payments paid and received on this account
447
+ * @see https://docs.cdp.coinbase.com/intx/reference/gettransfers
448
+ * @param {string} [symbol] unified market symbol
449
+ * @param {int} [since] the earliest time in ms to fetch funding history for
450
+ * @param {int} [limit] the maximum number of funding history structures to retrieve
451
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
452
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
453
+ */
454
+ await this.loadMarkets();
455
+ const request = {
456
+ 'type': 'FUNDING',
457
+ };
458
+ let market = undefined;
459
+ if (symbol !== undefined) {
460
+ market = this.market(symbol);
461
+ }
462
+ let portfolios = undefined;
463
+ [portfolios, params] = this.handleOptionAndParams(params, 'fetchFundingHistory', 'portfolios');
464
+ if (portfolios !== undefined) {
465
+ request['portfolios'] = portfolios;
466
+ }
467
+ if (since !== undefined) {
468
+ request['time_from'] = this.iso8601(since);
469
+ }
470
+ if (limit !== undefined) {
471
+ request['result_limit'] = limit;
472
+ }
473
+ else {
474
+ request['result_limit'] = 100;
475
+ }
476
+ const response = await this.v1PrivateGetTransfers(this.extend(request, params));
477
+ const fundings = this.safeList(response, 'results', []);
478
+ return this.parseIncomes(fundings, market, since, limit);
479
+ }
480
+ parseIncome(income, market = undefined) {
481
+ //
482
+ // {
483
+ // "amount":"0.0008",
484
+ // "asset":"USDC",
485
+ // "created_at":"2024-02-22T16:00:00Z",
486
+ // "from_portfolio":{
487
+ // "id":"13yuk1fs-1-0",
488
+ // "name":"Eng Test Portfolio - 2",
489
+ // "uuid":"018712f2-5ff9-7de3-9010-xxxxxxxxx"
490
+ // },
491
+ // "instrument_id":"149264164756389888",
492
+ // "instrument_symbol":"ETH-PERP",
493
+ // "position_id":"1xy4v51m-1-2",
494
+ // "status":"PROCESSED",
495
+ // "to_portfolio":{
496
+ // "name":"CB_FUND"
497
+ // },
498
+ // "transfer_type":"FUNDING",
499
+ // "transfer_uuid":"a6b708df-2c44-32c5-bb98-xxxxxxxxxx",
500
+ // "updated_at":"2024-02-22T16:00:00Z"
501
+ // }
502
+ //
503
+ const marketId = this.safeString(income, 'symbol');
504
+ market = this.safeMarket(marketId, market, undefined, 'contract');
505
+ const datetime = this.safeInteger(income, 'created_at');
506
+ const timestamp = this.parse8601(datetime);
507
+ const currencyId = this.safeString(income, 'asset');
508
+ const code = this.safeCurrencyCode(currencyId);
509
+ return {
510
+ 'info': income,
511
+ 'symbol': market['symbol'],
512
+ 'code': code,
513
+ 'timestamp': timestamp,
514
+ 'datetime': this.iso8601(timestamp),
515
+ 'id': this.safeString(income, 'transfer_uuid'),
516
+ 'amount': this.safeNumber(income, 'amount'),
517
+ 'rate': undefined,
518
+ };
519
+ }
442
520
  async createDepositAddress(code, params = {}) {
443
521
  /**
444
522
  * @method
@@ -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
  },
@@ -411,7 +411,7 @@ class poloniex extends poloniex$1 {
411
411
  * @method
412
412
  * @name poloniex#fetchOHLCV
413
413
  * @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
414
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
415
415
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
416
416
  * @param {string} timeframe the length of time each candle represents
417
417
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -476,7 +476,7 @@ class poloniex extends poloniex$1 {
476
476
  * @method
477
477
  * @name poloniex#fetchMarkets
478
478
  * @description retrieves data on all markets for poloniex
479
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
479
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
480
480
  * @param {object} [params] extra parameters specific to the exchange API endpoint
481
481
  * @returns {object[]} an array of objects representing market data
482
482
  */
@@ -567,7 +567,7 @@ class poloniex extends poloniex$1 {
567
567
  * @method
568
568
  * @name poloniex#fetchTime
569
569
  * @description fetches the current integer timestamp in milliseconds from the exchange server
570
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
570
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
571
571
  * @param {object} [params] extra parameters specific to the exchange API endpoint
572
572
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
573
573
  */
@@ -634,7 +634,7 @@ class poloniex extends poloniex$1 {
634
634
  * @method
635
635
  * @name poloniex#fetchTickers
636
636
  * @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
637
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
638
638
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
639
639
  * @param {object} [params] extra parameters specific to the exchange API endpoint
640
640
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -673,7 +673,7 @@ class poloniex extends poloniex$1 {
673
673
  * @method
674
674
  * @name poloniex#fetchCurrencies
675
675
  * @description fetches all available currencies on an exchange
676
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
676
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
677
677
  * @param {object} [params] extra parameters specific to the exchange API endpoint
678
678
  * @returns {object} an associative dictionary of currencies
679
679
  */
@@ -811,7 +811,7 @@ class poloniex extends poloniex$1 {
811
811
  * @method
812
812
  * @name poloniex#fetchTicker
813
813
  * @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
814
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
815
815
  * @param {string} symbol unified symbol of the market to fetch the ticker for
816
816
  * @param {object} [params] extra parameters specific to the exchange API endpoint
817
817
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -942,7 +942,7 @@ class poloniex extends poloniex$1 {
942
942
  * @method
943
943
  * @name poloniex#fetchTrades
944
944
  * @description get the list of most recent trades for a particular symbol
945
- * @see https://docs.poloniex.com/#public-endpoints-market-data-trades
945
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
946
946
  * @param {string} symbol unified symbol of the market to fetch trades for
947
947
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
948
948
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -978,7 +978,7 @@ class poloniex extends poloniex$1 {
978
978
  * @method
979
979
  * @name poloniex#fetchMyTrades
980
980
  * @description fetch all trades made by the user
981
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trade-history
981
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
982
982
  * @param {string} symbol unified market symbol
983
983
  * @param {int} [since] the earliest time in ms to fetch trades for
984
984
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1189,8 +1189,8 @@ class poloniex extends poloniex$1 {
1189
1189
  * @method
1190
1190
  * @name poloniex#fetchOpenOrders
1191
1191
  * @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
1192
+ * @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
1193
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1194
1194
  * @param {string} symbol unified market symbol
1195
1195
  * @param {int} [since] the earliest time in ms to fetch open orders for
1196
1196
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1248,8 +1248,8 @@ class poloniex extends poloniex$1 {
1248
1248
  * @method
1249
1249
  * @name poloniex#createOrder
1250
1250
  * @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
1251
+ * @see https://api-docs.poloniex.com/spot/api/private/order#create-order
1252
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
1253
1253
  * @param {string} symbol unified symbol of the market to create an order in
1254
1254
  * @param {string} type 'market' or 'limit'
1255
1255
  * @param {string} side 'buy' or 'sell'
@@ -1354,8 +1354,8 @@ class poloniex extends poloniex$1 {
1354
1354
  * @method
1355
1355
  * @name poloniex#editOrder
1356
1356
  * @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
1357
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
1358
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
1359
1359
  * @param {string} id order id
1360
1360
  * @param {string} symbol unified symbol of the market to create an order in
1361
1361
  * @param {string} type 'market' or 'limit'
@@ -1401,8 +1401,8 @@ class poloniex extends poloniex$1 {
1401
1401
  // @method
1402
1402
  // @name poloniex#cancelOrder
1403
1403
  // @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
1404
+ // @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
1405
+ // @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id // trigger orders
1406
1406
  // @param {string} id order id
1407
1407
  // @param {string} symbol unified symbol of the market the order was made in
1408
1408
  // @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1441,8 +1441,8 @@ class poloniex extends poloniex$1 {
1441
1441
  * @method
1442
1442
  * @name poloniex#cancelAllOrders
1443
1443
  * @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
1444
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
1445
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
1446
1446
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1447
1447
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1448
1448
  * @param {boolean} [params.trigger] true if canceling trigger orders
@@ -1493,8 +1493,8 @@ class poloniex extends poloniex$1 {
1493
1493
  * @method
1494
1494
  * @name poloniex#fetchOrder
1495
1495
  * @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
1496
+ * @see https://api-docs.poloniex.com/spot/api/private/order#order-details
1497
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1498
1498
  * @param {string} id order id
1499
1499
  * @param {string} symbol unified market symbol, default is undefined
1500
1500
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1552,7 +1552,7 @@ class poloniex extends poloniex$1 {
1552
1552
  * @method
1553
1553
  * @name poloniex#fetchOrderTrades
1554
1554
  * @description fetch all the trades made from a single order
1555
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trades-by-order-id
1555
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
1556
1556
  * @param {string} id order id
1557
1557
  * @param {string} symbol unified market symbol
1558
1558
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -1614,7 +1614,7 @@ class poloniex extends poloniex$1 {
1614
1614
  * @method
1615
1615
  * @name poloniex#fetchBalance
1616
1616
  * @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
1617
+ * @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
1618
1618
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1619
1619
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1620
1620
  */
@@ -1646,7 +1646,7 @@ class poloniex extends poloniex$1 {
1646
1646
  * @method
1647
1647
  * @name poloniex#fetchTradingFees
1648
1648
  * @description fetch the trading fees for multiple markets
1649
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1649
+ * @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
1650
1650
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1651
1651
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1652
1652
  */
@@ -1679,7 +1679,7 @@ class poloniex extends poloniex$1 {
1679
1679
  * @method
1680
1680
  * @name poloniex#fetchOrderBook
1681
1681
  * @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
1682
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
1683
1683
  * @param {string} symbol unified symbol of the market to fetch the order book for
1684
1684
  * @param {int} [limit] the maximum amount of order book entries to return
1685
1685
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1736,7 +1736,7 @@ class poloniex extends poloniex$1 {
1736
1736
  * @method
1737
1737
  * @name poloniex#createDepositAddress
1738
1738
  * @description create a currency deposit address
1739
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1739
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1740
1740
  * @param {string} code unified currency code of the currency for the deposit address
1741
1741
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1742
1742
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1787,7 +1787,7 @@ class poloniex extends poloniex$1 {
1787
1787
  * @method
1788
1788
  * @name poloniex#fetchDepositAddress
1789
1789
  * @description fetch the deposit address for a currency associated with this account
1790
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1790
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1791
1791
  * @param {string} code unified currency code
1792
1792
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1793
1793
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1838,7 +1838,7 @@ class poloniex extends poloniex$1 {
1838
1838
  * @method
1839
1839
  * @name poloniex#transfer
1840
1840
  * @description transfer currency internally between wallets on the same account
1841
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-accounts-transfer
1841
+ * @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
1842
1842
  * @param {string} code unified currency code
1843
1843
  * @param {float} amount amount to transfer
1844
1844
  * @param {string} fromAccount account to transfer from
@@ -1888,7 +1888,7 @@ class poloniex extends poloniex$1 {
1888
1888
  * @method
1889
1889
  * @name poloniex#withdraw
1890
1890
  * @description make a withdrawal
1891
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-withdraw-currency
1891
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
1892
1892
  * @param {string} code unified currency code
1893
1893
  * @param {float} amount the amount to withdraw
1894
1894
  * @param {string} address the address to withdraw to
@@ -2013,7 +2013,7 @@ class poloniex extends poloniex$1 {
2013
2013
  * @method
2014
2014
  * @name poloniex#fetchDepositsWithdrawals
2015
2015
  * @description fetch history of deposits and withdrawals
2016
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2016
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2017
2017
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2018
2018
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2019
2019
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -2038,7 +2038,7 @@ class poloniex extends poloniex$1 {
2038
2038
  * @method
2039
2039
  * @name poloniex#fetchWithdrawals
2040
2040
  * @description fetch all withdrawals made from an account
2041
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2041
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2042
2042
  * @param {string} code unified currency code
2043
2043
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2044
2044
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -2059,7 +2059,7 @@ class poloniex extends poloniex$1 {
2059
2059
  * @method
2060
2060
  * @name poloniex#fetchDepositWithdrawFees
2061
2061
  * @description fetch deposit and withdraw fees
2062
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
2062
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
2063
2063
  * @param {string[]|undefined} codes list of unified currency codes
2064
2064
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2065
2065
  * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -2184,7 +2184,7 @@ class poloniex extends poloniex$1 {
2184
2184
  * @method
2185
2185
  * @name poloniex#fetchDeposits
2186
2186
  * @description fetch all deposits made to an account
2187
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2187
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2188
2188
  * @param {string} code unified currency code
2189
2189
  * @param {int} [since] the earliest time in ms to fetch deposits for
2190
2190
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -73,7 +73,7 @@ class poloniexfutures extends poloniexfutures$1 {
73
73
  'private': 'https://futures-api.poloniex.com',
74
74
  },
75
75
  'www': 'https://www.poloniex.com',
76
- 'doc': 'https://futures-docs.poloniex.com',
76
+ 'doc': 'https://api-docs.poloniex.com/futures/',
77
77
  'fees': 'https://poloniex.com/fee-schedule',
78
78
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
79
79
  },
@@ -208,7 +208,7 @@ class poloniexfutures extends poloniexfutures$1 {
208
208
  * @method
209
209
  * @name poloniexfutures#fetchMarkets
210
210
  * @description retrieves data on all markets for poloniexfutures
211
- * @see https://futures-docs.poloniex.com/#symbol-2
211
+ * @see https://api-docs.poloniex.com/futures/api/symbol
212
212
  * @param {object} [params] extra parameters specific to the exchange API endpoint
213
213
  * @returns {object[]} an array of objects representing market data
214
214
  */
@@ -420,7 +420,7 @@ class poloniexfutures extends poloniexfutures$1 {
420
420
  * @method
421
421
  * @name poloniexfutures#fetchTicker
422
422
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
423
- * @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
423
+ * @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
424
424
  * @param {string} symbol unified symbol of the market to fetch the ticker for
425
425
  * @param {object} [params] extra parameters specific to the exchange API endpoint
426
426
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -456,7 +456,7 @@ class poloniexfutures extends poloniexfutures$1 {
456
456
  * @method
457
457
  * @name poloniexfutures#fetchTickers
458
458
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
459
- * @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
459
+ * @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
460
460
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
461
461
  * @param {object} [params] extra parameters specific to the exchange API endpoint
462
462
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -471,8 +471,8 @@ class poloniexfutures extends poloniexfutures$1 {
471
471
  * @method
472
472
  * @name poloniexfuturesfutures#fetchOrderBook
473
473
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
474
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-2
475
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
474
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
475
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
476
476
  * @param {string} symbol unified symbol of the market to fetch the order book for
477
477
  * @param {int} [limit] the maximum amount of order book entries to return
478
478
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -558,7 +558,7 @@ class poloniexfutures extends poloniexfutures$1 {
558
558
  * @method
559
559
  * @name poloniexfutures#fetchL3OrderBook
560
560
  * @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
561
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
561
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
562
562
  * @param {string} symbol unified market symbol
563
563
  * @param {int} [limit] max number of orders to return, default is undefined
564
564
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -665,7 +665,7 @@ class poloniexfutures extends poloniexfutures$1 {
665
665
  * @method
666
666
  * @name poloniexfutures#fetchTrades
667
667
  * @description get the list of most recent trades for a particular symbol
668
- * @see https://futures-docs.poloniex.com/#historical-data
668
+ * @see https://api-docs.poloniex.com/futures/api/historical#transaction-history
669
669
  * @param {string} symbol unified symbol of the market to fetch trades for
670
670
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
671
671
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -702,7 +702,7 @@ class poloniexfutures extends poloniexfutures$1 {
702
702
  * @method
703
703
  * @name poloniexfutures#fetchTime
704
704
  * @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
705
- * @see https://futures-docs.poloniex.com/#time
705
+ * @see https://api-docs.poloniex.com/futures/api/time#server-time
706
706
  * @param {object} [params] extra parameters specific to the exchange API endpoint
707
707
  * @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
708
708
  */
@@ -721,7 +721,7 @@ class poloniexfutures extends poloniexfutures$1 {
721
721
  * @method
722
722
  * @name poloniexfutures#fetchOHLCV
723
723
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
724
- * @see https://futures-docs.poloniex.com/#k-chart
724
+ * @see https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
725
725
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
726
726
  * @param {string} timeframe the length of time each candle represents
727
727
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -790,7 +790,7 @@ class poloniexfutures extends poloniexfutures$1 {
790
790
  * @method
791
791
  * @name poloniexfutures#fetchBalance
792
792
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
793
- * @see https://futures-docs.poloniex.com/#get-account-overview
793
+ * @see https://api-docs.poloniex.com/futures/api/account#get-account-overview
794
794
  * @param {object} [params] extra parameters specific to the exchange API endpoint
795
795
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
796
796
  */
@@ -826,7 +826,7 @@ class poloniexfutures extends poloniexfutures$1 {
826
826
  * @method
827
827
  * @name poloniexfutures#createOrder
828
828
  * @description Create an order on the exchange
829
- * @see https://futures-docs.poloniex.com/#place-an-order
829
+ * @see https://api-docs.poloniex.com/futures/api/orders#place-an-order
830
830
  * @param {string} symbol Unified CCXT market symbol
831
831
  * @param {string} type 'limit' or 'market'
832
832
  * @param {string} side 'buy' or 'sell'
@@ -934,7 +934,7 @@ class poloniexfutures extends poloniexfutures$1 {
934
934
  * @method
935
935
  * @name poloniexfutures#cancelOrder
936
936
  * @description cancels an open order
937
- * @see https://futures-docs.poloniex.com/#cancel-an-order
937
+ * @see https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
938
938
  * @param {string} id order id
939
939
  * @param {string} symbol unified symbol of the market the order was made in
940
940
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -974,7 +974,7 @@ class poloniexfutures extends poloniexfutures$1 {
974
974
  * @method
975
975
  * @name poloniexfutures#fetchPositions
976
976
  * @description fetch all open positions
977
- * @see https://futures-docs.poloniex.com/#get-position-list
977
+ * @see https://api-docs.poloniex.com/futures/api/positions#get-position-list
978
978
  * @param {string[]|undefined} symbols list of unified market symbols
979
979
  * @param {object} [params] extra parameters specific to the exchange API endpoint
980
980
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
@@ -1128,7 +1128,7 @@ class poloniexfutures extends poloniexfutures$1 {
1128
1128
  * @method
1129
1129
  * @name poloniexfutures#fetchFundingHistory
1130
1130
  * @description fetch the history of funding payments paid and received on this account
1131
- * @see https://futures-docs.poloniex.com/#get-funding-history
1131
+ * @see https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
1132
1132
  * @param {string} symbol unified market symbol
1133
1133
  * @param {int} [since] the earliest time in ms to fetch funding history for
1134
1134
  * @param {int} [limit] the maximum number of funding history structures to retrieve
@@ -1267,8 +1267,8 @@ class poloniexfutures extends poloniexfutures$1 {
1267
1267
  * @method
1268
1268
  * @name poloniexfutures#fetchOrdersByStatus
1269
1269
  * @description fetches a list of orders placed on the exchange
1270
- * @see https://futures-docs.poloniex.com/#get-order-list
1271
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1270
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1271
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1272
1272
  * @param {string} status 'active' or 'closed', only 'active' is valid for stop orders
1273
1273
  * @param {string} symbol unified symbol for the market to retrieve orders from
1274
1274
  * @param {int} [since] timestamp in ms of the earliest order to retrieve
@@ -1377,8 +1377,8 @@ class poloniexfutures extends poloniexfutures$1 {
1377
1377
  * @method
1378
1378
  * @name poloniexfutures#fetchOpenOrders
1379
1379
  * @description fetch all unfilled currently open orders
1380
- * @see https://futures-docs.poloniex.com/#get-order-list
1381
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1380
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1381
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1382
1382
  * @param {string} symbol unified market symbol
1383
1383
  * @param {int} [since] the earliest time in ms to fetch open orders for
1384
1384
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1395,8 +1395,8 @@ class poloniexfutures extends poloniexfutures$1 {
1395
1395
  * @method
1396
1396
  * @name poloniexfutures#fetchClosedOrders
1397
1397
  * @description fetches information on multiple closed orders made by the user
1398
- * @see https://futures-docs.poloniex.com/#get-order-list
1399
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1398
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1399
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1400
1400
  * @param {string} symbol unified market symbol of the market orders were made in
1401
1401
  * @param {int} [since] the earliest time in ms to fetch orders for
1402
1402
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -1413,8 +1413,8 @@ class poloniexfutures extends poloniexfutures$1 {
1413
1413
  * @method
1414
1414
  * @name poloniexfutures#fetchOrder
1415
1415
  * @description fetches information on an order made by the user
1416
- * @see https://futures-docs.poloniex.com/#get-details-of-a-single-order
1417
- * @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
1416
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
1417
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
1418
1418
  * @param {string} symbol unified symbol of the market the order was made in
1419
1419
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1420
1420
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1613,7 +1613,7 @@ class poloniexfutures extends poloniexfutures$1 {
1613
1613
  * @method
1614
1614
  * @name poloniexfutures#fetchFundingRate
1615
1615
  * @description fetch the current funding rate
1616
- * @see https://futures-docs.poloniex.com/#get-premium-index
1616
+ * @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
1617
1617
  * @param {string} symbol unified market symbol
1618
1618
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1619
1619
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
@@ -1661,7 +1661,7 @@ class poloniexfutures extends poloniexfutures$1 {
1661
1661
  * @method
1662
1662
  * @name poloniexfutures#fetchMyTrades
1663
1663
  * @description fetch all trades made by the user
1664
- * @see https://futures-docs.poloniex.com/#get-fills
1664
+ * @see https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
1665
1665
  * @param {string} symbol unified market symbol
1666
1666
  * @param {int} [since] the earliest time in ms to fetch trades for
1667
1667
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1725,7 +1725,7 @@ class poloniexfutures extends poloniexfutures$1 {
1725
1725
  * @method
1726
1726
  * @name poloniexfutures#setMarginMode
1727
1727
  * @description set margin mode to 'cross' or 'isolated'
1728
- * @see https://futures-docs.poloniex.com/#change-margin-mode
1728
+ * @see https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
1729
1729
  * @param {string} marginMode "0" (isolated) or "1" (cross)
1730
1730
  * @param {string} symbol unified market symbol
1731
1731
  * @param {object} [params] extra parameters specific to the exchange API endpoint