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
@@ -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