ccxt 4.4.70__py2.py3-none-any.whl → 4.4.72__py2.py3-none-any.whl

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 (99) hide show
  1. ccxt/__init__.py +1 -3
  2. ccxt/abstract/bingx.py +1 -0
  3. ccxt/abstract/bitmart.py +1 -0
  4. ccxt/abstract/poloniex.py +36 -0
  5. ccxt/ascendex.py +1 -1
  6. ccxt/async_support/__init__.py +1 -3
  7. ccxt/async_support/ascendex.py +1 -1
  8. ccxt/async_support/base/exchange.py +3 -3
  9. ccxt/async_support/binance.py +107 -102
  10. ccxt/async_support/bingx.py +65 -43
  11. ccxt/async_support/bitfinex.py +1 -1
  12. ccxt/async_support/bitfinex1.py +1 -1
  13. ccxt/async_support/bitget.py +0 -3
  14. ccxt/async_support/bitmart.py +12 -1
  15. ccxt/async_support/bitopro.py +1 -0
  16. ccxt/async_support/bitrue.py +1 -0
  17. ccxt/async_support/bl3p.py +2 -2
  18. ccxt/async_support/cex.py +2 -0
  19. ccxt/async_support/coinbase.py +3 -2
  20. ccxt/async_support/coinbaseexchange.py +4 -2
  21. ccxt/async_support/coinbaseinternational.py +3 -2
  22. ccxt/async_support/coinex.py +1 -1
  23. ccxt/async_support/deribit.py +3 -1
  24. ccxt/async_support/derive.py +11 -7
  25. ccxt/async_support/gate.py +3 -0
  26. ccxt/async_support/gemini.py +2 -1
  27. ccxt/async_support/hashkey.py +4 -2
  28. ccxt/async_support/hitbtc.py +1 -1
  29. ccxt/async_support/hyperliquid.py +38 -0
  30. ccxt/async_support/kraken.py +78 -6
  31. ccxt/async_support/krakenfutures.py +4 -0
  32. ccxt/async_support/kucoin.py +5 -3
  33. ccxt/async_support/kuna.py +1 -1
  34. ccxt/async_support/mexc.py +9 -5
  35. ccxt/async_support/ndax.py +1 -1
  36. ccxt/async_support/okcoin.py +4 -0
  37. ccxt/async_support/okx.py +79 -76
  38. ccxt/async_support/paradex.py +65 -7
  39. ccxt/async_support/paymium.py +1 -1
  40. ccxt/async_support/poloniex.py +1265 -86
  41. ccxt/async_support/upbit.py +1 -1
  42. ccxt/async_support/whitebit.py +102 -4
  43. ccxt/async_support/woo.py +3 -1
  44. ccxt/async_support/woofipro.py +1 -1
  45. ccxt/async_support/yobit.py +2 -1
  46. ccxt/base/errors.py +6 -0
  47. ccxt/base/exchange.py +31 -4
  48. ccxt/base/types.py +28 -0
  49. ccxt/binance.py +107 -102
  50. ccxt/bingx.py +65 -43
  51. ccxt/bitfinex.py +1 -1
  52. ccxt/bitfinex1.py +1 -1
  53. ccxt/bitget.py +0 -3
  54. ccxt/bitmart.py +12 -1
  55. ccxt/bitopro.py +1 -0
  56. ccxt/bitrue.py +1 -0
  57. ccxt/bl3p.py +2 -2
  58. ccxt/cex.py +2 -0
  59. ccxt/coinbase.py +3 -2
  60. ccxt/coinbaseexchange.py +4 -2
  61. ccxt/coinbaseinternational.py +3 -2
  62. ccxt/coinex.py +1 -1
  63. ccxt/deribit.py +3 -1
  64. ccxt/derive.py +11 -7
  65. ccxt/gate.py +3 -0
  66. ccxt/gemini.py +2 -1
  67. ccxt/hashkey.py +4 -2
  68. ccxt/hitbtc.py +1 -1
  69. ccxt/hyperliquid.py +38 -0
  70. ccxt/kraken.py +78 -6
  71. ccxt/krakenfutures.py +4 -0
  72. ccxt/kucoin.py +5 -3
  73. ccxt/kuna.py +1 -1
  74. ccxt/mexc.py +9 -5
  75. ccxt/ndax.py +1 -1
  76. ccxt/okcoin.py +4 -0
  77. ccxt/okx.py +79 -76
  78. ccxt/paradex.py +65 -7
  79. ccxt/paymium.py +1 -1
  80. ccxt/poloniex.py +1264 -86
  81. ccxt/pro/__init__.py +1 -3
  82. ccxt/pro/binance.py +102 -102
  83. ccxt/pro/bingx.py +63 -52
  84. ccxt/pro/bitmart.py +15 -7
  85. ccxt/pro/derive.py +2 -2
  86. ccxt/pro/krakenfutures.py +1 -1
  87. ccxt/test/tests_async.py +1 -0
  88. ccxt/test/tests_sync.py +1 -0
  89. ccxt/upbit.py +1 -1
  90. ccxt/whitebit.py +102 -4
  91. ccxt/woo.py +3 -1
  92. ccxt/woofipro.py +1 -1
  93. ccxt/yobit.py +2 -1
  94. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/METADATA +6 -9
  95. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/RECORD +98 -99
  96. ccxt/abstract/poloniexfutures.py +0 -48
  97. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/LICENSE.txt +0 -0
  98. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/WHEEL +0 -0
  99. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/top_level.txt +0 -0
@@ -2945,9 +2945,9 @@ class binance(Exchange, ImplicitAPI):
2945
2945
  """
2946
2946
  fetches the current integer timestamp in milliseconds from the exchange server
2947
2947
 
2948
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time # spot
2948
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time # spot
2949
2949
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time # swap
2950
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time # future
2950
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time # future
2951
2951
 
2952
2952
  :param dict [params]: extra parameters specific to the exchange API endpoint
2953
2953
  :param str [params.subType]: "linear" or "inverse"
@@ -3195,12 +3195,12 @@ class binance(Exchange, ImplicitAPI):
3195
3195
  """
3196
3196
  retrieves data on all markets for binance
3197
3197
 
3198
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information # spot
3198
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information # spot
3199
3199
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information # swap
3200
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information # future
3200
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information # future
3201
3201
  https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information # option
3202
- https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
3203
- https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
3202
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
3203
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
3204
3204
 
3205
3205
  :param dict [params]: extra parameters specific to the exchange API endpoint
3206
3206
  :returns dict[]: an array of objects representing market data
@@ -3754,12 +3754,12 @@ class binance(Exchange, ImplicitAPI):
3754
3754
  """
3755
3755
  query for balance and get the amount of funds available for trading or funds locked in orders
3756
3756
 
3757
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data # spot
3757
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data # spot
3758
3758
  https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details # cross margin
3759
3759
  https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info # isolated margin
3760
3760
  https://developers.binance.com/docs/wallet/asset/funding-wallet # funding
3761
3761
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 # swap
3762
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance # future
3762
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance # future
3763
3763
  https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information # option
3764
3764
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance # portfolio margin
3765
3765
 
@@ -4012,9 +4012,9 @@ class binance(Exchange, ImplicitAPI):
4012
4012
  """
4013
4013
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
4014
4014
 
4015
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book # spot
4015
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book # spot
4016
4016
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book # swap
4017
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book # future
4017
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book # future
4018
4018
  https://developers.binance.com/docs/derivatives/option/market-data/Order-Book # option
4019
4019
 
4020
4020
  :param str symbol: unified symbol of the market to fetch the order book for
@@ -4086,7 +4086,7 @@ class binance(Exchange, ImplicitAPI):
4086
4086
  # "symbol": "BTCUSDT",
4087
4087
  # "markPrice": "11793.63104562", # mark price
4088
4088
  # "indexPrice": "11781.80495970", # index price
4089
- # "estimatedSettlePrice": "11781.16138815", # Estimated Settle Price, only useful in the last hour before the settlement starts.
4089
+ # "estimatedSettlePrice": "11781.16138815", # Estimated Settle Price, only useful in the last hour before the settlement starts
4090
4090
  # "lastFundingRate": "0.00038246", # This is the lastest estimated funding rate
4091
4091
  # "nextFundingTime": 1597392000000,
4092
4092
  # "interestRate": "0.00010000",
@@ -4269,10 +4269,10 @@ class binance(Exchange, ImplicitAPI):
4269
4269
  """
4270
4270
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
4271
4271
 
4272
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4273
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics # spot
4272
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics # spot
4273
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics # spot
4274
4274
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4275
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4275
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # future
4276
4276
  https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4277
4277
 
4278
4278
  :param str symbol: unified symbol of the market to fetch the ticker for
@@ -4308,9 +4308,9 @@ class binance(Exchange, ImplicitAPI):
4308
4308
  """
4309
4309
  fetches the bid and ask price and volume for multiple markets
4310
4310
 
4311
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker # spot
4311
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker # spot
4312
4312
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # swap
4313
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker # future
4313
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # future
4314
4314
 
4315
4315
  :param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4316
4316
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4342,9 +4342,9 @@ class binance(Exchange, ImplicitAPI):
4342
4342
  """
4343
4343
  fetches the last price for multiple markets
4344
4344
 
4345
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker # spot
4345
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker # spot
4346
4346
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker # swap
4347
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker # future
4347
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker # future
4348
4348
 
4349
4349
  :param str[]|None symbols: unified symbols of the markets to fetch the last prices
4350
4350
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4442,9 +4442,9 @@ class binance(Exchange, ImplicitAPI):
4442
4442
  """
4443
4443
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
4444
4444
 
4445
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4445
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics # spot
4446
4446
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4447
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4447
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # future
4448
4448
  https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4449
4449
 
4450
4450
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
@@ -4480,8 +4480,8 @@ class binance(Exchange, ImplicitAPI):
4480
4480
  """
4481
4481
  fetches mark price for the market
4482
4482
 
4483
- https://binance-docs.github.io/apidocs/futures/en/#mark-price
4484
- https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4483
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4484
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4485
4485
 
4486
4486
  :param str symbol: unified symbol of the market to fetch the ticker for
4487
4487
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4512,8 +4512,8 @@ class binance(Exchange, ImplicitAPI):
4512
4512
  """
4513
4513
  fetches mark prices for multiple markets
4514
4514
 
4515
- https://binance-docs.github.io/apidocs/futures/en/#mark-price
4516
- https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4515
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4516
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4517
4517
 
4518
4518
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4519
4519
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4603,16 +4603,16 @@ class binance(Exchange, ImplicitAPI):
4603
4603
  """
4604
4604
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4605
4605
 
4606
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4606
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
4607
4607
  https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4608
4608
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4609
4609
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4610
4610
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4611
4611
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4612
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4613
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4614
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4615
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4612
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4613
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4614
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4615
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4616
4616
 
4617
4617
  :param str symbol: unified symbol of the market to fetch OHLCV data for
4618
4618
  :param str timeframe: the length of time each candle represents
@@ -4980,19 +4980,19 @@ class binance(Exchange, ImplicitAPI):
4980
4980
  get the list of most recent trades for a particular symbol
4981
4981
  Default fetchTradesMethod
4982
4982
 
4983
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list # publicGetAggTrades(spot)
4983
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list # publicGetAggTrades(spot)
4984
4984
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # fapiPublicGetAggTrades(swap)
4985
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4985
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4986
4986
  https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List # eapiPublicGetTrades(option)
4987
4987
 
4988
4988
  Other fetchTradesMethod
4989
4989
 
4990
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list # publicGetTrades(spot)
4990
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list # publicGetTrades(spot)
4991
4991
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List # fapiPublicGetTrades(swap)
4992
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List # dapiPublicGetTrades(future)
4993
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup # publicGetHistoricalTrades(spot)
4992
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List # dapiPublicGetTrades(future)
4993
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup # publicGetHistoricalTrades(spot)
4994
4994
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup # fapiPublicGetHistoricalTrades(swap)
4995
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4995
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4996
4996
  https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup # eapiPublicGetHistoricalTrades(option)
4997
4997
 
4998
4998
  :param str symbol: unified symbol of the market to fetch trades for
@@ -5119,7 +5119,7 @@ class binance(Exchange, ImplicitAPI):
5119
5119
  @ignore
5120
5120
  edit a trade order
5121
5121
 
5122
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5122
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5123
5123
 
5124
5124
  :param str id: cancel order id
5125
5125
  :param str symbol: unified symbol of the market to create an order in
@@ -5307,7 +5307,7 @@ class binance(Exchange, ImplicitAPI):
5307
5307
  edit a trade order
5308
5308
 
5309
5309
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5310
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5310
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5311
5311
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order
5312
5312
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order
5313
5313
 
@@ -5373,9 +5373,9 @@ class binance(Exchange, ImplicitAPI):
5373
5373
  """
5374
5374
  edit a trade order
5375
5375
 
5376
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5376
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5377
5377
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5378
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5378
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5379
5379
 
5380
5380
  :param str id: cancel order id
5381
5381
  :param str symbol: unified symbol of the market to create an order in
@@ -5400,7 +5400,7 @@ class binance(Exchange, ImplicitAPI):
5400
5400
  edit a list of trade orders
5401
5401
 
5402
5402
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders
5403
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Multiple-Orders
5403
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
5404
5404
 
5405
5405
  :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
5406
5406
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6050,7 +6050,7 @@ class binance(Exchange, ImplicitAPI):
6050
6050
  """
6051
6051
  *contract only* create a list of trade orders
6052
6052
 
6053
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
6053
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders
6054
6054
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
6055
6055
  https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
6056
6056
 
@@ -6128,12 +6128,12 @@ class binance(Exchange, ImplicitAPI):
6128
6128
  create a trade order
6129
6129
 
6130
6130
  https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6131
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
6131
+ https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade
6132
6132
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
6133
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
6133
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
6134
6134
  https://developers.binance.com/docs/derivatives/option/trade/New-Order
6135
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
6136
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
6135
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#sor
6136
+ https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor
6137
6137
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
6138
6138
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
6139
6139
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
@@ -6480,7 +6480,7 @@ class binance(Exchange, ImplicitAPI):
6480
6480
  """
6481
6481
  create a market order by providing the symbol, side and cost
6482
6482
 
6483
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6483
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6484
6484
 
6485
6485
  :param str symbol: unified symbol of the market to create an order in
6486
6486
  :param str side: 'buy' or 'sell'
@@ -6492,14 +6492,16 @@ class binance(Exchange, ImplicitAPI):
6492
6492
  market = self.market(symbol)
6493
6493
  if not market['spot']:
6494
6494
  raise NotSupported(self.id + ' createMarketOrderWithCost() supports spot orders only')
6495
- params['cost'] = cost
6496
- return await self.create_order(symbol, 'market', side, cost, None, params)
6495
+ req = {
6496
+ 'cost': cost,
6497
+ }
6498
+ return await self.create_order(symbol, 'market', side, cost, None, self.extend(req, params))
6497
6499
 
6498
6500
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
6499
6501
  """
6500
6502
  create a market buy order by providing the symbol and cost
6501
6503
 
6502
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6504
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6503
6505
 
6504
6506
  :param str symbol: unified symbol of the market to create an order in
6505
6507
  :param float cost: how much you want to trade in units of the quote currency
@@ -6510,14 +6512,16 @@ class binance(Exchange, ImplicitAPI):
6510
6512
  market = self.market(symbol)
6511
6513
  if not market['spot']:
6512
6514
  raise NotSupported(self.id + ' createMarketBuyOrderWithCost() supports spot orders only')
6513
- params['cost'] = cost
6514
- return await self.create_order(symbol, 'market', 'buy', cost, None, params)
6515
+ req = {
6516
+ 'cost': cost,
6517
+ }
6518
+ return await self.create_order(symbol, 'market', 'buy', cost, None, self.extend(req, params))
6515
6519
 
6516
6520
  async def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
6517
6521
  """
6518
6522
  create a market sell order by providing the symbol and cost
6519
6523
 
6520
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6524
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6521
6525
 
6522
6526
  :param str symbol: unified symbol of the market to create an order in
6523
6527
  :param float cost: how much you want to trade in units of the quote currency
@@ -6535,9 +6539,9 @@ class binance(Exchange, ImplicitAPI):
6535
6539
  """
6536
6540
  fetches information on an order made by the user
6537
6541
 
6538
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6542
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
6539
6543
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6540
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6544
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
6541
6545
  https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6542
6546
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6543
6547
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
@@ -6600,9 +6604,9 @@ class binance(Exchange, ImplicitAPI):
6600
6604
  """
6601
6605
  fetches information on multiple orders made by the user
6602
6606
 
6603
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6607
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
6604
6608
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6605
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6609
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
6606
6610
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6607
6611
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6608
6612
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -6859,9 +6863,9 @@ class binance(Exchange, ImplicitAPI):
6859
6863
  """
6860
6864
  fetch all unfilled currently open orders
6861
6865
 
6862
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
6866
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
6863
6867
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
6864
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
6868
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
6865
6869
  https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
6866
6870
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
6867
6871
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
@@ -6943,7 +6947,7 @@ class binance(Exchange, ImplicitAPI):
6943
6947
  fetch an open order by the id
6944
6948
 
6945
6949
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
6946
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
6950
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order
6947
6951
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
6948
6952
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
6949
6953
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
@@ -7146,9 +7150,9 @@ class binance(Exchange, ImplicitAPI):
7146
7150
  """
7147
7151
  fetches information on multiple closed orders made by the user
7148
7152
 
7149
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7153
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7150
7154
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7151
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7155
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7152
7156
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7153
7157
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7154
7158
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7175,9 +7179,9 @@ class binance(Exchange, ImplicitAPI):
7175
7179
  """
7176
7180
  fetches information on multiple canceled orders made by the user
7177
7181
 
7178
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7182
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7179
7183
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7180
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7184
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7181
7185
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7182
7186
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7183
7187
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7204,9 +7208,9 @@ class binance(Exchange, ImplicitAPI):
7204
7208
  """
7205
7209
  fetches information on multiple canceled orders made by the user
7206
7210
 
7207
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7211
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7208
7212
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7209
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7213
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7210
7214
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7211
7215
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7212
7216
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7236,9 +7240,9 @@ class binance(Exchange, ImplicitAPI):
7236
7240
  """
7237
7241
  cancels an open order
7238
7242
 
7239
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
7243
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
7240
7244
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
7241
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
7245
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
7242
7246
  https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
7243
7247
  https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
7244
7248
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
@@ -7317,8 +7321,9 @@ class binance(Exchange, ImplicitAPI):
7317
7321
  """
7318
7322
  cancel all open orders in a market
7319
7323
 
7320
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
7324
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
7321
7325
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7326
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7322
7327
  https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
7323
7328
  https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
7324
7329
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
@@ -7475,7 +7480,7 @@ class binance(Exchange, ImplicitAPI):
7475
7480
  cancel multiple orders
7476
7481
 
7477
7482
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7478
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7483
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7479
7484
 
7480
7485
  :param str[] ids: order ids
7481
7486
  :param str [symbol]: unified market symbol
@@ -7542,9 +7547,9 @@ class binance(Exchange, ImplicitAPI):
7542
7547
  """
7543
7548
  fetch all the trades made from a single order
7544
7549
 
7545
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7550
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
7546
7551
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7547
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7552
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
7548
7553
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7549
7554
 
7550
7555
  :param str id: order id
@@ -7571,9 +7576,9 @@ class binance(Exchange, ImplicitAPI):
7571
7576
  """
7572
7577
  fetch all trades made by the user
7573
7578
 
7574
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7579
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
7575
7580
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7576
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7581
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
7577
7582
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7578
7583
  https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
7579
7584
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
@@ -9049,7 +9054,7 @@ class binance(Exchange, ImplicitAPI):
9049
9054
 
9050
9055
  https://developers.binance.com/docs/wallet/asset/trade-fee
9051
9056
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
9052
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
9057
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate
9053
9058
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
9054
9059
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
9055
9060
 
@@ -9114,7 +9119,7 @@ class binance(Exchange, ImplicitAPI):
9114
9119
 
9115
9120
  https://developers.binance.com/docs/wallet/asset/trade-fee
9116
9121
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9117
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9122
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
9118
9123
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
9119
9124
 
9120
9125
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9313,7 +9318,7 @@ class binance(Exchange, ImplicitAPI):
9313
9318
  fetch the current funding rate
9314
9319
 
9315
9320
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9316
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9321
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9317
9322
 
9318
9323
  :param str symbol: unified market symbol
9319
9324
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9352,7 +9357,7 @@ class binance(Exchange, ImplicitAPI):
9352
9357
  fetches historical funding rate prices
9353
9358
 
9354
9359
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
9355
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
9360
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
9356
9361
 
9357
9362
  :param str symbol: unified symbol of the market to fetch the funding rate history for
9358
9363
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
@@ -9426,7 +9431,7 @@ class binance(Exchange, ImplicitAPI):
9426
9431
  fetch the funding rate for multiple markets
9427
9432
 
9428
9433
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9429
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9434
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9430
9435
 
9431
9436
  :param str[]|None symbols: list of unified market symbols
9432
9437
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10046,7 +10051,7 @@ class binance(Exchange, ImplicitAPI):
10046
10051
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
10047
10052
 
10048
10053
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
10049
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
10054
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair
10050
10055
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
10051
10056
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
10052
10057
 
@@ -10314,9 +10319,9 @@ class binance(Exchange, ImplicitAPI):
10314
10319
  fetch all open positions
10315
10320
 
10316
10321
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10317
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10322
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10318
10323
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10319
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10324
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10320
10325
  https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10321
10326
 
10322
10327
  :param str[] [symbols]: list of unified market symbols
@@ -10349,9 +10354,9 @@ class binance(Exchange, ImplicitAPI):
10349
10354
  fetch account positions
10350
10355
 
10351
10356
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10352
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10357
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10353
10358
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10354
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10359
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10355
10360
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
10356
10361
 
10357
10362
  :param str[] [symbols]: list of unified market symbols
@@ -10470,7 +10475,7 @@ class binance(Exchange, ImplicitAPI):
10470
10475
  fetch positions risk
10471
10476
 
10472
10477
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10473
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10478
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10474
10479
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
10475
10480
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
10476
10481
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
@@ -10636,7 +10641,7 @@ class binance(Exchange, ImplicitAPI):
10636
10641
  fetch the history of funding payments paid and received on self account
10637
10642
 
10638
10643
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10639
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10644
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
10640
10645
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10641
10646
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10642
10647
 
@@ -10691,7 +10696,7 @@ class binance(Exchange, ImplicitAPI):
10691
10696
  set the level of leverage for a market
10692
10697
 
10693
10698
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
10694
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
10699
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage
10695
10700
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
10696
10701
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
10697
10702
 
@@ -10735,7 +10740,7 @@ class binance(Exchange, ImplicitAPI):
10735
10740
  set margin mode to 'cross' or 'isolated'
10736
10741
 
10737
10742
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
10738
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
10743
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
10739
10744
 
10740
10745
  :param str marginMode: 'cross' or 'isolated'
10741
10746
  :param str symbol: unified market symbol
@@ -10791,7 +10796,7 @@ class binance(Exchange, ImplicitAPI):
10791
10796
  set hedged to True or False for a market
10792
10797
 
10793
10798
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
10794
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
10799
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode
10795
10800
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
10796
10801
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
10797
10802
 
@@ -10843,7 +10848,7 @@ class binance(Exchange, ImplicitAPI):
10843
10848
  fetch the set leverage for all markets
10844
10849
 
10845
10850
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10846
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10851
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10847
10852
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
10848
10853
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
10849
10854
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
@@ -11123,7 +11128,7 @@ class binance(Exchange, ImplicitAPI):
11123
11128
 
11124
11129
  https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
11125
11130
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11126
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11131
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11127
11132
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11128
11133
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11129
11134
 
@@ -11588,7 +11593,7 @@ class binance(Exchange, ImplicitAPI):
11588
11593
  remove margin from a position
11589
11594
 
11590
11595
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11591
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11596
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11592
11597
 
11593
11598
  :param str symbol: unified market symbol
11594
11599
  :param float amount: the amount of margin to remove
@@ -11602,7 +11607,7 @@ class binance(Exchange, ImplicitAPI):
11602
11607
  add margin
11603
11608
 
11604
11609
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11605
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11610
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11606
11611
 
11607
11612
  :param str symbol: unified market symbol
11608
11613
  :param float amount: amount of margin to add
@@ -12174,7 +12179,7 @@ class binance(Exchange, ImplicitAPI):
12174
12179
  Retrieves the open interest history of a currency
12175
12180
 
12176
12181
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
12177
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
12182
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics
12178
12183
 
12179
12184
  :param str symbol: Unified CCXT market symbol
12180
12185
  :param str timeframe: "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
@@ -12237,7 +12242,7 @@ class binance(Exchange, ImplicitAPI):
12237
12242
  retrieves the open interest of a contract trading pair
12238
12243
 
12239
12244
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
12240
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
12245
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest
12241
12246
  https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
12242
12247
 
12243
12248
  :param str symbol: unified CCXT market symbol
@@ -12326,7 +12331,7 @@ class binance(Exchange, ImplicitAPI):
12326
12331
 
12327
12332
  https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
12328
12333
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
12329
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
12334
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
12330
12335
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
12331
12336
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
12332
12337
 
@@ -12642,7 +12647,7 @@ class binance(Exchange, ImplicitAPI):
12642
12647
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
12643
12648
 
12644
12649
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
12645
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
12650
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode
12646
12651
 
12647
12652
  :param str symbol: unified symbol of the market to fetch the order book for
12648
12653
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12676,7 +12681,7 @@ class binance(Exchange, ImplicitAPI):
12676
12681
  """
12677
12682
  fetches margin modes("isolated" or "cross") that the market for the symbol in in, with symbol=None all markets for a subType(linear/inverse) are returned
12678
12683
 
12679
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12684
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
12680
12685
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
12681
12686
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12682
12687
 
@@ -12768,7 +12773,7 @@ class binance(Exchange, ImplicitAPI):
12768
12773
  fetches the margin mode of a specific symbol
12769
12774
 
12770
12775
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12771
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12776
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
12772
12777
 
12773
12778
  :param str symbol: unified symbol of the market the order was made in
12774
12779
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12912,7 +12917,7 @@ class binance(Exchange, ImplicitAPI):
12912
12917
  fetches the history of margin added or reduced from contract isolated positions
12913
12918
 
12914
12919
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12915
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
12920
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12916
12921
 
12917
12922
  :param str symbol: unified market symbol
12918
12923
  :param str [type]: "add" or "reduce"
@@ -13355,8 +13360,8 @@ class binance(Exchange, ImplicitAPI):
13355
13360
  """
13356
13361
  fetch the funding rate interval for multiple markets
13357
13362
 
13358
- https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
13359
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
13363
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-Info
13364
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info
13360
13365
 
13361
13366
  :param str[] [symbols]: list of unified market symbols
13362
13367
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -13396,7 +13401,7 @@ class binance(Exchange, ImplicitAPI):
13396
13401
  fetches the long short ratio history for a unified market symbol
13397
13402
 
13398
13403
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
13399
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
13404
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio
13400
13405
 
13401
13406
  :param str symbol: unified symbol of the market to fetch the long short ratio for
13402
13407
  :param str [timeframe]: the period for the ratio, default is 24 hours