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
ccxt/binance.py CHANGED
@@ -2944,9 +2944,9 @@ class binance(Exchange, ImplicitAPI):
2944
2944
  """
2945
2945
  fetches the current integer timestamp in milliseconds from the exchange server
2946
2946
 
2947
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time # spot
2947
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time # spot
2948
2948
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time # swap
2949
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time # future
2949
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time # future
2950
2950
 
2951
2951
  :param dict [params]: extra parameters specific to the exchange API endpoint
2952
2952
  :param str [params.subType]: "linear" or "inverse"
@@ -3194,12 +3194,12 @@ class binance(Exchange, ImplicitAPI):
3194
3194
  """
3195
3195
  retrieves data on all markets for binance
3196
3196
 
3197
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information # spot
3197
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information # spot
3198
3198
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information # swap
3199
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information # future
3199
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information # future
3200
3200
  https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information # option
3201
- https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
3202
- https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
3201
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
3202
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
3203
3203
 
3204
3204
  :param dict [params]: extra parameters specific to the exchange API endpoint
3205
3205
  :returns dict[]: an array of objects representing market data
@@ -3753,12 +3753,12 @@ class binance(Exchange, ImplicitAPI):
3753
3753
  """
3754
3754
  query for balance and get the amount of funds available for trading or funds locked in orders
3755
3755
 
3756
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data # spot
3756
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data # spot
3757
3757
  https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details # cross margin
3758
3758
  https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info # isolated margin
3759
3759
  https://developers.binance.com/docs/wallet/asset/funding-wallet # funding
3760
3760
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 # swap
3761
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance # future
3761
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance # future
3762
3762
  https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information # option
3763
3763
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance # portfolio margin
3764
3764
 
@@ -4011,9 +4011,9 @@ class binance(Exchange, ImplicitAPI):
4011
4011
  """
4012
4012
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
4013
4013
 
4014
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book # spot
4014
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book # spot
4015
4015
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book # swap
4016
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book # future
4016
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book # future
4017
4017
  https://developers.binance.com/docs/derivatives/option/market-data/Order-Book # option
4018
4018
 
4019
4019
  :param str symbol: unified symbol of the market to fetch the order book for
@@ -4085,7 +4085,7 @@ class binance(Exchange, ImplicitAPI):
4085
4085
  # "symbol": "BTCUSDT",
4086
4086
  # "markPrice": "11793.63104562", # mark price
4087
4087
  # "indexPrice": "11781.80495970", # index price
4088
- # "estimatedSettlePrice": "11781.16138815", # Estimated Settle Price, only useful in the last hour before the settlement starts.
4088
+ # "estimatedSettlePrice": "11781.16138815", # Estimated Settle Price, only useful in the last hour before the settlement starts
4089
4089
  # "lastFundingRate": "0.00038246", # This is the lastest estimated funding rate
4090
4090
  # "nextFundingTime": 1597392000000,
4091
4091
  # "interestRate": "0.00010000",
@@ -4268,10 +4268,10 @@ class binance(Exchange, ImplicitAPI):
4268
4268
  """
4269
4269
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
4270
4270
 
4271
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4272
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics # spot
4271
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics # spot
4272
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics # spot
4273
4273
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4274
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4274
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # future
4275
4275
  https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4276
4276
 
4277
4277
  :param str symbol: unified symbol of the market to fetch the ticker for
@@ -4307,9 +4307,9 @@ class binance(Exchange, ImplicitAPI):
4307
4307
  """
4308
4308
  fetches the bid and ask price and volume for multiple markets
4309
4309
 
4310
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker # spot
4310
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker # spot
4311
4311
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # swap
4312
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker # future
4312
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # future
4313
4313
 
4314
4314
  :param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4315
4315
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4341,9 +4341,9 @@ class binance(Exchange, ImplicitAPI):
4341
4341
  """
4342
4342
  fetches the last price for multiple markets
4343
4343
 
4344
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker # spot
4344
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker # spot
4345
4345
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker # swap
4346
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker # future
4346
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker # future
4347
4347
 
4348
4348
  :param str[]|None symbols: unified symbols of the markets to fetch the last prices
4349
4349
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4441,9 +4441,9 @@ class binance(Exchange, ImplicitAPI):
4441
4441
  """
4442
4442
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
4443
4443
 
4444
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4444
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics # spot
4445
4445
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4446
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4446
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # future
4447
4447
  https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4448
4448
 
4449
4449
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
@@ -4479,8 +4479,8 @@ class binance(Exchange, ImplicitAPI):
4479
4479
  """
4480
4480
  fetches mark price for the market
4481
4481
 
4482
- https://binance-docs.github.io/apidocs/futures/en/#mark-price
4483
- https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4482
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4483
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4484
4484
 
4485
4485
  :param str symbol: unified symbol of the market to fetch the ticker for
4486
4486
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4511,8 +4511,8 @@ class binance(Exchange, ImplicitAPI):
4511
4511
  """
4512
4512
  fetches mark prices for multiple markets
4513
4513
 
4514
- https://binance-docs.github.io/apidocs/futures/en/#mark-price
4515
- https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4514
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
4515
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
4516
4516
 
4517
4517
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4518
4518
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4602,16 +4602,16 @@ class binance(Exchange, ImplicitAPI):
4602
4602
  """
4603
4603
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4604
4604
 
4605
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4605
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
4606
4606
  https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4607
4607
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4608
4608
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4609
4609
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4610
4610
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4611
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4612
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4613
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4614
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4611
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4612
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4613
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4614
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4615
4615
 
4616
4616
  :param str symbol: unified symbol of the market to fetch OHLCV data for
4617
4617
  :param str timeframe: the length of time each candle represents
@@ -4979,19 +4979,19 @@ class binance(Exchange, ImplicitAPI):
4979
4979
  get the list of most recent trades for a particular symbol
4980
4980
  Default fetchTradesMethod
4981
4981
 
4982
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list # publicGetAggTrades(spot)
4982
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list # publicGetAggTrades(spot)
4983
4983
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # fapiPublicGetAggTrades(swap)
4984
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4984
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4985
4985
  https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List # eapiPublicGetTrades(option)
4986
4986
 
4987
4987
  Other fetchTradesMethod
4988
4988
 
4989
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list # publicGetTrades(spot)
4989
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list # publicGetTrades(spot)
4990
4990
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List # fapiPublicGetTrades(swap)
4991
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List # dapiPublicGetTrades(future)
4992
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup # publicGetHistoricalTrades(spot)
4991
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List # dapiPublicGetTrades(future)
4992
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup # publicGetHistoricalTrades(spot)
4993
4993
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup # fapiPublicGetHistoricalTrades(swap)
4994
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4994
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4995
4995
  https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup # eapiPublicGetHistoricalTrades(option)
4996
4996
 
4997
4997
  :param str symbol: unified symbol of the market to fetch trades for
@@ -5118,7 +5118,7 @@ class binance(Exchange, ImplicitAPI):
5118
5118
  @ignore
5119
5119
  edit a trade order
5120
5120
 
5121
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5121
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5122
5122
 
5123
5123
  :param str id: cancel order id
5124
5124
  :param str symbol: unified symbol of the market to create an order in
@@ -5306,7 +5306,7 @@ class binance(Exchange, ImplicitAPI):
5306
5306
  edit a trade order
5307
5307
 
5308
5308
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5309
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5309
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5310
5310
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order
5311
5311
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order
5312
5312
 
@@ -5372,9 +5372,9 @@ class binance(Exchange, ImplicitAPI):
5372
5372
  """
5373
5373
  edit a trade order
5374
5374
 
5375
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5375
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
5376
5376
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5377
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5377
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
5378
5378
 
5379
5379
  :param str id: cancel order id
5380
5380
  :param str symbol: unified symbol of the market to create an order in
@@ -5399,7 +5399,7 @@ class binance(Exchange, ImplicitAPI):
5399
5399
  edit a list of trade orders
5400
5400
 
5401
5401
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders
5402
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Multiple-Orders
5402
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
5403
5403
 
5404
5404
  :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
5405
5405
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6049,7 +6049,7 @@ class binance(Exchange, ImplicitAPI):
6049
6049
  """
6050
6050
  *contract only* create a list of trade orders
6051
6051
 
6052
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
6052
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders
6053
6053
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
6054
6054
  https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
6055
6055
 
@@ -6127,12 +6127,12 @@ class binance(Exchange, ImplicitAPI):
6127
6127
  create a trade order
6128
6128
 
6129
6129
  https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6130
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
6130
+ https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade
6131
6131
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
6132
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
6132
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
6133
6133
  https://developers.binance.com/docs/derivatives/option/trade/New-Order
6134
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
6135
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
6134
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#sor
6135
+ https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor
6136
6136
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
6137
6137
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
6138
6138
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
@@ -6479,7 +6479,7 @@ class binance(Exchange, ImplicitAPI):
6479
6479
  """
6480
6480
  create a market order by providing the symbol, side and cost
6481
6481
 
6482
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6482
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6483
6483
 
6484
6484
  :param str symbol: unified symbol of the market to create an order in
6485
6485
  :param str side: 'buy' or 'sell'
@@ -6491,14 +6491,16 @@ class binance(Exchange, ImplicitAPI):
6491
6491
  market = self.market(symbol)
6492
6492
  if not market['spot']:
6493
6493
  raise NotSupported(self.id + ' createMarketOrderWithCost() supports spot orders only')
6494
- params['cost'] = cost
6495
- return self.create_order(symbol, 'market', side, cost, None, params)
6494
+ req = {
6495
+ 'cost': cost,
6496
+ }
6497
+ return self.create_order(symbol, 'market', side, cost, None, self.extend(req, params))
6496
6498
 
6497
6499
  def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
6498
6500
  """
6499
6501
  create a market buy order by providing the symbol and cost
6500
6502
 
6501
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6503
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6502
6504
 
6503
6505
  :param str symbol: unified symbol of the market to create an order in
6504
6506
  :param float cost: how much you want to trade in units of the quote currency
@@ -6509,14 +6511,16 @@ class binance(Exchange, ImplicitAPI):
6509
6511
  market = self.market(symbol)
6510
6512
  if not market['spot']:
6511
6513
  raise NotSupported(self.id + ' createMarketBuyOrderWithCost() supports spot orders only')
6512
- params['cost'] = cost
6513
- return self.create_order(symbol, 'market', 'buy', cost, None, params)
6514
+ req = {
6515
+ 'cost': cost,
6516
+ }
6517
+ return self.create_order(symbol, 'market', 'buy', cost, None, self.extend(req, params))
6514
6518
 
6515
6519
  def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
6516
6520
  """
6517
6521
  create a market sell order by providing the symbol and cost
6518
6522
 
6519
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6523
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
6520
6524
 
6521
6525
  :param str symbol: unified symbol of the market to create an order in
6522
6526
  :param float cost: how much you want to trade in units of the quote currency
@@ -6534,9 +6538,9 @@ class binance(Exchange, ImplicitAPI):
6534
6538
  """
6535
6539
  fetches information on an order made by the user
6536
6540
 
6537
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6541
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
6538
6542
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6539
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6543
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
6540
6544
  https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6541
6545
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6542
6546
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
@@ -6599,9 +6603,9 @@ class binance(Exchange, ImplicitAPI):
6599
6603
  """
6600
6604
  fetches information on multiple orders made by the user
6601
6605
 
6602
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6606
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
6603
6607
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6604
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6608
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
6605
6609
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6606
6610
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6607
6611
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -6858,9 +6862,9 @@ class binance(Exchange, ImplicitAPI):
6858
6862
  """
6859
6863
  fetch all unfilled currently open orders
6860
6864
 
6861
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
6865
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
6862
6866
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
6863
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
6867
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
6864
6868
  https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
6865
6869
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
6866
6870
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
@@ -6942,7 +6946,7 @@ class binance(Exchange, ImplicitAPI):
6942
6946
  fetch an open order by the id
6943
6947
 
6944
6948
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
6945
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
6949
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order
6946
6950
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
6947
6951
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
6948
6952
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
@@ -7145,9 +7149,9 @@ class binance(Exchange, ImplicitAPI):
7145
7149
  """
7146
7150
  fetches information on multiple closed orders made by the user
7147
7151
 
7148
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7152
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7149
7153
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7150
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7154
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7151
7155
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7152
7156
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7153
7157
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7174,9 +7178,9 @@ class binance(Exchange, ImplicitAPI):
7174
7178
  """
7175
7179
  fetches information on multiple canceled orders made by the user
7176
7180
 
7177
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7181
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7178
7182
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7179
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7183
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7180
7184
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7181
7185
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7182
7186
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7203,9 +7207,9 @@ class binance(Exchange, ImplicitAPI):
7203
7207
  """
7204
7208
  fetches information on multiple canceled orders made by the user
7205
7209
 
7206
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
7210
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
7207
7211
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
7208
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
7212
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
7209
7213
  https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
7210
7214
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
7211
7215
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
@@ -7235,9 +7239,9 @@ class binance(Exchange, ImplicitAPI):
7235
7239
  """
7236
7240
  cancels an open order
7237
7241
 
7238
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
7242
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
7239
7243
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
7240
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
7244
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
7241
7245
  https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
7242
7246
  https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
7243
7247
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
@@ -7316,8 +7320,9 @@ class binance(Exchange, ImplicitAPI):
7316
7320
  """
7317
7321
  cancel all open orders in a market
7318
7322
 
7319
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
7323
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
7320
7324
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7325
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
7321
7326
  https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
7322
7327
  https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
7323
7328
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
@@ -7474,7 +7479,7 @@ class binance(Exchange, ImplicitAPI):
7474
7479
  cancel multiple orders
7475
7480
 
7476
7481
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7477
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7482
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7478
7483
 
7479
7484
  :param str[] ids: order ids
7480
7485
  :param str [symbol]: unified market symbol
@@ -7541,9 +7546,9 @@ class binance(Exchange, ImplicitAPI):
7541
7546
  """
7542
7547
  fetch all the trades made from a single order
7543
7548
 
7544
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7549
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
7545
7550
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7546
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7551
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
7547
7552
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7548
7553
 
7549
7554
  :param str id: order id
@@ -7570,9 +7575,9 @@ class binance(Exchange, ImplicitAPI):
7570
7575
  """
7571
7576
  fetch all trades made by the user
7572
7577
 
7573
- https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7578
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
7574
7579
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7575
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7580
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
7576
7581
  https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7577
7582
  https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
7578
7583
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
@@ -9048,7 +9053,7 @@ class binance(Exchange, ImplicitAPI):
9048
9053
 
9049
9054
  https://developers.binance.com/docs/wallet/asset/trade-fee
9050
9055
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
9051
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
9056
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate
9052
9057
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
9053
9058
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
9054
9059
 
@@ -9113,7 +9118,7 @@ class binance(Exchange, ImplicitAPI):
9113
9118
 
9114
9119
  https://developers.binance.com/docs/wallet/asset/trade-fee
9115
9120
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9116
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9121
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
9117
9122
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
9118
9123
 
9119
9124
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9312,7 +9317,7 @@ class binance(Exchange, ImplicitAPI):
9312
9317
  fetch the current funding rate
9313
9318
 
9314
9319
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9315
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9320
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9316
9321
 
9317
9322
  :param str symbol: unified market symbol
9318
9323
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9351,7 +9356,7 @@ class binance(Exchange, ImplicitAPI):
9351
9356
  fetches historical funding rate prices
9352
9357
 
9353
9358
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
9354
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
9359
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
9355
9360
 
9356
9361
  :param str symbol: unified symbol of the market to fetch the funding rate history for
9357
9362
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
@@ -9425,7 +9430,7 @@ class binance(Exchange, ImplicitAPI):
9425
9430
  fetch the funding rate for multiple markets
9426
9431
 
9427
9432
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9428
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9433
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9429
9434
 
9430
9435
  :param str[]|None symbols: list of unified market symbols
9431
9436
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10045,7 +10050,7 @@ class binance(Exchange, ImplicitAPI):
10045
10050
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
10046
10051
 
10047
10052
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
10048
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
10053
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair
10049
10054
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
10050
10055
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
10051
10056
 
@@ -10313,9 +10318,9 @@ class binance(Exchange, ImplicitAPI):
10313
10318
  fetch all open positions
10314
10319
 
10315
10320
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10316
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10321
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10317
10322
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10318
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10323
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10319
10324
  https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10320
10325
 
10321
10326
  :param str[] [symbols]: list of unified market symbols
@@ -10348,9 +10353,9 @@ class binance(Exchange, ImplicitAPI):
10348
10353
  fetch account positions
10349
10354
 
10350
10355
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10351
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10356
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10352
10357
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10353
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10358
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10354
10359
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
10355
10360
 
10356
10361
  :param str[] [symbols]: list of unified market symbols
@@ -10469,7 +10474,7 @@ class binance(Exchange, ImplicitAPI):
10469
10474
  fetch positions risk
10470
10475
 
10471
10476
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10472
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10477
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
10473
10478
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
10474
10479
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
10475
10480
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
@@ -10635,7 +10640,7 @@ class binance(Exchange, ImplicitAPI):
10635
10640
  fetch the history of funding payments paid and received on self account
10636
10641
 
10637
10642
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10638
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10643
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
10639
10644
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10640
10645
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10641
10646
 
@@ -10690,7 +10695,7 @@ class binance(Exchange, ImplicitAPI):
10690
10695
  set the level of leverage for a market
10691
10696
 
10692
10697
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
10693
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
10698
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage
10694
10699
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
10695
10700
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
10696
10701
 
@@ -10734,7 +10739,7 @@ class binance(Exchange, ImplicitAPI):
10734
10739
  set margin mode to 'cross' or 'isolated'
10735
10740
 
10736
10741
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
10737
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
10742
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
10738
10743
 
10739
10744
  :param str marginMode: 'cross' or 'isolated'
10740
10745
  :param str symbol: unified market symbol
@@ -10790,7 +10795,7 @@ class binance(Exchange, ImplicitAPI):
10790
10795
  set hedged to True or False for a market
10791
10796
 
10792
10797
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
10793
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
10798
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode
10794
10799
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
10795
10800
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
10796
10801
 
@@ -10842,7 +10847,7 @@ class binance(Exchange, ImplicitAPI):
10842
10847
  fetch the set leverage for all markets
10843
10848
 
10844
10849
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10845
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10850
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
10846
10851
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
10847
10852
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
10848
10853
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
@@ -11122,7 +11127,7 @@ class binance(Exchange, ImplicitAPI):
11122
11127
 
11123
11128
  https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
11124
11129
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
11125
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
11130
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
11126
11131
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
11127
11132
  https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
11128
11133
 
@@ -11587,7 +11592,7 @@ class binance(Exchange, ImplicitAPI):
11587
11592
  remove margin from a position
11588
11593
 
11589
11594
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11590
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11595
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11591
11596
 
11592
11597
  :param str symbol: unified market symbol
11593
11598
  :param float amount: the amount of margin to remove
@@ -11601,7 +11606,7 @@ class binance(Exchange, ImplicitAPI):
11601
11606
  add margin
11602
11607
 
11603
11608
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11604
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11609
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11605
11610
 
11606
11611
  :param str symbol: unified market symbol
11607
11612
  :param float amount: amount of margin to add
@@ -12173,7 +12178,7 @@ class binance(Exchange, ImplicitAPI):
12173
12178
  Retrieves the open interest history of a currency
12174
12179
 
12175
12180
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
12176
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
12181
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics
12177
12182
 
12178
12183
  :param str symbol: Unified CCXT market symbol
12179
12184
  :param str timeframe: "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
@@ -12236,7 +12241,7 @@ class binance(Exchange, ImplicitAPI):
12236
12241
  retrieves the open interest of a contract trading pair
12237
12242
 
12238
12243
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
12239
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
12244
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest
12240
12245
  https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
12241
12246
 
12242
12247
  :param str symbol: unified CCXT market symbol
@@ -12325,7 +12330,7 @@ class binance(Exchange, ImplicitAPI):
12325
12330
 
12326
12331
  https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
12327
12332
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
12328
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
12333
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
12329
12334
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
12330
12335
  https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
12331
12336
 
@@ -12641,7 +12646,7 @@ class binance(Exchange, ImplicitAPI):
12641
12646
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
12642
12647
 
12643
12648
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
12644
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
12649
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode
12645
12650
 
12646
12651
  :param str symbol: unified symbol of the market to fetch the order book for
12647
12652
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12675,7 +12680,7 @@ class binance(Exchange, ImplicitAPI):
12675
12680
  """
12676
12681
  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
12677
12682
 
12678
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12683
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
12679
12684
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
12680
12685
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12681
12686
 
@@ -12767,7 +12772,7 @@ class binance(Exchange, ImplicitAPI):
12767
12772
  fetches the margin mode of a specific symbol
12768
12773
 
12769
12774
  https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12770
- https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12775
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
12771
12776
 
12772
12777
  :param str symbol: unified symbol of the market the order was made in
12773
12778
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12911,7 +12916,7 @@ class binance(Exchange, ImplicitAPI):
12911
12916
  fetches the history of margin added or reduced from contract isolated positions
12912
12917
 
12913
12918
  https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12914
- https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
12919
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12915
12920
 
12916
12921
  :param str symbol: unified market symbol
12917
12922
  :param str [type]: "add" or "reduce"
@@ -13354,8 +13359,8 @@ class binance(Exchange, ImplicitAPI):
13354
13359
  """
13355
13360
  fetch the funding rate interval for multiple markets
13356
13361
 
13357
- https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
13358
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
13362
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-Info
13363
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info
13359
13364
 
13360
13365
  :param str[] [symbols]: list of unified market symbols
13361
13366
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -13395,7 +13400,7 @@ class binance(Exchange, ImplicitAPI):
13395
13400
  fetches the long short ratio history for a unified market symbol
13396
13401
 
13397
13402
  https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
13398
- https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
13403
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio
13399
13404
 
13400
13405
  :param str symbol: unified symbol of the market to fetch the long short ratio for
13401
13406
  :param str [timeframe]: the period for the ratio, default is 24 hours