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
@@ -101,7 +101,7 @@ export default class poloniex extends Exchange {
101
101
  'rest': 'https://sand-spot-api-gateway.poloniex.com',
102
102
  },
103
103
  'www': 'https://www.poloniex.com',
104
- 'doc': 'https://docs.poloniex.com',
104
+ 'doc': 'https://api-docs.poloniex.com/spot/',
105
105
  'fees': 'https://poloniex.com/fees',
106
106
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
107
107
  },
@@ -414,7 +414,7 @@ export default class poloniex extends Exchange {
414
414
  * @method
415
415
  * @name poloniex#fetchOHLCV
416
416
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
417
- * @see https://docs.poloniex.com/#public-endpoints-market-data-candles
417
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
418
418
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
419
419
  * @param {string} timeframe the length of time each candle represents
420
420
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -479,7 +479,7 @@ export default class poloniex extends Exchange {
479
479
  * @method
480
480
  * @name poloniex#fetchMarkets
481
481
  * @description retrieves data on all markets for poloniex
482
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
482
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
483
483
  * @param {object} [params] extra parameters specific to the exchange API endpoint
484
484
  * @returns {object[]} an array of objects representing market data
485
485
  */
@@ -570,7 +570,7 @@ export default class poloniex extends Exchange {
570
570
  * @method
571
571
  * @name poloniex#fetchTime
572
572
  * @description fetches the current integer timestamp in milliseconds from the exchange server
573
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
573
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
574
574
  * @param {object} [params] extra parameters specific to the exchange API endpoint
575
575
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
576
576
  */
@@ -637,7 +637,7 @@ export default class poloniex extends Exchange {
637
637
  * @method
638
638
  * @name poloniex#fetchTickers
639
639
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
640
- * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
640
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
641
641
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
642
642
  * @param {object} [params] extra parameters specific to the exchange API endpoint
643
643
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -676,7 +676,7 @@ export default class poloniex extends Exchange {
676
676
  * @method
677
677
  * @name poloniex#fetchCurrencies
678
678
  * @description fetches all available currencies on an exchange
679
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
679
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
680
680
  * @param {object} [params] extra parameters specific to the exchange API endpoint
681
681
  * @returns {object} an associative dictionary of currencies
682
682
  */
@@ -814,7 +814,7 @@ export default class poloniex extends Exchange {
814
814
  * @method
815
815
  * @name poloniex#fetchTicker
816
816
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
817
- * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
817
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
818
818
  * @param {string} symbol unified symbol of the market to fetch the ticker for
819
819
  * @param {object} [params] extra parameters specific to the exchange API endpoint
820
820
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -945,7 +945,7 @@ export default class poloniex extends Exchange {
945
945
  * @method
946
946
  * @name poloniex#fetchTrades
947
947
  * @description get the list of most recent trades for a particular symbol
948
- * @see https://docs.poloniex.com/#public-endpoints-market-data-trades
948
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
949
949
  * @param {string} symbol unified symbol of the market to fetch trades for
950
950
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
951
951
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -981,7 +981,7 @@ export default class poloniex extends Exchange {
981
981
  * @method
982
982
  * @name poloniex#fetchMyTrades
983
983
  * @description fetch all trades made by the user
984
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trade-history
984
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
985
985
  * @param {string} symbol unified market symbol
986
986
  * @param {int} [since] the earliest time in ms to fetch trades for
987
987
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1192,8 +1192,8 @@ export default class poloniex extends Exchange {
1192
1192
  * @method
1193
1193
  * @name poloniex#fetchOpenOrders
1194
1194
  * @description fetch all unfilled currently open orders
1195
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-open-orders
1196
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1195
+ * @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
1196
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1197
1197
  * @param {string} symbol unified market symbol
1198
1198
  * @param {int} [since] the earliest time in ms to fetch open orders for
1199
1199
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1251,8 +1251,8 @@ export default class poloniex extends Exchange {
1251
1251
  * @method
1252
1252
  * @name poloniex#createOrder
1253
1253
  * @description create a trade order
1254
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1255
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
1254
+ * @see https://api-docs.poloniex.com/spot/api/private/order#create-order
1255
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
1256
1256
  * @param {string} symbol unified symbol of the market to create an order in
1257
1257
  * @param {string} type 'market' or 'limit'
1258
1258
  * @param {string} side 'buy' or 'sell'
@@ -1357,8 +1357,8 @@ export default class poloniex extends Exchange {
1357
1357
  * @method
1358
1358
  * @name poloniex#editOrder
1359
1359
  * @description edit a trade order
1360
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1361
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1360
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
1361
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
1362
1362
  * @param {string} id order id
1363
1363
  * @param {string} symbol unified symbol of the market to create an order in
1364
1364
  * @param {string} type 'market' or 'limit'
@@ -1404,8 +1404,8 @@ export default class poloniex extends Exchange {
1404
1404
  // @method
1405
1405
  // @name poloniex#cancelOrder
1406
1406
  // @description cancels an open order
1407
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-order-by-id
1408
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
1407
+ // @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
1408
+ // @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id // trigger orders
1409
1409
  // @param {string} id order id
1410
1410
  // @param {string} symbol unified symbol of the market the order was made in
1411
1411
  // @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1444,8 +1444,8 @@ export default class poloniex extends Exchange {
1444
1444
  * @method
1445
1445
  * @name poloniex#cancelAllOrders
1446
1446
  * @description cancel all open orders
1447
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1448
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
1447
+ * @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
1448
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
1449
1449
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1450
1450
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1451
1451
  * @param {boolean} [params.trigger] true if canceling trigger orders
@@ -1496,8 +1496,8 @@ export default class poloniex extends Exchange {
1496
1496
  * @method
1497
1497
  * @name poloniex#fetchOrder
1498
1498
  * @description fetch an order by it's id
1499
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1500
- * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1499
+ * @see https://api-docs.poloniex.com/spot/api/private/order#order-details
1500
+ * @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
1501
1501
  * @param {string} id order id
1502
1502
  * @param {string} symbol unified market symbol, default is undefined
1503
1503
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1555,7 +1555,7 @@ export default class poloniex extends Exchange {
1555
1555
  * @method
1556
1556
  * @name poloniex#fetchOrderTrades
1557
1557
  * @description fetch all the trades made from a single order
1558
- * @see https://docs.poloniex.com/#authenticated-endpoints-trades-trades-by-order-id
1558
+ * @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
1559
1559
  * @param {string} id order id
1560
1560
  * @param {string} symbol unified market symbol
1561
1561
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -1617,7 +1617,7 @@ export default class poloniex extends Exchange {
1617
1617
  * @method
1618
1618
  * @name poloniex#fetchBalance
1619
1619
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1620
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
1620
+ * @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
1621
1621
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1622
1622
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1623
1623
  */
@@ -1649,7 +1649,7 @@ export default class poloniex extends Exchange {
1649
1649
  * @method
1650
1650
  * @name poloniex#fetchTradingFees
1651
1651
  * @description fetch the trading fees for multiple markets
1652
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1652
+ * @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
1653
1653
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1654
1654
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1655
1655
  */
@@ -1682,7 +1682,7 @@ export default class poloniex extends Exchange {
1682
1682
  * @method
1683
1683
  * @name poloniex#fetchOrderBook
1684
1684
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1685
- * @see https://docs.poloniex.com/#public-endpoints-market-data-order-book
1685
+ * @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
1686
1686
  * @param {string} symbol unified symbol of the market to fetch the order book for
1687
1687
  * @param {int} [limit] the maximum amount of order book entries to return
1688
1688
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1739,7 +1739,7 @@ export default class poloniex extends Exchange {
1739
1739
  * @method
1740
1740
  * @name poloniex#createDepositAddress
1741
1741
  * @description create a currency deposit address
1742
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1742
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1743
1743
  * @param {string} code unified currency code of the currency for the deposit address
1744
1744
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1745
1745
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1790,7 +1790,7 @@ export default class poloniex extends Exchange {
1790
1790
  * @method
1791
1791
  * @name poloniex#fetchDepositAddress
1792
1792
  * @description fetch the deposit address for a currency associated with this account
1793
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1793
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1794
1794
  * @param {string} code unified currency code
1795
1795
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1796
1796
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1841,7 +1841,7 @@ export default class poloniex extends Exchange {
1841
1841
  * @method
1842
1842
  * @name poloniex#transfer
1843
1843
  * @description transfer currency internally between wallets on the same account
1844
- * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-accounts-transfer
1844
+ * @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
1845
1845
  * @param {string} code unified currency code
1846
1846
  * @param {float} amount amount to transfer
1847
1847
  * @param {string} fromAccount account to transfer from
@@ -1891,7 +1891,7 @@ export default class poloniex extends Exchange {
1891
1891
  * @method
1892
1892
  * @name poloniex#withdraw
1893
1893
  * @description make a withdrawal
1894
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-withdraw-currency
1894
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
1895
1895
  * @param {string} code unified currency code
1896
1896
  * @param {float} amount the amount to withdraw
1897
1897
  * @param {string} address the address to withdraw to
@@ -2016,7 +2016,7 @@ export default class poloniex extends Exchange {
2016
2016
  * @method
2017
2017
  * @name poloniex#fetchDepositsWithdrawals
2018
2018
  * @description fetch history of deposits and withdrawals
2019
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2019
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2020
2020
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2021
2021
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2022
2022
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -2041,7 +2041,7 @@ export default class poloniex extends Exchange {
2041
2041
  * @method
2042
2042
  * @name poloniex#fetchWithdrawals
2043
2043
  * @description fetch all withdrawals made from an account
2044
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2044
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2045
2045
  * @param {string} code unified currency code
2046
2046
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2047
2047
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -2062,7 +2062,7 @@ export default class poloniex extends Exchange {
2062
2062
  * @method
2063
2063
  * @name poloniex#fetchDepositWithdrawFees
2064
2064
  * @description fetch deposit and withdraw fees
2065
- * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
2065
+ * @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
2066
2066
  * @param {string[]|undefined} codes list of unified currency codes
2067
2067
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2068
2068
  * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -2187,7 +2187,7 @@ export default class poloniex extends Exchange {
2187
2187
  * @method
2188
2188
  * @name poloniex#fetchDeposits
2189
2189
  * @description fetch all deposits made to an account
2190
- * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2190
+ * @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2191
2191
  * @param {string} code unified currency code
2192
2192
  * @param {int} [since] the earliest time in ms to fetch deposits for
2193
2193
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -76,7 +76,7 @@ export default class poloniexfutures extends Exchange {
76
76
  'private': 'https://futures-api.poloniex.com',
77
77
  },
78
78
  'www': 'https://www.poloniex.com',
79
- 'doc': 'https://futures-docs.poloniex.com',
79
+ 'doc': 'https://api-docs.poloniex.com/futures/',
80
80
  'fees': 'https://poloniex.com/fee-schedule',
81
81
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
82
82
  },
@@ -211,7 +211,7 @@ export default class poloniexfutures extends Exchange {
211
211
  * @method
212
212
  * @name poloniexfutures#fetchMarkets
213
213
  * @description retrieves data on all markets for poloniexfutures
214
- * @see https://futures-docs.poloniex.com/#symbol-2
214
+ * @see https://api-docs.poloniex.com/futures/api/symbol
215
215
  * @param {object} [params] extra parameters specific to the exchange API endpoint
216
216
  * @returns {object[]} an array of objects representing market data
217
217
  */
@@ -423,7 +423,7 @@ export default class poloniexfutures extends Exchange {
423
423
  * @method
424
424
  * @name poloniexfutures#fetchTicker
425
425
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
426
- * @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
426
+ * @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
427
427
  * @param {string} symbol unified symbol of the market to fetch the ticker for
428
428
  * @param {object} [params] extra parameters specific to the exchange API endpoint
429
429
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -459,7 +459,7 @@ export default class poloniexfutures extends Exchange {
459
459
  * @method
460
460
  * @name poloniexfutures#fetchTickers
461
461
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
462
- * @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
462
+ * @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
463
463
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
464
464
  * @param {object} [params] extra parameters specific to the exchange API endpoint
465
465
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -474,8 +474,8 @@ export default class poloniexfutures extends Exchange {
474
474
  * @method
475
475
  * @name poloniexfuturesfutures#fetchOrderBook
476
476
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
477
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-2
478
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
477
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
478
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
479
479
  * @param {string} symbol unified symbol of the market to fetch the order book for
480
480
  * @param {int} [limit] the maximum amount of order book entries to return
481
481
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -561,7 +561,7 @@ export default class poloniexfutures extends Exchange {
561
561
  * @method
562
562
  * @name poloniexfutures#fetchL3OrderBook
563
563
  * @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
564
- * @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
564
+ * @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
565
565
  * @param {string} symbol unified market symbol
566
566
  * @param {int} [limit] max number of orders to return, default is undefined
567
567
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -668,7 +668,7 @@ export default class poloniexfutures extends Exchange {
668
668
  * @method
669
669
  * @name poloniexfutures#fetchTrades
670
670
  * @description get the list of most recent trades for a particular symbol
671
- * @see https://futures-docs.poloniex.com/#historical-data
671
+ * @see https://api-docs.poloniex.com/futures/api/historical#transaction-history
672
672
  * @param {string} symbol unified symbol of the market to fetch trades for
673
673
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
674
674
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -705,7 +705,7 @@ export default class poloniexfutures extends Exchange {
705
705
  * @method
706
706
  * @name poloniexfutures#fetchTime
707
707
  * @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
708
- * @see https://futures-docs.poloniex.com/#time
708
+ * @see https://api-docs.poloniex.com/futures/api/time#server-time
709
709
  * @param {object} [params] extra parameters specific to the exchange API endpoint
710
710
  * @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
711
711
  */
@@ -724,7 +724,7 @@ export default class poloniexfutures extends Exchange {
724
724
  * @method
725
725
  * @name poloniexfutures#fetchOHLCV
726
726
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
727
- * @see https://futures-docs.poloniex.com/#k-chart
727
+ * @see https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
728
728
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
729
729
  * @param {string} timeframe the length of time each candle represents
730
730
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -793,7 +793,7 @@ export default class poloniexfutures extends Exchange {
793
793
  * @method
794
794
  * @name poloniexfutures#fetchBalance
795
795
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
796
- * @see https://futures-docs.poloniex.com/#get-account-overview
796
+ * @see https://api-docs.poloniex.com/futures/api/account#get-account-overview
797
797
  * @param {object} [params] extra parameters specific to the exchange API endpoint
798
798
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
799
799
  */
@@ -829,7 +829,7 @@ export default class poloniexfutures extends Exchange {
829
829
  * @method
830
830
  * @name poloniexfutures#createOrder
831
831
  * @description Create an order on the exchange
832
- * @see https://futures-docs.poloniex.com/#place-an-order
832
+ * @see https://api-docs.poloniex.com/futures/api/orders#place-an-order
833
833
  * @param {string} symbol Unified CCXT market symbol
834
834
  * @param {string} type 'limit' or 'market'
835
835
  * @param {string} side 'buy' or 'sell'
@@ -937,7 +937,7 @@ export default class poloniexfutures extends Exchange {
937
937
  * @method
938
938
  * @name poloniexfutures#cancelOrder
939
939
  * @description cancels an open order
940
- * @see https://futures-docs.poloniex.com/#cancel-an-order
940
+ * @see https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
941
941
  * @param {string} id order id
942
942
  * @param {string} symbol unified symbol of the market the order was made in
943
943
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -977,7 +977,7 @@ export default class poloniexfutures extends Exchange {
977
977
  * @method
978
978
  * @name poloniexfutures#fetchPositions
979
979
  * @description fetch all open positions
980
- * @see https://futures-docs.poloniex.com/#get-position-list
980
+ * @see https://api-docs.poloniex.com/futures/api/positions#get-position-list
981
981
  * @param {string[]|undefined} symbols list of unified market symbols
982
982
  * @param {object} [params] extra parameters specific to the exchange API endpoint
983
983
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
@@ -1131,7 +1131,7 @@ export default class poloniexfutures extends Exchange {
1131
1131
  * @method
1132
1132
  * @name poloniexfutures#fetchFundingHistory
1133
1133
  * @description fetch the history of funding payments paid and received on this account
1134
- * @see https://futures-docs.poloniex.com/#get-funding-history
1134
+ * @see https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
1135
1135
  * @param {string} symbol unified market symbol
1136
1136
  * @param {int} [since] the earliest time in ms to fetch funding history for
1137
1137
  * @param {int} [limit] the maximum number of funding history structures to retrieve
@@ -1270,8 +1270,8 @@ export default class poloniexfutures extends Exchange {
1270
1270
  * @method
1271
1271
  * @name poloniexfutures#fetchOrdersByStatus
1272
1272
  * @description fetches a list of orders placed on the exchange
1273
- * @see https://futures-docs.poloniex.com/#get-order-list
1274
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1273
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1274
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1275
1275
  * @param {string} status 'active' or 'closed', only 'active' is valid for stop orders
1276
1276
  * @param {string} symbol unified symbol for the market to retrieve orders from
1277
1277
  * @param {int} [since] timestamp in ms of the earliest order to retrieve
@@ -1380,8 +1380,8 @@ export default class poloniexfutures extends Exchange {
1380
1380
  * @method
1381
1381
  * @name poloniexfutures#fetchOpenOrders
1382
1382
  * @description fetch all unfilled currently open orders
1383
- * @see https://futures-docs.poloniex.com/#get-order-list
1384
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1383
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1384
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1385
1385
  * @param {string} symbol unified market symbol
1386
1386
  * @param {int} [since] the earliest time in ms to fetch open orders for
1387
1387
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1398,8 +1398,8 @@ export default class poloniexfutures extends Exchange {
1398
1398
  * @method
1399
1399
  * @name poloniexfutures#fetchClosedOrders
1400
1400
  * @description fetches information on multiple closed orders made by the user
1401
- * @see https://futures-docs.poloniex.com/#get-order-list
1402
- * @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1401
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1402
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1403
1403
  * @param {string} symbol unified market symbol of the market orders were made in
1404
1404
  * @param {int} [since] the earliest time in ms to fetch orders for
1405
1405
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -1416,8 +1416,8 @@ export default class poloniexfutures extends Exchange {
1416
1416
  * @method
1417
1417
  * @name poloniexfutures#fetchOrder
1418
1418
  * @description fetches information on an order made by the user
1419
- * @see https://futures-docs.poloniex.com/#get-details-of-a-single-order
1420
- * @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
1419
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
1420
+ * @see https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
1421
1421
  * @param {string} symbol unified symbol of the market the order was made in
1422
1422
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1423
1423
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1616,7 +1616,7 @@ export default class poloniexfutures extends Exchange {
1616
1616
  * @method
1617
1617
  * @name poloniexfutures#fetchFundingRate
1618
1618
  * @description fetch the current funding rate
1619
- * @see https://futures-docs.poloniex.com/#get-premium-index
1619
+ * @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
1620
1620
  * @param {string} symbol unified market symbol
1621
1621
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1622
1622
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
@@ -1664,7 +1664,7 @@ export default class poloniexfutures extends Exchange {
1664
1664
  * @method
1665
1665
  * @name poloniexfutures#fetchMyTrades
1666
1666
  * @description fetch all trades made by the user
1667
- * @see https://futures-docs.poloniex.com/#get-fills
1667
+ * @see https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
1668
1668
  * @param {string} symbol unified market symbol
1669
1669
  * @param {int} [since] the earliest time in ms to fetch trades for
1670
1670
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1728,7 +1728,7 @@ export default class poloniexfutures extends Exchange {
1728
1728
  * @method
1729
1729
  * @name poloniexfutures#setMarginMode
1730
1730
  * @description set margin mode to 'cross' or 'isolated'
1731
- * @see https://futures-docs.poloniex.com/#change-margin-mode
1731
+ * @see https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
1732
1732
  * @param {string} marginMode "0" (isolated) or "1" (cross)
1733
1733
  * @param {string} symbol unified market symbol
1734
1734
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -79,17 +79,17 @@ export default class krakenfutures extends krakenfuturesRest {
79
79
  const url = this.urls['api']['ws'];
80
80
  const messageHash = 'challenge';
81
81
  const client = this.client(url);
82
- let future = this.safeValue(client.subscriptions, messageHash);
83
- if (future === undefined) {
82
+ const future = client.future(messageHash);
83
+ const authenticated = this.safeValue(client.subscriptions, messageHash);
84
+ if (authenticated === undefined) {
84
85
  const request = {
85
86
  'event': 'challenge',
86
87
  'api_key': this.apiKey,
87
88
  };
88
89
  const message = this.extend(request, params);
89
- future = await this.watch(url, messageHash, message, messageHash);
90
- client.subscriptions[messageHash] = future;
90
+ this.watch(url, messageHash, message, messageHash);
91
91
  }
92
- return future;
92
+ return await future;
93
93
  }
94
94
  async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
95
95
  /**
@@ -1575,7 +1575,8 @@ export default class krakenfutures extends krakenfuturesRest {
1575
1575
  const signature = this.hmac(hashedChallenge, base64Secret, sha512, 'base64');
1576
1576
  this.options['challenge'] = challenge;
1577
1577
  this.options['signedChallenge'] = signature;
1578
- client.resolve(message, messageHash);
1578
+ const future = this.safeValue(client.futures, messageHash);
1579
+ future.resolve(true);
1579
1580
  }
1580
1581
  else {
1581
1582
  const error = new AuthenticationError(this.id + ' ' + this.json(message));
@@ -81,7 +81,7 @@ export default class poloniex extends poloniexRest {
81
81
  * @ignore
82
82
  * @method
83
83
  * @description authenticates the user to access private web socket channels
84
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-authentication
84
+ * @see https://api-docs.poloniex.com/spot/websocket/authentication
85
85
  * @returns {object} response from exchange
86
86
  */
87
87
  this.checkRequiredCredentials();
@@ -187,7 +187,7 @@ export default class poloniex extends poloniexRest {
187
187
  /**
188
188
  * @method
189
189
  * @name poloniex#createOrderWs
190
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-create-order
190
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#create-order
191
191
  * @description create a trade order
192
192
  * @param {string} symbol unified symbol of the market to create an order in
193
193
  * @param {string} type 'market' or 'limit'
@@ -257,7 +257,7 @@ export default class poloniex extends poloniexRest {
257
257
  /**
258
258
  * @method
259
259
  * @name poloniex#cancelOrderWs
260
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-multiple-orders
260
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
261
261
  * @description cancel multiple orders
262
262
  * @param {string} id order id
263
263
  * @param {string} [symbol] unified market symbol
@@ -276,7 +276,7 @@ export default class poloniex extends poloniexRest {
276
276
  /**
277
277
  * @method
278
278
  * @name poloniex#cancelOrdersWs
279
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-multiple-orders
279
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
280
280
  * @description cancel multiple orders
281
281
  * @param {string[]} ids order ids
282
282
  * @param {string} symbol unified market symbol, default is undefined
@@ -295,7 +295,7 @@ export default class poloniex extends poloniexRest {
295
295
  /**
296
296
  * @method
297
297
  * @name poloniex#cancelAllOrdersWs
298
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-all-orders
298
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-all-orders
299
299
  * @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
300
300
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
301
301
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
@@ -332,7 +332,7 @@ export default class poloniex extends poloniexRest {
332
332
  * @method
333
333
  * @name poloniex#watchOHLCV
334
334
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
335
- * @see https://docs.poloniex.com/#public-channels-market-data-candlesticks
335
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#candlesticks
336
336
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
337
337
  * @param {string} timeframe the length of time each candle represents
338
338
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -357,7 +357,7 @@ export default class poloniex extends poloniexRest {
357
357
  * @method
358
358
  * @name poloniex#watchTicker
359
359
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
360
- * @see https://docs.poloniex.com/#public-channels-market-data-ticker
360
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
361
361
  * @param {string} symbol unified symbol of the market to fetch the ticker for
362
362
  * @param {object} [params] extra parameters specific to the exchange API endpoint
363
363
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -372,7 +372,7 @@ export default class poloniex extends poloniexRest {
372
372
  * @method
373
373
  * @name poloniex#watchTicker
374
374
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
375
- * @see https://docs.poloniex.com/#public-channels-market-data-ticker
375
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
376
376
  * @param {string} symbol unified symbol of the market to fetch the ticker for
377
377
  * @param {object} [params] extra parameters specific to the exchange API endpoint
378
378
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -391,7 +391,7 @@ export default class poloniex extends poloniexRest {
391
391
  * @method
392
392
  * @name poloniex#watchTrades
393
393
  * @description get the list of most recent trades for a particular symbol
394
- * @see https://docs.poloniex.com/#public-channels-market-data-trades
394
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
395
395
  * @param {string} symbol unified symbol of the market to fetch trades for
396
396
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
397
397
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -412,7 +412,7 @@ export default class poloniex extends poloniexRest {
412
412
  * @method
413
413
  * @name poloniex#watchOrderBook
414
414
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
415
- * @see https://docs.poloniex.com/#public-channels-market-data-book-level-2
415
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#book-level-2
416
416
  * @param {string} symbol unified symbol of the market to fetch the order book for
417
417
  * @param {int} [limit] not used by poloniex watchOrderBook
418
418
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -430,7 +430,7 @@ export default class poloniex extends poloniexRest {
430
430
  * @method
431
431
  * @name poloniex#watchOrders
432
432
  * @description watches information on multiple orders made by the user
433
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-orders
433
+ * @see https://api-docs.poloniex.com/spot/websocket/order
434
434
  * @param {string} symbol unified market symbol of the market orders were made in
435
435
  * @param {int} [since] not used by poloniex watchOrders
436
436
  * @param {int} [limit] not used by poloniex watchOrders
@@ -455,7 +455,7 @@ export default class poloniex extends poloniexRest {
455
455
  * @method
456
456
  * @name poloniex#watchMyTrades
457
457
  * @description watches information on multiple trades made by the user using orders stream
458
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-orders
458
+ * @see https://api-docs.poloniex.com/spot/websocket/order
459
459
  * @param {string} symbol unified market symbol of the market orders were made in
460
460
  * @param {int} [since] not used by poloniex watchMyTrades
461
461
  * @param {int} [limit] not used by poloniex watchMyTrades
@@ -481,7 +481,7 @@ export default class poloniex extends poloniexRest {
481
481
  * @method
482
482
  * @name poloniex#watchBalance
483
483
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
484
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
484
+ * @see https://api-docs.poloniex.com/spot/websocket/balance
485
485
  * @param {object} [params] extra parameters specific to the exchange API endpoint
486
486
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
487
487
  */