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
package/js/src/binance.js CHANGED
@@ -2942,9 +2942,9 @@ export default class binance extends Exchange {
2942
2942
  * @method
2943
2943
  * @name binance#fetchTime
2944
2944
  * @description fetches the current integer timestamp in milliseconds from the exchange server
2945
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time // spot
2945
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time // spot
2946
2946
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time // swap
2947
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time // future
2947
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time // future
2948
2948
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2949
2949
  * @param {string} [params.subType] "linear" or "inverse"
2950
2950
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
@@ -3207,12 +3207,12 @@ export default class binance extends Exchange {
3207
3207
  * @method
3208
3208
  * @name binance#fetchMarkets
3209
3209
  * @description retrieves data on all markets for binance
3210
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information // spot
3210
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information // spot
3211
3211
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information // swap
3212
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information // future
3212
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information // future
3213
3213
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information // option
3214
- * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin
3215
- * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin
3214
+ * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin
3215
+ * @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin
3216
3216
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3217
3217
  * @returns {object[]} an array of objects representing market data
3218
3218
  */
@@ -3821,12 +3821,12 @@ export default class binance extends Exchange {
3821
3821
  * @method
3822
3822
  * @name binance#fetchBalance
3823
3823
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
3824
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data // spot
3824
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data // spot
3825
3825
  * @see https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details // cross margin
3826
3826
  * @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info // isolated margin
3827
3827
  * @see https://developers.binance.com/docs/wallet/asset/funding-wallet // funding
3828
3828
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 // swap
3829
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance // future
3829
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance // future
3830
3830
  * @see https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information // option
3831
3831
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance // portfolio margin
3832
3832
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4095,9 +4095,9 @@ export default class binance extends Exchange {
4095
4095
  * @method
4096
4096
  * @name binance#fetchOrderBook
4097
4097
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
4098
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book // spot
4098
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book // spot
4099
4099
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book // swap
4100
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book // future
4100
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book // future
4101
4101
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Order-Book // option
4102
4102
  * @param {string} symbol unified symbol of the market to fetch the order book for
4103
4103
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -4361,10 +4361,10 @@ export default class binance extends Exchange {
4361
4361
  * @method
4362
4362
  * @name binance#fetchTicker
4363
4363
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
4364
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
4365
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics // spot
4364
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
4365
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics // spot
4366
4366
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
4367
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
4367
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
4368
4368
  * @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
4369
4369
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4370
4370
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4407,9 +4407,9 @@ export default class binance extends Exchange {
4407
4407
  * @method
4408
4408
  * @name binance#fetchBidsAsks
4409
4409
  * @description fetches the bid and ask price and volume for multiple markets
4410
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker // spot
4410
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker // spot
4411
4411
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // swap
4412
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker // future
4412
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // future
4413
4413
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4414
4414
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4415
4415
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4446,9 +4446,9 @@ export default class binance extends Exchange {
4446
4446
  * @method
4447
4447
  * @name binance#fetchLastPrices
4448
4448
  * @description fetches the last price for multiple markets
4449
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker // spot
4449
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker // spot
4450
4450
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker // swap
4451
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker // future
4451
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker // future
4452
4452
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
4453
4453
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4454
4454
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4550,9 +4550,9 @@ export default class binance extends Exchange {
4550
4550
  * @method
4551
4551
  * @name binance#fetchTickers
4552
4552
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
4553
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
4553
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
4554
4554
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
4555
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
4555
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
4556
4556
  * @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
4557
4557
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4558
4558
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4594,8 +4594,8 @@ export default class binance extends Exchange {
4594
4594
  * @method
4595
4595
  * @name binance#fetchMarkPrice
4596
4596
  * @description fetches mark price for the market
4597
- * @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
4598
- * @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4597
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4598
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4599
4599
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4600
4600
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4601
4601
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4630,8 +4630,8 @@ export default class binance extends Exchange {
4630
4630
  * @method
4631
4631
  * @name binance#fetchMarkPrices
4632
4632
  * @description fetches mark prices for multiple markets
4633
- * @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
4634
- * @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4633
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4634
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4635
4635
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4636
4636
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4637
4637
  * @param {string} [params.subType] "linear" or "inverse"
@@ -4724,16 +4724,16 @@ export default class binance extends Exchange {
4724
4724
  * @method
4725
4725
  * @name binance#fetchOHLCV
4726
4726
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4727
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4727
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
4728
4728
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4729
4729
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4730
4730
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4731
4731
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4732
4732
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4733
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4734
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4735
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4736
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4733
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4734
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4735
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4736
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4737
4737
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
4738
4738
  * @param {string} timeframe the length of time each candle represents
4739
4739
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -5135,17 +5135,17 @@ export default class binance extends Exchange {
5135
5135
  * @name binance#fetchTrades
5136
5136
  * @description get the list of most recent trades for a particular symbol
5137
5137
  * Default fetchTradesMethod
5138
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list // publicGetAggTrades (spot)
5138
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list // publicGetAggTrades (spot)
5139
5139
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap)
5140
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
5140
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
5141
5141
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option)
5142
5142
  * Other fetchTradesMethod
5143
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list // publicGetTrades (spot)
5143
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list // publicGetTrades (spot)
5144
5144
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap)
5145
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List // dapiPublicGetTrades (future)
5146
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup // publicGetHistoricalTrades (spot)
5145
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List // dapiPublicGetTrades (future)
5146
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup // publicGetHistoricalTrades (spot)
5147
5147
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup // fapiPublicGetHistoricalTrades (swap)
5148
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
5148
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
5149
5149
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup // eapiPublicGetHistoricalTrades (option)
5150
5150
  * @param {string} symbol unified symbol of the market to fetch trades for
5151
5151
  * @param {int} [since] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
@@ -5281,7 +5281,7 @@ export default class binance extends Exchange {
5281
5281
  * @name binance#editSpotOrder
5282
5282
  * @ignore
5283
5283
  * @description edit a trade order
5284
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5284
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5285
5285
  * @param {string} id cancel order id
5286
5286
  * @param {string} symbol unified symbol of the market to create an order in
5287
5287
  * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
@@ -5505,7 +5505,7 @@ export default class binance extends Exchange {
5505
5505
  * @name binance#editContractOrder
5506
5506
  * @description edit a trade order
5507
5507
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5508
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5508
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5509
5509
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order
5510
5510
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order
5511
5511
  * @param {string} id cancel order id
@@ -5579,9 +5579,9 @@ export default class binance extends Exchange {
5579
5579
  * @method
5580
5580
  * @name binance#editOrder
5581
5581
  * @description edit a trade order
5582
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5582
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5583
5583
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5584
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5584
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5585
5585
  * @param {string} id cancel order id
5586
5586
  * @param {string} symbol unified symbol of the market to create an order in
5587
5587
  * @param {string} type 'market' or 'limit'
@@ -5609,7 +5609,7 @@ export default class binance extends Exchange {
5609
5609
  * @name binance#editOrders
5610
5610
  * @description edit a list of trade orders
5611
5611
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders
5612
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Multiple-Orders
5612
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
5613
5613
  * @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
5614
5614
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5615
5615
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -6272,7 +6272,7 @@ export default class binance extends Exchange {
6272
6272
  * @method
6273
6273
  * @name binance#createOrders
6274
6274
  * @description *contract only* create a list of trade orders
6275
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
6275
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders
6276
6276
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
6277
6277
  * @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
6278
6278
  * @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
@@ -6355,12 +6355,12 @@ export default class binance extends Exchange {
6355
6355
  * @name binance#createOrder
6356
6356
  * @description create a trade order
6357
6357
  * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6358
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
6358
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade
6359
6359
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
6360
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
6360
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
6361
6361
  * @see https://developers.binance.com/docs/derivatives/option/trade/New-Order
6362
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
6363
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
6362
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#sor
6363
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor
6364
6364
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
6365
6365
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
6366
6366
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
@@ -6807,7 +6807,7 @@ export default class binance extends Exchange {
6807
6807
  * @method
6808
6808
  * @name binance#createMarketOrderWithCost
6809
6809
  * @description create a market order by providing the symbol, side and cost
6810
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6810
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6811
6811
  * @param {string} symbol unified symbol of the market to create an order in
6812
6812
  * @param {string} side 'buy' or 'sell'
6813
6813
  * @param {float} cost how much you want to trade in units of the quote currency
@@ -6820,14 +6820,16 @@ export default class binance extends Exchange {
6820
6820
  if (!market['spot']) {
6821
6821
  throw new NotSupported(this.id + ' createMarketOrderWithCost() supports spot orders only');
6822
6822
  }
6823
- params['cost'] = cost;
6824
- return await this.createOrder(symbol, 'market', side, cost, undefined, params);
6823
+ const req = {
6824
+ 'cost': cost,
6825
+ };
6826
+ return await this.createOrder(symbol, 'market', side, cost, undefined, this.extend(req, params));
6825
6827
  }
6826
6828
  /**
6827
6829
  * @method
6828
6830
  * @name binance#createMarketBuyOrderWithCost
6829
6831
  * @description create a market buy order by providing the symbol and cost
6830
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6832
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6831
6833
  * @param {string} symbol unified symbol of the market to create an order in
6832
6834
  * @param {float} cost how much you want to trade in units of the quote currency
6833
6835
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6839,14 +6841,16 @@ export default class binance extends Exchange {
6839
6841
  if (!market['spot']) {
6840
6842
  throw new NotSupported(this.id + ' createMarketBuyOrderWithCost() supports spot orders only');
6841
6843
  }
6842
- params['cost'] = cost;
6843
- return await this.createOrder(symbol, 'market', 'buy', cost, undefined, params);
6844
+ const req = {
6845
+ 'cost': cost,
6846
+ };
6847
+ return await this.createOrder(symbol, 'market', 'buy', cost, undefined, this.extend(req, params));
6844
6848
  }
6845
6849
  /**
6846
6850
  * @method
6847
6851
  * @name binance#createMarketSellOrderWithCost
6848
6852
  * @description create a market sell order by providing the symbol and cost
6849
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6853
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6850
6854
  * @param {string} symbol unified symbol of the market to create an order in
6851
6855
  * @param {float} cost how much you want to trade in units of the quote currency
6852
6856
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6865,9 +6869,9 @@ export default class binance extends Exchange {
6865
6869
  * @method
6866
6870
  * @name binance#fetchOrder
6867
6871
  * @description fetches information on an order made by the user
6868
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6872
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
6869
6873
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6870
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6874
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
6871
6875
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6872
6876
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6873
6877
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
@@ -6947,9 +6951,9 @@ export default class binance extends Exchange {
6947
6951
  * @method
6948
6952
  * @name binance#fetchOrders
6949
6953
  * @description fetches information on multiple orders made by the user
6950
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6954
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
6951
6955
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6952
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6956
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
6953
6957
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6954
6958
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6955
6959
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7226,9 +7230,9 @@ export default class binance extends Exchange {
7226
7230
  * @method
7227
7231
  * @name binance#fetchOpenOrders
7228
7232
  * @description fetch all unfilled currently open orders
7229
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
7233
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
7230
7234
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
7231
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
7235
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
7232
7236
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
7233
7237
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
7234
7238
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
@@ -7332,7 +7336,7 @@ export default class binance extends Exchange {
7332
7336
  * @name binance#fetchOpenOrder
7333
7337
  * @description fetch an open order by the id
7334
7338
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
7335
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
7339
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order
7336
7340
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
7337
7341
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
7338
7342
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
@@ -7549,9 +7553,9 @@ export default class binance extends Exchange {
7549
7553
  * @method
7550
7554
  * @name binance#fetchClosedOrders
7551
7555
  * @description fetches information on multiple closed orders made by the user
7552
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7556
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7553
7557
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7554
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7558
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7555
7559
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7556
7560
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7557
7561
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7579,9 +7583,9 @@ export default class binance extends Exchange {
7579
7583
  * @method
7580
7584
  * @name binance#fetchCanceledOrders
7581
7585
  * @description fetches information on multiple canceled orders made by the user
7582
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7586
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7583
7587
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7584
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7588
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7585
7589
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7586
7590
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7587
7591
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7609,9 +7613,9 @@ export default class binance extends Exchange {
7609
7613
  * @method
7610
7614
  * @name binance#fetchCanceledAndClosedOrders
7611
7615
  * @description fetches information on multiple canceled orders made by the user
7612
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7616
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7613
7617
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7614
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7618
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7615
7619
  * @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7616
7620
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7617
7621
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7642,9 +7646,9 @@ export default class binance extends Exchange {
7642
7646
  * @method
7643
7647
  * @name binance#cancelOrder
7644
7648
  * @description cancels an open order
7645
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
7649
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
7646
7650
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
7647
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
7651
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
7648
7652
  * @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
7649
7653
  * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
7650
7654
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
@@ -7748,8 +7752,9 @@ export default class binance extends Exchange {
7748
7752
  * @method
7749
7753
  * @name binance#cancelAllOrders
7750
7754
  * @description cancel all open orders in a market
7751
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
7755
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
7752
7756
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7757
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7753
7758
  * @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
7754
7759
  * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
7755
7760
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
@@ -7925,7 +7930,7 @@ export default class binance extends Exchange {
7925
7930
  * @name binance#cancelOrders
7926
7931
  * @description cancel multiple orders
7927
7932
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7928
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7933
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7929
7934
  * @param {string[]} ids order ids
7930
7935
  * @param {string} [symbol] unified market symbol
7931
7936
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -7996,9 +8001,9 @@ export default class binance extends Exchange {
7996
8001
  * @method
7997
8002
  * @name binance#fetchOrderTrades
7998
8003
  * @description fetch all the trades made from a single order
7999
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
8004
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
8000
8005
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
8001
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
8006
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
8002
8007
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
8003
8008
  * @param {string} id order id
8004
8009
  * @param {string} symbol unified market symbol
@@ -8027,9 +8032,9 @@ export default class binance extends Exchange {
8027
8032
  * @method
8028
8033
  * @name binance#fetchMyTrades
8029
8034
  * @description fetch all trades made by the user
8030
- * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
8035
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
8031
8036
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
8032
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
8037
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
8033
8038
  * @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
8034
8039
  * @see https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
8035
8040
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
@@ -8792,7 +8797,7 @@ export default class binance extends Exchange {
8792
8797
  const internalInteger = this.safeInteger(transaction, 'transferType');
8793
8798
  let internal = undefined;
8794
8799
  if (internalInteger !== undefined) {
8795
- internal = internalInteger ? true : false;
8800
+ internal = (internalInteger !== 0) ? true : false;
8796
8801
  }
8797
8802
  const network = this.safeString(transaction, 'network');
8798
8803
  return {
@@ -9610,7 +9615,7 @@ export default class binance extends Exchange {
9610
9615
  * @description fetch the trading fees for a market
9611
9616
  * @see https://developers.binance.com/docs/wallet/asset/trade-fee
9612
9617
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
9613
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
9618
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate
9614
9619
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
9615
9620
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
9616
9621
  * @param {string} symbol unified market symbol
@@ -9683,7 +9688,7 @@ export default class binance extends Exchange {
9683
9688
  * @description fetch the trading fees for multiple markets
9684
9689
  * @see https://developers.binance.com/docs/wallet/asset/trade-fee
9685
9690
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9686
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9691
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
9687
9692
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
9688
9693
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9689
9694
  * @param {string} [params.subType] "linear" or "inverse"
@@ -9894,7 +9899,7 @@ export default class binance extends Exchange {
9894
9899
  * @name binance#fetchFundingRate
9895
9900
  * @description fetch the current funding rate
9896
9901
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9897
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9902
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9898
9903
  * @param {string} symbol unified market symbol
9899
9904
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9900
9905
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
@@ -9937,7 +9942,7 @@ export default class binance extends Exchange {
9937
9942
  * @name binance#fetchFundingRateHistory
9938
9943
  * @description fetches historical funding rate prices
9939
9944
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
9940
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
9945
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
9941
9946
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
9942
9947
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
9943
9948
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
@@ -10019,7 +10024,7 @@ export default class binance extends Exchange {
10019
10024
  * @name binance#fetchFundingRates
10020
10025
  * @description fetch the funding rate for multiple markets
10021
10026
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
10022
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
10027
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
10023
10028
  * @param {string[]|undefined} symbols list of unified market symbols
10024
10029
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10025
10030
  * @param {string} [params.subType] "linear" or "inverse"
@@ -10697,7 +10702,7 @@ export default class binance extends Exchange {
10697
10702
  * @name binance#fetchLeverageTiers
10698
10703
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
10699
10704
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
10700
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
10705
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair
10701
10706
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
10702
10707
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
10703
10708
  * @param {string[]|undefined} symbols list of unified market symbols
@@ -10981,9 +10986,9 @@ export default class binance extends Exchange {
10981
10986
  * @name binance#fetchPositions
10982
10987
  * @description fetch all open positions
10983
10988
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10984
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10989
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10985
10990
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10986
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10991
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10987
10992
  * @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10988
10993
  * @param {string[]} [symbols] list of unified market symbols
10989
10994
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11023,9 +11028,9 @@ export default class binance extends Exchange {
11023
11028
  * @ignore
11024
11029
  * @description fetch account positions
11025
11030
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
11026
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
11031
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
11027
11032
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
11028
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
11033
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
11029
11034
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
11030
11035
  * @param {string[]} [symbols] list of unified market symbols
11031
11036
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11155,7 +11160,7 @@ export default class binance extends Exchange {
11155
11160
  * @ignore
11156
11161
  * @description fetch positions risk
11157
11162
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
11158
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
11163
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
11159
11164
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
11160
11165
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
11161
11166
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
@@ -11334,7 +11339,7 @@ export default class binance extends Exchange {
11334
11339
  * @name binance#fetchFundingHistory
11335
11340
  * @description fetch the history of funding payments paid and received on this account
11336
11341
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11337
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11342
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11338
11343
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11339
11344
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11340
11345
  * @param {string} symbol unified market symbol
@@ -11400,7 +11405,7 @@ export default class binance extends Exchange {
11400
11405
  * @name binance#setLeverage
11401
11406
  * @description set the level of leverage for a market
11402
11407
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
11403
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
11408
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage
11404
11409
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
11405
11410
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
11406
11411
  * @param {float} leverage the rate of leverage
@@ -11453,7 +11458,7 @@ export default class binance extends Exchange {
11453
11458
  * @name binance#setMarginMode
11454
11459
  * @description set margin mode to 'cross' or 'isolated'
11455
11460
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
11456
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
11461
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
11457
11462
  * @param {string} marginMode 'cross' or 'isolated'
11458
11463
  * @param {string} symbol unified market symbol
11459
11464
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -11521,7 +11526,7 @@ export default class binance extends Exchange {
11521
11526
  * @name binance#setPositionMode
11522
11527
  * @description set hedged to true or false for a market
11523
11528
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
11524
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
11529
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode
11525
11530
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
11526
11531
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
11527
11532
  * @param {bool} hedged set to true to use dualSidePosition
@@ -11582,7 +11587,7 @@ export default class binance extends Exchange {
11582
11587
  * @name binance#fetchLeverages
11583
11588
  * @description fetch the set leverage for all markets
11584
11589
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
11585
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
11590
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
11586
11591
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
11587
11592
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
11588
11593
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
@@ -11885,7 +11890,7 @@ export default class binance extends Exchange {
11885
11890
  * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
11886
11891
  * @see https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
11887
11892
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11888
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11893
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11889
11894
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11890
11895
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11891
11896
  * @param {string} [code] unified currency code
@@ -12434,7 +12439,7 @@ export default class binance extends Exchange {
12434
12439
  * @name binance#reduceMargin
12435
12440
  * @description remove margin from a position
12436
12441
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12437
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
12442
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12438
12443
  * @param {string} symbol unified market symbol
12439
12444
  * @param {float} amount the amount of margin to remove
12440
12445
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -12448,7 +12453,7 @@ export default class binance extends Exchange {
12448
12453
  * @name binance#addMargin
12449
12454
  * @description add margin
12450
12455
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12451
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
12456
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
12452
12457
  * @param {string} symbol unified market symbol
12453
12458
  * @param {float} amount amount of margin to add
12454
12459
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -13036,7 +13041,7 @@ export default class binance extends Exchange {
13036
13041
  * @name binance#fetchOpenInterestHistory
13037
13042
  * @description Retrieves the open interest history of a currency
13038
13043
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
13039
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
13044
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics
13040
13045
  * @param {string} symbol Unified CCXT market symbol
13041
13046
  * @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
13042
13047
  * @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
@@ -13109,7 +13114,7 @@ export default class binance extends Exchange {
13109
13114
  * @name binance#fetchOpenInterest
13110
13115
  * @description retrieves the open interest of a contract trading pair
13111
13116
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
13112
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
13117
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest
13113
13118
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
13114
13119
  * @param {string} symbol unified CCXT market symbol
13115
13120
  * @param {object} [params] exchange specific parameters
@@ -13208,7 +13213,7 @@ export default class binance extends Exchange {
13208
13213
  * @description retrieves the users liquidated positions
13209
13214
  * @see https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
13210
13215
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
13211
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
13216
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
13212
13217
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
13213
13218
  * @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
13214
13219
  * @param {string} [symbol] unified CCXT market symbol
@@ -13545,7 +13550,7 @@ export default class binance extends Exchange {
13545
13550
  * @name binance#fetchPositionMode
13546
13551
  * @description fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
13547
13552
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
13548
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
13553
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode
13549
13554
  * @param {string} symbol unified symbol of the market to fetch the order book for
13550
13555
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13551
13556
  * @param {string} [params.subType] "linear" or "inverse"
@@ -13583,7 +13588,7 @@ export default class binance extends Exchange {
13583
13588
  * @method
13584
13589
  * @name binance#fetchMarginModes
13585
13590
  * @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
13586
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
13591
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
13587
13592
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
13588
13593
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
13589
13594
  * @param {string[]} symbols unified market symbols
@@ -13680,7 +13685,7 @@ export default class binance extends Exchange {
13680
13685
  * @name binance#fetchMarginMode
13681
13686
  * @description fetches the margin mode of a specific symbol
13682
13687
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
13683
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
13688
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
13684
13689
  * @param {string} symbol unified symbol of the market the order was made in
13685
13690
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13686
13691
  * @param {string} [params.subType] "linear" or "inverse"
@@ -13829,7 +13834,7 @@ export default class binance extends Exchange {
13829
13834
  * @name binance#fetchMarginAdjustmentHistory
13830
13835
  * @description fetches the history of margin added or reduced from contract isolated positions
13831
13836
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
13832
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
13837
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
13833
13838
  * @param {string} symbol unified market symbol
13834
13839
  * @param {string} [type] "add" or "reduce"
13835
13840
  * @param {int} [since] timestamp in ms of the earliest change to fetch
@@ -14300,8 +14305,8 @@ export default class binance extends Exchange {
14300
14305
  * @method
14301
14306
  * @name binance#fetchFundingIntervals
14302
14307
  * @description fetch the funding rate interval for multiple markets
14303
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
14304
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
14308
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-Info
14309
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info
14305
14310
  * @param {string[]} [symbols] list of unified market symbols
14306
14311
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14307
14312
  * @param {string} [params.subType] "linear" or "inverse"
@@ -14345,7 +14350,7 @@ export default class binance extends Exchange {
14345
14350
  * @name binance#fetchLongShortRatioHistory
14346
14351
  * @description fetches the long short ratio history for a unified market symbol
14347
14352
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
14348
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
14353
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio
14349
14354
  * @param {string} symbol unified symbol of the market to fetch the long short ratio for
14350
14355
  * @param {string} [timeframe] the period for the ratio, default is 24 hours
14351
14356
  * @param {int} [since] the earliest time in ms to fetch ratios for