ccxt 4.4.69 → 4.4.71

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 (80) hide show
  1. package/README.md +5 -8
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +1 -6
  4. package/dist/cjs/src/abstract/poloniexfutures.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +22 -1
  6. package/dist/cjs/src/binance.js +107 -102
  7. package/dist/cjs/src/bingx.js +64 -42
  8. package/dist/cjs/src/bitget.js +50 -340
  9. package/dist/cjs/src/bitmart.js +15 -1
  10. package/dist/cjs/src/bitopro.js +1 -0
  11. package/dist/cjs/src/bitrue.js +1 -0
  12. package/dist/cjs/src/bybit.js +7 -0
  13. package/dist/cjs/src/cex.js +1 -0
  14. package/dist/cjs/src/coinbase.js +24 -4
  15. package/dist/cjs/src/coinbaseexchange.js +1 -0
  16. package/dist/cjs/src/deribit.js +1 -0
  17. package/dist/cjs/src/hashkey.js +4 -2
  18. package/dist/cjs/src/hyperliquid.js +18 -7
  19. package/dist/cjs/src/kraken.js +83 -6
  20. package/dist/cjs/src/kucoin.js +4 -2
  21. package/dist/cjs/src/mexc.js +8 -4
  22. package/dist/cjs/src/okx.js +62 -46
  23. package/dist/cjs/src/poloniex.js +1311 -81
  24. package/dist/cjs/src/poloniexfutures.js +1 -1
  25. package/dist/cjs/src/pro/binance.js +94 -94
  26. package/dist/cjs/src/pro/bingx.js +63 -52
  27. package/dist/cjs/src/pro/bitget.js +40 -7
  28. package/dist/cjs/src/pro/bybit.js +86 -38
  29. package/dist/cjs/src/pro/poloniexfutures.js +1 -1
  30. package/dist/cjs/src/tradeogre.js +22 -4
  31. package/dist/cjs/src/whitebit.js +4 -2
  32. package/js/ccxt.d.ts +3 -9
  33. package/js/ccxt.js +2 -6
  34. package/js/src/abstract/bingx.d.ts +1 -0
  35. package/js/src/abstract/bitmart.d.ts +1 -0
  36. package/js/src/abstract/bybit.d.ts +4 -0
  37. package/js/src/abstract/myokx.d.ts +3 -0
  38. package/js/src/abstract/okx.d.ts +3 -0
  39. package/js/src/abstract/poloniex.d.ts +36 -0
  40. package/js/src/abstract/poloniexfutures.js +6 -0
  41. package/js/src/abstract/tradeogre.d.ts +1 -1
  42. package/js/src/base/Exchange.d.ts +11 -2
  43. package/js/src/base/Exchange.js +22 -1
  44. package/js/src/base/types.d.ts +33 -2
  45. package/js/src/binance.d.ts +98 -97
  46. package/js/src/binance.js +107 -102
  47. package/js/src/bingx.js +64 -42
  48. package/js/src/bitget.d.ts +0 -1
  49. package/js/src/bitget.js +50 -340
  50. package/js/src/bitmart.d.ts +1 -0
  51. package/js/src/bitmart.js +15 -1
  52. package/js/src/bitopro.js +1 -0
  53. package/js/src/bitrue.js +1 -0
  54. package/js/src/bybit.js +7 -0
  55. package/js/src/cex.js +1 -0
  56. package/js/src/coinbase.js +24 -4
  57. package/js/src/coinbaseexchange.js +1 -0
  58. package/js/src/deribit.js +1 -0
  59. package/js/src/hashkey.js +4 -2
  60. package/js/src/hyperliquid.js +18 -7
  61. package/js/src/kraken.d.ts +1 -0
  62. package/js/src/kraken.js +83 -6
  63. package/js/src/kucoin.js +4 -2
  64. package/js/src/mexc.js +8 -4
  65. package/js/src/okx.d.ts +1 -0
  66. package/js/src/okx.js +62 -46
  67. package/js/src/poloniex.d.ts +109 -1
  68. package/js/src/poloniex.js +1311 -81
  69. package/js/src/poloniexfutures.js +6 -0
  70. package/js/src/pro/binance.d.ts +94 -94
  71. package/js/src/pro/binance.js +94 -94
  72. package/js/src/pro/bingx.js +63 -52
  73. package/js/src/pro/bitget.js +40 -7
  74. package/js/src/pro/bybit.d.ts +1 -0
  75. package/js/src/pro/bybit.js +86 -38
  76. package/js/src/pro/poloniexfutures.js +6 -0
  77. package/js/src/tradeogre.d.ts +1 -0
  78. package/js/src/tradeogre.js +22 -4
  79. package/js/src/whitebit.js +4 -2
  80. package/package.json +1 -1
@@ -2945,9 +2945,9 @@ class binance extends binance$1 {
2945
2945
  * @method
2946
2946
  * @name binance#fetchTime
2947
2947
  * @description fetches the current integer timestamp in milliseconds from the exchange server
2948
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time // spot
2948
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time // spot
2949
2949
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time // swap
2950
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time // future
2950
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time // future
2951
2951
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2952
2952
  * @param {string} [params.subType] "linear" or "inverse"
2953
2953
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
@@ -3210,12 +3210,12 @@ class binance extends binance$1 {
3210
3210
  * @method
3211
3211
  * @name binance#fetchMarkets
3212
3212
  * @description retrieves data on all markets for binance
3213
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information // spot
3213
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information // spot
3214
3214
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information // swap
3215
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information // future
3215
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information // future
3216
3216
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information // option
3217
- * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin
3218
- * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin
3217
+ * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin
3218
+ * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin
3219
3219
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3220
3220
  * @returns {object[]} an array of objects representing market data
3221
3221
  */
@@ -3824,12 +3824,12 @@ class binance extends binance$1 {
3824
3824
  * @method
3825
3825
  * @name binance#fetchBalance
3826
3826
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
3827
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data // spot
3827
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data // spot
3828
3828
  * @see https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details // cross margin
3829
3829
  * @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info // isolated margin
3830
3830
  * @see https://developers.binance.com/docs/wallet/asset/funding-wallet // funding
3831
3831
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 // swap
3832
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance // future
3832
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance // future
3833
3833
  * @see https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information // option
3834
3834
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance // portfolio margin
3835
3835
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4098,9 +4098,9 @@ class binance extends binance$1 {
4098
4098
  * @method
4099
4099
  * @name binance#fetchOrderBook
4100
4100
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
4101
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book // spot
4101
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book // spot
4102
4102
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book // swap
4103
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book // future
4103
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book // future
4104
4104
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Order-Book // option
4105
4105
  * @param {string} symbol unified symbol of the market to fetch the order book for
4106
4106
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -4364,10 +4364,10 @@ class binance extends binance$1 {
4364
4364
  * @method
4365
4365
  * @name binance#fetchTicker
4366
4366
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
4367
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
4368
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics // spot
4367
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
4368
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics // spot
4369
4369
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
4370
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
4370
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
4371
4371
  * @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
4372
4372
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4373
4373
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4410,9 +4410,9 @@ class binance extends binance$1 {
4410
4410
  * @method
4411
4411
  * @name binance#fetchBidsAsks
4412
4412
  * @description fetches the bid and ask price and volume for multiple markets
4413
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker // spot
4413
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker // spot
4414
4414
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // swap
4415
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker // future
4415
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // future
4416
4416
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4417
4417
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4418
4418
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4449,9 +4449,9 @@ class binance extends binance$1 {
4449
4449
  * @method
4450
4450
  * @name binance#fetchLastPrices
4451
4451
  * @description fetches the last price for multiple markets
4452
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker // spot
4452
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker // spot
4453
4453
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker // swap
4454
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker // future
4454
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker // future
4455
4455
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
4456
4456
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4457
4457
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4553,9 +4553,9 @@ class binance extends binance$1 {
4553
4553
  * @method
4554
4554
  * @name binance#fetchTickers
4555
4555
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
4556
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
4556
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
4557
4557
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
4558
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
4558
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
4559
4559
  * @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
4560
4560
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4561
4561
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4597,8 +4597,8 @@ class binance extends binance$1 {
4597
4597
  * @method
4598
4598
  * @name binance#fetchMarkPrice
4599
4599
  * @description fetches mark price for the market
4600
- * @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
4601
- * @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4600
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4601
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4602
4602
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4603
4603
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4604
4604
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4633,8 +4633,8 @@ class binance extends binance$1 {
4633
4633
  * @method
4634
4634
  * @name binance#fetchMarkPrices
4635
4635
  * @description fetches mark prices for multiple markets
4636
- * @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
4637
- * @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4636
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4637
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4638
4638
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4639
4639
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4640
4640
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4727,16 +4727,16 @@ class binance extends binance$1 {
4727
4727
  * @method
4728
4728
  * @name binance#fetchOHLCV
4729
4729
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4730
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4730
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
4731
4731
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4732
4732
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4733
4733
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4734
4734
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4735
4735
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4736
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4737
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4738
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4739
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4736
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4737
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4738
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4739
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4740
4740
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
4741
4741
  * @param {string} timeframe the length of time each candle represents
4742
4742
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -5138,17 +5138,17 @@ class binance extends binance$1 {
5138
5138
  * @name binance#fetchTrades
5139
5139
  * @description get the list of most recent trades for a particular symbol
5140
5140
  * Default fetchTradesMethod
5141
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list // publicGetAggTrades (spot)
5141
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list // publicGetAggTrades (spot)
5142
5142
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap)
5143
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
5143
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
5144
5144
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option)
5145
5145
  * Other fetchTradesMethod
5146
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list // publicGetTrades (spot)
5146
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list // publicGetTrades (spot)
5147
5147
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap)
5148
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List // dapiPublicGetTrades (future)
5149
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup // publicGetHistoricalTrades (spot)
5148
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List // dapiPublicGetTrades (future)
5149
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup // publicGetHistoricalTrades (spot)
5150
5150
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup // fapiPublicGetHistoricalTrades (swap)
5151
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
5151
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
5152
5152
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup // eapiPublicGetHistoricalTrades (option)
5153
5153
  * @param {string} symbol unified symbol of the market to fetch trades for
5154
5154
  * @param {int} [since] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
@@ -5284,7 +5284,7 @@ class binance extends binance$1 {
5284
5284
  * @name binance#editSpotOrder
5285
5285
  * @ignore
5286
5286
  * @description edit a trade order
5287
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5287
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5288
5288
  * @param {string} id cancel order id
5289
5289
  * @param {string} symbol unified symbol of the market to create an order in
5290
5290
  * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
@@ -5508,7 +5508,7 @@ class binance extends binance$1 {
5508
5508
  * @name binance#editContractOrder
5509
5509
  * @description edit a trade order
5510
5510
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5511
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5511
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5512
5512
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order
5513
5513
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order
5514
5514
  * @param {string} id cancel order id
@@ -5582,9 +5582,9 @@ class binance extends binance$1 {
5582
5582
  * @method
5583
5583
  * @name binance#editOrder
5584
5584
  * @description edit a trade order
5585
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5585
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5586
5586
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5587
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5587
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5588
5588
  * @param {string} id cancel order id
5589
5589
  * @param {string} symbol unified symbol of the market to create an order in
5590
5590
  * @param {string} type 'market' or 'limit'
@@ -5612,7 +5612,7 @@ class binance extends binance$1 {
5612
5612
  * @name binance#editOrders
5613
5613
  * @description edit a list of trade orders
5614
5614
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders
5615
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Multiple-Orders
5615
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
5616
5616
  * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
5617
5617
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5618
5618
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -6275,7 +6275,7 @@ class binance extends binance$1 {
6275
6275
  * @method
6276
6276
  * @name binance#createOrders
6277
6277
  * @description *contract only* create a list of trade orders
6278
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
6278
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders
6279
6279
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
6280
6280
  * @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
6281
6281
  * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
@@ -6358,12 +6358,12 @@ class binance extends binance$1 {
6358
6358
  * @name binance#createOrder
6359
6359
  * @description create a trade order
6360
6360
  * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6361
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
6361
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade
6362
6362
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
6363
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
6363
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
6364
6364
  * @see https://developers.binance.com/docs/derivatives/option/trade/New-Order
6365
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
6366
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
6365
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#sor
6366
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor
6367
6367
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
6368
6368
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
6369
6369
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
@@ -6810,7 +6810,7 @@ class binance extends binance$1 {
6810
6810
  * @method
6811
6811
  * @name binance#createMarketOrderWithCost
6812
6812
  * @description create a market order by providing the symbol, side and cost
6813
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6813
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6814
6814
  * @param {string} symbol unified symbol of the market to create an order in
6815
6815
  * @param {string} side 'buy' or 'sell'
6816
6816
  * @param {float} cost how much you want to trade in units of the quote currency
@@ -6823,14 +6823,16 @@ class binance extends binance$1 {
6823
6823
  if (!market['spot']) {
6824
6824
  throw new errors.NotSupported(this.id + ' createMarketOrderWithCost() supports spot orders only');
6825
6825
  }
6826
- params['cost'] = cost;
6827
- return await this.createOrder(symbol, 'market', side, cost, undefined, params);
6826
+ const req = {
6827
+ 'cost': cost,
6828
+ };
6829
+ return await this.createOrder(symbol, 'market', side, cost, undefined, this.extend(req, params));
6828
6830
  }
6829
6831
  /**
6830
6832
  * @method
6831
6833
  * @name binance#createMarketBuyOrderWithCost
6832
6834
  * @description create a market buy order by providing the symbol and cost
6833
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6835
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6834
6836
  * @param {string} symbol unified symbol of the market to create an order in
6835
6837
  * @param {float} cost how much you want to trade in units of the quote currency
6836
6838
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6842,14 +6844,16 @@ class binance extends binance$1 {
6842
6844
  if (!market['spot']) {
6843
6845
  throw new errors.NotSupported(this.id + ' createMarketBuyOrderWithCost() supports spot orders only');
6844
6846
  }
6845
- params['cost'] = cost;
6846
- return await this.createOrder(symbol, 'market', 'buy', cost, undefined, params);
6847
+ const req = {
6848
+ 'cost': cost,
6849
+ };
6850
+ return await this.createOrder(symbol, 'market', 'buy', cost, undefined, this.extend(req, params));
6847
6851
  }
6848
6852
  /**
6849
6853
  * @method
6850
6854
  * @name binance#createMarketSellOrderWithCost
6851
6855
  * @description create a market sell order by providing the symbol and cost
6852
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6856
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6853
6857
  * @param {string} symbol unified symbol of the market to create an order in
6854
6858
  * @param {float} cost how much you want to trade in units of the quote currency
6855
6859
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6868,9 +6872,9 @@ class binance extends binance$1 {
6868
6872
  * @method
6869
6873
  * @name binance#fetchOrder
6870
6874
  * @description fetches information on an order made by the user
6871
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6875
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
6872
6876
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6873
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6877
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
6874
6878
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6875
6879
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6876
6880
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
@@ -6950,9 +6954,9 @@ class binance extends binance$1 {
6950
6954
  * @method
6951
6955
  * @name binance#fetchOrders
6952
6956
  * @description fetches information on multiple orders made by the user
6953
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6957
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
6954
6958
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6955
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6959
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
6956
6960
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6957
6961
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6958
6962
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7229,9 +7233,9 @@ class binance extends binance$1 {
7229
7233
  * @method
7230
7234
  * @name binance#fetchOpenOrders
7231
7235
  * @description fetch all unfilled currently open orders
7232
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
7236
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
7233
7237
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
7234
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
7238
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
7235
7239
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
7236
7240
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
7237
7241
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
@@ -7335,7 +7339,7 @@ class binance extends binance$1 {
7335
7339
  * @name binance#fetchOpenOrder
7336
7340
  * @description fetch an open order by the id
7337
7341
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
7338
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
7342
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order
7339
7343
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
7340
7344
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
7341
7345
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
@@ -7552,9 +7556,9 @@ class binance extends binance$1 {
7552
7556
  * @method
7553
7557
  * @name binance#fetchClosedOrders
7554
7558
  * @description fetches information on multiple closed orders made by the user
7555
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7559
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7556
7560
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7557
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7561
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7558
7562
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7559
7563
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7560
7564
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7582,9 +7586,9 @@ class binance extends binance$1 {
7582
7586
  * @method
7583
7587
  * @name binance#fetchCanceledOrders
7584
7588
  * @description fetches information on multiple canceled orders made by the user
7585
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7589
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7586
7590
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7587
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7591
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7588
7592
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7589
7593
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7590
7594
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7612,9 +7616,9 @@ class binance extends binance$1 {
7612
7616
  * @method
7613
7617
  * @name binance#fetchCanceledAndClosedOrders
7614
7618
  * @description fetches information on multiple canceled orders made by the user
7615
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7619
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7616
7620
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7617
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7621
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7618
7622
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7619
7623
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7620
7624
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7645,9 +7649,9 @@ class binance extends binance$1 {
7645
7649
  * @method
7646
7650
  * @name binance#cancelOrder
7647
7651
  * @description cancels an open order
7648
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
7652
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
7649
7653
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
7650
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
7654
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
7651
7655
  * @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
7652
7656
  * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
7653
7657
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
@@ -7751,8 +7755,9 @@ class binance extends binance$1 {
7751
7755
  * @method
7752
7756
  * @name binance#cancelAllOrders
7753
7757
  * @description cancel all open orders in a market
7754
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
7758
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
7755
7759
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7760
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7756
7761
  * @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
7757
7762
  * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
7758
7763
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
@@ -7928,7 +7933,7 @@ class binance extends binance$1 {
7928
7933
  * @name binance#cancelOrders
7929
7934
  * @description cancel multiple orders
7930
7935
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7931
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7936
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7932
7937
  * @param {string[]} ids order ids
7933
7938
  * @param {string} [symbol] unified market symbol
7934
7939
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -7999,9 +8004,9 @@ class binance extends binance$1 {
7999
8004
  * @method
8000
8005
  * @name binance#fetchOrderTrades
8001
8006
  * @description fetch all the trades made from a single order
8002
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
8007
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
8003
8008
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
8004
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
8009
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
8005
8010
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
8006
8011
  * @param {string} id order id
8007
8012
  * @param {string} symbol unified market symbol
@@ -8030,9 +8035,9 @@ class binance extends binance$1 {
8030
8035
  * @method
8031
8036
  * @name binance#fetchMyTrades
8032
8037
  * @description fetch all trades made by the user
8033
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
8038
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
8034
8039
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
8035
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
8040
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
8036
8041
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
8037
8042
  * @see https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
8038
8043
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
@@ -8795,7 +8800,7 @@ class binance extends binance$1 {
8795
8800
  const internalInteger = this.safeInteger(transaction, 'transferType');
8796
8801
  let internal = undefined;
8797
8802
  if (internalInteger !== undefined) {
8798
- internal = internalInteger ? true : false;
8803
+ internal = (internalInteger !== 0) ? true : false;
8799
8804
  }
8800
8805
  const network = this.safeString(transaction, 'network');
8801
8806
  return {
@@ -9613,7 +9618,7 @@ class binance extends binance$1 {
9613
9618
  * @description fetch the trading fees for a market
9614
9619
  * @see https://developers.binance.com/docs/wallet/asset/trade-fee
9615
9620
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
9616
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
9621
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate
9617
9622
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
9618
9623
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
9619
9624
  * @param {string} symbol unified market symbol
@@ -9686,7 +9691,7 @@ class binance extends binance$1 {
9686
9691
  * @description fetch the trading fees for multiple markets
9687
9692
  * @see https://developers.binance.com/docs/wallet/asset/trade-fee
9688
9693
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9689
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9694
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
9690
9695
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
9691
9696
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9692
9697
  * @param {string} [params.subType] "linear" or "inverse"
@@ -9897,7 +9902,7 @@ class binance extends binance$1 {
9897
9902
  * @name binance#fetchFundingRate
9898
9903
  * @description fetch the current funding rate
9899
9904
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9900
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9905
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9901
9906
  * @param {string} symbol unified market symbol
9902
9907
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9903
9908
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
@@ -9940,7 +9945,7 @@ class binance extends binance$1 {
9940
9945
  * @name binance#fetchFundingRateHistory
9941
9946
  * @description fetches historical funding rate prices
9942
9947
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
9943
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
9948
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
9944
9949
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
9945
9950
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
9946
9951
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
@@ -10022,7 +10027,7 @@ class binance extends binance$1 {
10022
10027
  * @name binance#fetchFundingRates
10023
10028
  * @description fetch the funding rate for multiple markets
10024
10029
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
10025
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
10030
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
10026
10031
  * @param {string[]|undefined} symbols list of unified market symbols
10027
10032
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10028
10033
  * @param {string} [params.subType] "linear" or "inverse"
@@ -10700,7 +10705,7 @@ class binance extends binance$1 {
10700
10705
  * @name binance#fetchLeverageTiers
10701
10706
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
10702
10707
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
10703
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
10708
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair
10704
10709
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
10705
10710
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
10706
10711
  * @param {string[]|undefined} symbols list of unified market symbols
@@ -10984,9 +10989,9 @@ class binance extends binance$1 {
10984
10989
  * @name binance#fetchPositions
10985
10990
  * @description fetch all open positions
10986
10991
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10987
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10992
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10988
10993
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10989
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10994
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10990
10995
  * @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10991
10996
  * @param {string[]} [symbols] list of unified market symbols
10992
10997
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11026,9 +11031,9 @@ class binance extends binance$1 {
11026
11031
  * @ignore
11027
11032
  * @description fetch account positions
11028
11033
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
11029
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
11034
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
11030
11035
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
11031
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
11036
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
11032
11037
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
11033
11038
  * @param {string[]} [symbols] list of unified market symbols
11034
11039
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11158,7 +11163,7 @@ class binance extends binance$1 {
11158
11163
  * @ignore
11159
11164
  * @description fetch positions risk
11160
11165
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
11161
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
11166
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
11162
11167
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
11163
11168
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
11164
11169
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
@@ -11337,7 +11342,7 @@ class binance extends binance$1 {
11337
11342
  * @name binance#fetchFundingHistory
11338
11343
  * @description fetch the history of funding payments paid and received on this account
11339
11344
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11340
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11345
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11341
11346
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11342
11347
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11343
11348
  * @param {string} symbol unified market symbol
@@ -11403,7 +11408,7 @@ class binance extends binance$1 {
11403
11408
  * @name binance#setLeverage
11404
11409
  * @description set the level of leverage for a market
11405
11410
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
11406
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
11411
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage
11407
11412
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
11408
11413
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
11409
11414
  * @param {float} leverage the rate of leverage
@@ -11456,7 +11461,7 @@ class binance extends binance$1 {
11456
11461
  * @name binance#setMarginMode
11457
11462
  * @description set margin mode to 'cross' or 'isolated'
11458
11463
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
11459
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
11464
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
11460
11465
  * @param {string} marginMode 'cross' or 'isolated'
11461
11466
  * @param {string} symbol unified market symbol
11462
11467
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11524,7 +11529,7 @@ class binance extends binance$1 {
11524
11529
  * @name binance#setPositionMode
11525
11530
  * @description set hedged to true or false for a market
11526
11531
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
11527
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
11532
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode
11528
11533
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
11529
11534
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
11530
11535
  * @param {bool} hedged set to true to use dualSidePosition
@@ -11585,7 +11590,7 @@ class binance extends binance$1 {
11585
11590
  * @name binance#fetchLeverages
11586
11591
  * @description fetch the set leverage for all markets
11587
11592
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
11588
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
11593
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
11589
11594
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
11590
11595
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
11591
11596
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
@@ -11888,7 +11893,7 @@ class binance extends binance$1 {
11888
11893
  * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
11889
11894
  * @see https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
11890
11895
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11891
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11896
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11892
11897
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11893
11898
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11894
11899
  * @param {string} [code] unified currency code
@@ -12437,7 +12442,7 @@ class binance extends binance$1 {
12437
12442
  * @name binance#reduceMargin
12438
12443
  * @description remove margin from a position
12439
12444
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12440
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
12445
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12441
12446
  * @param {string} symbol unified market symbol
12442
12447
  * @param {float} amount the amount of margin to remove
12443
12448
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -12451,7 +12456,7 @@ class binance extends binance$1 {
12451
12456
  * @name binance#addMargin
12452
12457
  * @description add margin
12453
12458
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12454
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
12459
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12455
12460
  * @param {string} symbol unified market symbol
12456
12461
  * @param {float} amount amount of margin to add
12457
12462
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -13039,7 +13044,7 @@ class binance extends binance$1 {
13039
13044
  * @name binance#fetchOpenInterestHistory
13040
13045
  * @description Retrieves the open interest history of a currency
13041
13046
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
13042
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
13047
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics
13043
13048
  * @param {string} symbol Unified CCXT market symbol
13044
13049
  * @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
13045
13050
  * @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
@@ -13112,7 +13117,7 @@ class binance extends binance$1 {
13112
13117
  * @name binance#fetchOpenInterest
13113
13118
  * @description retrieves the open interest of a contract trading pair
13114
13119
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
13115
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
13120
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest
13116
13121
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
13117
13122
  * @param {string} symbol unified CCXT market symbol
13118
13123
  * @param {object} [params] exchange specific parameters
@@ -13211,7 +13216,7 @@ class binance extends binance$1 {
13211
13216
  * @description retrieves the users liquidated positions
13212
13217
  * @see https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
13213
13218
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
13214
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
13219
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
13215
13220
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
13216
13221
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
13217
13222
  * @param {string} [symbol] unified CCXT market symbol
@@ -13548,7 +13553,7 @@ class binance extends binance$1 {
13548
13553
  * @name binance#fetchPositionMode
13549
13554
  * @description fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
13550
13555
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
13551
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
13556
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode
13552
13557
  * @param {string} symbol unified symbol of the market to fetch the order book for
13553
13558
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13554
13559
  * @param {string} [params.subType] "linear" or "inverse"
@@ -13586,7 +13591,7 @@ class binance extends binance$1 {
13586
13591
  * @method
13587
13592
  * @name binance#fetchMarginModes
13588
13593
  * @description fetches margin modes ("isolated" or "cross") that the market for the symbol in in, with symbol=undefined all markets for a subType (linear/inverse) are returned
13589
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
13594
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
13590
13595
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
13591
13596
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
13592
13597
  * @param {string[]} symbols unified market symbols
@@ -13683,7 +13688,7 @@ class binance extends binance$1 {
13683
13688
  * @name binance#fetchMarginMode
13684
13689
  * @description fetches the margin mode of a specific symbol
13685
13690
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
13686
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
13691
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
13687
13692
  * @param {string} symbol unified symbol of the market the order was made in
13688
13693
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13689
13694
  * @param {string} [params.subType] "linear" or "inverse"
@@ -13832,7 +13837,7 @@ class binance extends binance$1 {
13832
13837
  * @name binance#fetchMarginAdjustmentHistory
13833
13838
  * @description fetches the history of margin added or reduced from contract isolated positions
13834
13839
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
13835
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
13840
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
13836
13841
  * @param {string} symbol unified market symbol
13837
13842
  * @param {string} [type] "add" or "reduce"
13838
13843
  * @param {int} [since] timestamp in ms of the earliest change to fetch
@@ -14303,8 +14308,8 @@ class binance extends binance$1 {
14303
14308
  * @method
14304
14309
  * @name binance#fetchFundingIntervals
14305
14310
  * @description fetch the funding rate interval for multiple markets
14306
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
14307
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
14311
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-Info
14312
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info
14308
14313
  * @param {string[]} [symbols] list of unified market symbols
14309
14314
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14310
14315
  * @param {string} [params.subType] "linear" or "inverse"
@@ -14348,7 +14353,7 @@ class binance extends binance$1 {
14348
14353
  * @name binance#fetchLongShortRatioHistory
14349
14354
  * @description fetches the long short ratio history for a unified market symbol
14350
14355
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
14351
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
14356
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio
14352
14357
  * @param {string} symbol unified symbol of the market to fetch the long short ratio for
14353
14358
  * @param {string} [timeframe] the period for the ratio, default is 24 hours
14354
14359
  * @param {int} [since] the earliest time in ms to fetch ratios for