ccxt 4.3.49__py2.py3-none-any.whl → 4.3.51__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.
@@ -246,7 +246,7 @@ class binance(Exchange, ImplicitAPI):
246
246
  'discount': 0.1,
247
247
  },
248
248
  'doc': [
249
- 'https://binance-docs.github.io/apidocs/spot/en',
249
+ 'https://developers.binance.com/en',
250
250
  ],
251
251
  'api_management': 'https://www.binance.com/en/usercenter/settings/api-management',
252
252
  'fees': 'https://www.binance.com/en/fee/schedule',
@@ -344,7 +344,6 @@ class binance(Exchange, ImplicitAPI):
344
344
  'futures/transfer': 1,
345
345
  'futures/histDataLink': 0.1, # Weight(IP): 1 => cost = 0.1 * 1 = 0.1
346
346
  'rebate/taxQuery': 80.004, # Weight(UID): 12000 => cost = 0.006667 * 12000 = 80.004
347
- # https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
348
347
  'capital/config/getall': 1, # get networks for withdrawing USDT ERC20 vs USDT Omni
349
348
  'capital/deposit/address': 1,
350
349
  'capital/deposit/address/list': 1,
@@ -2594,9 +2593,9 @@ class binance(Exchange, ImplicitAPI):
2594
2593
  async def fetch_time(self, params={}):
2595
2594
  """
2596
2595
  fetches the current integer timestamp in milliseconds from the exchange server
2597
- :see: https://binance-docs.github.io/apidocs/spot/en/#check-server-time # spot
2598
- :see: https://binance-docs.github.io/apidocs/futures/en/#check-server-time # swap
2599
- :see: https://binance-docs.github.io/apidocs/delivery/en/#check-server-time # future
2596
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time # spot
2597
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time # swap
2598
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time # future
2600
2599
  :param dict [params]: extra parameters specific to the exchange API endpoint
2601
2600
  :param str [params.subType]: "linear" or "inverse"
2602
2601
  :returns int: the current integer timestamp in milliseconds from the exchange server
@@ -2618,7 +2617,7 @@ class binance(Exchange, ImplicitAPI):
2618
2617
  async def fetch_currencies(self, params={}) -> Currencies:
2619
2618
  """
2620
2619
  fetches all available currencies on an exchange
2621
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
2620
+ :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
2622
2621
  :param dict [params]: extra parameters specific to the exchange API endpoint
2623
2622
  :returns dict: an associative dictionary of currencies
2624
2623
  """
@@ -2804,10 +2803,10 @@ class binance(Exchange, ImplicitAPI):
2804
2803
  async def fetch_markets(self, params={}) -> List[Market]:
2805
2804
  """
2806
2805
  retrieves data on all markets for binance
2807
- :see: https://binance-docs.github.io/apidocs/spot/en/#exchange-information # spot
2808
- :see: https://binance-docs.github.io/apidocs/futures/en/#exchange-information # swap
2809
- :see: https://binance-docs.github.io/apidocs/delivery/en/#exchange-information # future
2810
- :see: https://binance-docs.github.io/apidocs/voptions/en/#exchange-information # option
2806
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information # spot
2807
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information # swap
2808
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information # future
2809
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information # option
2811
2810
  :param dict [params]: extra parameters specific to the exchange API endpoint
2812
2811
  :returns dict[]: an array of objects representing market data
2813
2812
  """
@@ -3311,21 +3310,20 @@ class binance(Exchange, ImplicitAPI):
3311
3310
  async def fetch_balance(self, params={}) -> Balances:
3312
3311
  """
3313
3312
  query for balance and get the amount of funds available for trading or funds locked in orders
3314
- :see: https://binance-docs.github.io/apidocs/spot/en/#account-information-user_data # spot
3315
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-cross-margin-account-details-user_data # cross margin
3316
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-account-info-user_data # isolated margin
3317
- :see: https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data # lending
3318
- :see: https://binance-docs.github.io/apidocs/spot/en/#funding-wallet-user_data # funding
3319
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data # swap
3320
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data # future
3321
- :see: https://binance-docs.github.io/apidocs/voptions/en/#option-account-information-trade # option
3322
- :see: https://binance-docs.github.io/apidocs/pm/en/#account-balance-user_data # portfolio margin
3313
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data # spot
3314
+ :see: https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details # cross margin
3315
+ :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info # isolated margin
3316
+ :see: https://developers.binance.com/docs/wallet/asset/funding-wallet # funding
3317
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 # swap
3318
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance # future
3319
+ :see: https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information # option
3320
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance # portfolio margin
3323
3321
  :param dict [params]: extra parameters specific to the exchange API endpoint
3324
3322
  :param str [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot' or 'papi'
3325
3323
  :param str [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
3326
3324
  :param str[]|None [params.symbols]: unified market symbols, only used in isolated margin mode
3327
3325
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch the balance for a portfolio margin account
3328
- :param str [params.subType]: "linear" or "inverse"
3326
+ :param str [params.subType]: 'linear' or 'inverse'
3329
3327
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
3330
3328
  """
3331
3329
  await self.load_markets()
@@ -3525,31 +3523,6 @@ class binance(Exchange, ImplicitAPI):
3525
3523
  # }
3526
3524
  # ]
3527
3525
  #
3528
- # savings
3529
- #
3530
- # {
3531
- # "totalAmountInBTC": "0.3172",
3532
- # "totalAmountInUSDT": "10000",
3533
- # "totalFixedAmountInBTC": "0.3172",
3534
- # "totalFixedAmountInUSDT": "10000",
3535
- # "totalFlexibleInBTC": "0",
3536
- # "totalFlexibleInUSDT": "0",
3537
- # "positionAmountVos": [
3538
- # {
3539
- # "asset": "USDT",
3540
- # "amount": "10000",
3541
- # "amountInBTC": "0.3172",
3542
- # "amountInUSDT": "10000"
3543
- # },
3544
- # {
3545
- # "asset": "BUSD",
3546
- # "amount": "0",
3547
- # "amountInBTC": "0",
3548
- # "amountInUSDT": "0"
3549
- # }
3550
- # ]
3551
- # }
3552
- #
3553
3526
  # binance pay
3554
3527
  #
3555
3528
  # [
@@ -3587,10 +3560,10 @@ class binance(Exchange, ImplicitAPI):
3587
3560
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
3588
3561
  """
3589
3562
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
3590
- :see: https://binance-docs.github.io/apidocs/spot/en/#order-book # spot
3591
- :see: https://binance-docs.github.io/apidocs/futures/en/#order-book # swap
3592
- :see: https://binance-docs.github.io/apidocs/delivery/en/#order-book # future
3593
- :see: https://binance-docs.github.io/apidocs/voptions/en/#order-book # option
3563
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book # spot
3564
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book # swap
3565
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book # future
3566
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Order-Book # option
3594
3567
  :param str symbol: unified symbol of the market to fetch the order book for
3595
3568
  :param int [limit]: the maximum amount of order book entries to return
3596
3569
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3801,7 +3774,7 @@ class binance(Exchange, ImplicitAPI):
3801
3774
  async def fetch_status(self, params={}):
3802
3775
  """
3803
3776
  the latest known information on the availability of the exchange API
3804
- :see: https://binance-docs.github.io/apidocs/spot/en/#system-status-system
3777
+ :see: https://developers.binance.com/docs/wallet/others/system-status
3805
3778
  :param dict [params]: extra parameters specific to the exchange API endpoint
3806
3779
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
3807
3780
  """
@@ -3824,11 +3797,11 @@ class binance(Exchange, ImplicitAPI):
3824
3797
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
3825
3798
  """
3826
3799
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
3827
- :see: https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
3828
- :see: https://binance-docs.github.io/apidocs/spot/en/#rolling-window-price-change-statistics # spot
3829
- :see: https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
3830
- :see: https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
3831
- :see: https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
3800
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
3801
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics # spot
3802
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
3803
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
3804
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
3832
3805
  :param str symbol: unified symbol of the market to fetch the ticker for
3833
3806
  :param dict [params]: extra parameters specific to the exchange API endpoint
3834
3807
  :param boolean [params.rolling]:(spot only) default False, if True, uses the rolling 24 hour ticker endpoint /api/v3/ticker
@@ -3861,9 +3834,9 @@ class binance(Exchange, ImplicitAPI):
3861
3834
  async def fetch_bids_asks(self, symbols: Strings = None, params={}):
3862
3835
  """
3863
3836
  fetches the bid and ask price and volume for multiple markets
3864
- :see: https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker # spot
3865
- :see: https://binance-docs.github.io/apidocs/futures/en/#symbol-order-book-ticker # swap
3866
- :see: https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker # future
3837
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker # spot
3838
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # swap
3839
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker # future
3867
3840
  :param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
3868
3841
  :param dict [params]: extra parameters specific to the exchange API endpoint
3869
3842
  :param str [params.subType]: "linear" or "inverse"
@@ -3893,9 +3866,9 @@ class binance(Exchange, ImplicitAPI):
3893
3866
  async def fetch_last_prices(self, symbols: Strings = None, params={}):
3894
3867
  """
3895
3868
  fetches the last price for multiple markets
3896
- :see: https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker # spot
3897
- :see: https://binance-docs.github.io/apidocs/futures/en/#symbol-price-ticker # swap
3898
- :see: https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-tickers # future
3869
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker # spot
3870
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker # swap
3871
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker # future
3899
3872
  :param str[]|None symbols: unified symbols of the markets to fetch the last prices
3900
3873
  :param dict [params]: extra parameters specific to the exchange API endpoint
3901
3874
  :param str [params.subType]: "linear" or "inverse"
@@ -3992,10 +3965,10 @@ class binance(Exchange, ImplicitAPI):
3992
3965
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
3993
3966
  """
3994
3967
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
3995
- :see: https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
3996
- :see: https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
3997
- :see: https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
3998
- :see: https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
3968
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
3969
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
3970
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
3971
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
3999
3972
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4000
3973
  :param dict [params]: extra parameters specific to the exchange API endpoint
4001
3974
  :param str [params.subType]: "linear" or "inverse"
@@ -4091,14 +4064,16 @@ class binance(Exchange, ImplicitAPI):
4091
4064
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
4092
4065
  """
4093
4066
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4094
- :see: https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
4095
- :see: https://binance-docs.github.io/apidocs/voptions/en/#kline-candlestick-data
4096
- :see: https://binance-docs.github.io/apidocs/futures/en/#index-price-kline-candlestick-data
4097
- :see: https://binance-docs.github.io/apidocs/futures/en/#mark-price-kline-candlestick-data
4098
- :see: https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
4099
- :see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-kline-candlestick-data
4100
- :see: https://binance-docs.github.io/apidocs/delivery/en/#mark-price-kline-candlestick-data
4101
- :see: https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
4067
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4068
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4069
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4070
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4071
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4072
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4073
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4074
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4075
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4076
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4102
4077
  :param str symbol: unified symbol of the market to fetch OHLCV data for
4103
4078
  :param str timeframe: the length of time each candle represents
4104
4079
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -4106,7 +4081,7 @@ class binance(Exchange, ImplicitAPI):
4106
4081
  :param dict [params]: extra parameters specific to the exchange API endpoint
4107
4082
  :param str [params.price]: "mark" or "index" for mark price and index price candles
4108
4083
  :param int [params.until]: timestamp in ms of the latest candle to fetch
4109
- :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4084
+ :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4110
4085
  :returns int[][]: A list of candles ordered, open, high, low, close, volume
4111
4086
  """
4112
4087
  await self.load_markets()
@@ -4262,7 +4237,6 @@ class binance(Exchange, ImplicitAPI):
4262
4237
  # }
4263
4238
  #
4264
4239
  # futures trades
4265
- # https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
4266
4240
  #
4267
4241
  # {
4268
4242
  # "accountId": 20,
@@ -4462,18 +4436,18 @@ class binance(Exchange, ImplicitAPI):
4462
4436
  """
4463
4437
  get the list of most recent trades for a particular symbol
4464
4438
  * Default fetchTradesMethod
4465
- :see: https://binance-docs.github.io/apidocs/spot/en/#compressed-aggregate-trades-list # publicGetAggTrades(spot)
4466
- :see: https://binance-docs.github.io/apidocs/futures/en/#compressed-aggregate-trades-list # fapiPublicGetAggTrades(swap)
4467
- :see: https://binance-docs.github.io/apidocs/delivery/en/#compressed-aggregate-trades-list # dapiPublicGetAggTrades(future)
4468
- :see: https://binance-docs.github.io/apidocs/voptions/en/#recent-trades-list # eapiPublicGetTrades(option)
4439
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list # publicGetAggTrades(spot)
4440
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # fapiPublicGetAggTrades(swap)
4441
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4442
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List # eapiPublicGetTrades(option)
4469
4443
  * Other fetchTradesMethod
4470
- :see: https://binance-docs.github.io/apidocs/spot/en/#recent-trades-list # publicGetTrades(spot)
4471
- :see: https://binance-docs.github.io/apidocs/futures/en/#recent-trades-list # fapiPublicGetTrades(swap)
4472
- :see: https://binance-docs.github.io/apidocs/delivery/en/#recent-trades-list # dapiPublicGetTrades(future)
4473
- :see: https://binance-docs.github.io/apidocs/spot/en/#old-trade-lookup-market_data # publicGetHistoricalTrades(spot)
4474
- :see: https://binance-docs.github.io/apidocs/future/en/#old-trade-lookup-market_data # fapiPublicGetHistoricalTrades(swap)
4475
- :see: https://binance-docs.github.io/apidocs/delivery/en/#old-trade-lookup-market_data # dapiPublicGetHistoricalTrades(future)
4476
- :see: https://binance-docs.github.io/apidocs/voptions/en/#old-trade-lookup-market_data # eapiPublicGetHistoricalTrades(option)
4444
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list # publicGetTrades(spot)
4445
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List # fapiPublicGetTrades(swap)
4446
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List # dapiPublicGetTrades(future)
4447
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup # publicGetHistoricalTrades(spot)
4448
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup # fapiPublicGetHistoricalTrades(swap)
4449
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4450
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup # eapiPublicGetHistoricalTrades(option)
4477
4451
  :param str symbol: unified symbol of the market to fetch trades for
4478
4452
  :param int [since]: only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
4479
4453
  :param int [limit]: default 500, max 1000
@@ -4595,7 +4569,7 @@ class binance(Exchange, ImplicitAPI):
4595
4569
  """
4596
4570
  * @ignore
4597
4571
  edit a trade order
4598
- :see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
4572
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
4599
4573
  :param str id: cancel order id
4600
4574
  :param str symbol: unified symbol of the market to create an order in
4601
4575
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
@@ -4780,8 +4754,8 @@ class binance(Exchange, ImplicitAPI):
4780
4754
  async def edit_contract_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
4781
4755
  """
4782
4756
  edit a trade order
4783
- :see: https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
4784
- :see: https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
4757
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
4758
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
4785
4759
  :param str id: cancel order id
4786
4760
  :param str symbol: unified symbol of the market to create an order in
4787
4761
  :param str type: 'market' or 'limit'
@@ -4831,9 +4805,9 @@ class binance(Exchange, ImplicitAPI):
4831
4805
  async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
4832
4806
  """
4833
4807
  edit a trade order
4834
- :see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
4835
- :see: https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
4836
- :see: https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
4808
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
4809
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
4810
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
4837
4811
  :param str id: cancel order id
4838
4812
  :param str symbol: unified symbol of the market to create an order in
4839
4813
  :param str type: 'market' or 'limit'
@@ -5427,7 +5401,9 @@ class binance(Exchange, ImplicitAPI):
5427
5401
  async def create_orders(self, orders: List[OrderRequest], params={}):
5428
5402
  """
5429
5403
  *contract only* create a list of trade orders
5430
- :see: https://binance-docs.github.io/apidocs/futures/en/#place-multiple-orders-trade
5404
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
5405
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
5406
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
5431
5407
  :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
5432
5408
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
5433
5409
  """
@@ -5499,18 +5475,18 @@ class binance(Exchange, ImplicitAPI):
5499
5475
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
5500
5476
  """
5501
5477
  create a trade order
5502
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
5503
- :see: https://binance-docs.github.io/apidocs/spot/en/#test-new-order-trade
5504
- :see: https://binance-docs.github.io/apidocs/futures/en/#new-order-trade
5505
- :see: https://binance-docs.github.io/apidocs/delivery/en/#new-order-trade
5506
- :see: https://binance-docs.github.io/apidocs/voptions/en/#new-order-trade
5507
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-using-sor-trade
5508
- :see: https://binance-docs.github.io/apidocs/spot/en/#test-new-order-using-sor-trade
5509
- :see: https://binance-docs.github.io/apidocs/pm/en/#new-um-order-trade
5510
- :see: https://binance-docs.github.io/apidocs/pm/en/#new-cm-order-trade
5511
- :see: https://binance-docs.github.io/apidocs/pm/en/#new-margin-order-trade
5512
- :see: https://binance-docs.github.io/apidocs/pm/en/#new-um-conditional-order-trade
5513
- :see: https://binance-docs.github.io/apidocs/pm/en/#new-cm-conditional-order-trade
5478
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5479
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-trade
5480
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
5481
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
5482
+ :see: https://developers.binance.com/docs/derivatives/option/trade/New-Order
5483
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
5484
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
5485
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
5486
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
5487
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
5488
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order
5489
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order
5514
5490
  :param str symbol: unified symbol of the market to create an order in
5515
5491
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
5516
5492
  :param str side: 'buy' or 'sell'
@@ -5704,7 +5680,7 @@ class binance(Exchange, ImplicitAPI):
5704
5680
  postOnly = self.is_post_only(isMarketOrder, initialUppercaseType == 'LIMIT_MAKER', params)
5705
5681
  if postOnly:
5706
5682
  if not market['contract']:
5707
- uppercaseType = 'LIMIT_MAKER' # only self endpoint accepts GTXhttps://binance-docs.github.io/apidocs/pm/en/#new-margin-order-trade
5683
+ uppercaseType = 'LIMIT_MAKER'
5708
5684
  else:
5709
5685
  request['timeInForce'] = 'GTX'
5710
5686
  # handle newOrderRespType response type
@@ -5822,7 +5798,7 @@ class binance(Exchange, ImplicitAPI):
5822
5798
  async def create_market_order_with_cost(self, symbol: str, side: OrderSide, cost: float, params={}):
5823
5799
  """
5824
5800
  create a market order by providing the symbol, side and cost
5825
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
5801
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5826
5802
  :param str symbol: unified symbol of the market to create an order in
5827
5803
  :param str side: 'buy' or 'sell'
5828
5804
  :param float cost: how much you want to trade in units of the quote currency
@@ -5839,7 +5815,7 @@ class binance(Exchange, ImplicitAPI):
5839
5815
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
5840
5816
  """
5841
5817
  create a market buy order by providing the symbol and cost
5842
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
5818
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5843
5819
  :param str symbol: unified symbol of the market to create an order in
5844
5820
  :param float cost: how much you want to trade in units of the quote currency
5845
5821
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5855,7 +5831,7 @@ class binance(Exchange, ImplicitAPI):
5855
5831
  async def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
5856
5832
  """
5857
5833
  create a market sell order by providing the symbol and cost
5858
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
5834
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5859
5835
  :param str symbol: unified symbol of the market to create an order in
5860
5836
  :param float cost: how much you want to trade in units of the quote currency
5861
5837
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5871,14 +5847,13 @@ class binance(Exchange, ImplicitAPI):
5871
5847
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
5872
5848
  """
5873
5849
  fetches information on an order made by the user
5874
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
5875
- :see: https://binance-docs.github.io/apidocs/futures/en/#query-order-user_data
5876
- :see: https://binance-docs.github.io/apidocs/delivery/en/#query-order-user_data
5877
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-single-order-trade
5878
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-order-user_data
5879
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-um-order-user_data
5880
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-cm-order-user_data
5881
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-margin-account-order-user_data
5850
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
5851
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
5852
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
5853
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
5854
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
5855
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
5856
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order
5882
5857
  :param str id: the order id
5883
5858
  :param str symbol: unified symbol of the market the order was made in
5884
5859
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5935,16 +5910,15 @@ class binance(Exchange, ImplicitAPI):
5935
5910
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
5936
5911
  """
5937
5912
  fetches information on multiple orders made by the user
5938
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
5939
- :see: https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
5940
- :see: https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
5941
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
5942
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
5943
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-orders-user_data
5944
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-orders-user_data
5945
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-conditional-orders-user_data
5946
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-conditional-orders-user_data
5947
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
5913
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
5914
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
5915
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
5916
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
5917
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
5918
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
5919
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
5920
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
5921
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
5948
5922
  :param str symbol: unified market symbol of the market orders were made in
5949
5923
  :param int [since]: the earliest time in ms to fetch orders for
5950
5924
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6193,20 +6167,15 @@ class binance(Exchange, ImplicitAPI):
6193
6167
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6194
6168
  """
6195
6169
  fetch all unfilled currently open orders
6196
- :see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
6197
- :see: https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
6198
- :see: https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
6199
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
6200
- :see: https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
6201
- :see: https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
6202
- :see: https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
6203
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
6204
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-orders-user_data
6205
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-current-um-open-orders-user_data
6206
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-current-cm-open-orders-user_data
6207
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-current-um-open-conditional-orders-user_data
6208
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-current-cm-open-conditional-orders-user_data
6209
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-current-margin-open-order-user_data
6170
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
6171
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
6172
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
6173
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
6174
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
6175
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
6176
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders
6177
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders
6178
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders
6210
6179
  :param str symbol: unified market symbol
6211
6180
  :param int [since]: the earliest time in ms to fetch open orders for
6212
6181
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -6282,12 +6251,12 @@ class binance(Exchange, ImplicitAPI):
6282
6251
  async def fetch_open_order(self, id: str, symbol: Str = None, params={}):
6283
6252
  """
6284
6253
  fetch an open order by the id
6285
- :see: https://binance-docs.github.io/apidocs/futures/en/#query-current-open-order-user_data
6286
- :see: https://binance-docs.github.io/apidocs/delivery/en/#query-current-open-order-user_data
6287
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-current-um-open-order-user_data
6288
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-current-cm-open-order-user_data
6289
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-current-um-open-conditional-order-user_data
6290
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-current-cm-open-conditional-order-user_data
6254
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
6255
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
6256
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
6257
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
6258
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
6259
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order
6291
6260
  :param str id: order id
6292
6261
  :param str symbol: unified market symbol
6293
6262
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6483,16 +6452,15 @@ class binance(Exchange, ImplicitAPI):
6483
6452
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6484
6453
  """
6485
6454
  fetches information on multiple closed orders made by the user
6486
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
6487
- :see: https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
6488
- :see: https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
6489
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
6490
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
6491
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-orders-user_data
6492
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-orders-user_data
6493
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-conditional-orders-user_data
6494
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-conditional-orders-user_data
6495
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
6455
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6456
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6457
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6458
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6459
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6460
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6461
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6462
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6463
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6496
6464
  :param str symbol: unified market symbol of the market orders were made in
6497
6465
  :param int [since]: the earliest time in ms to fetch orders for
6498
6466
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6511,14 +6479,15 @@ class binance(Exchange, ImplicitAPI):
6511
6479
  async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
6512
6480
  """
6513
6481
  fetches information on multiple canceled orders made by the user
6514
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
6515
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
6516
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
6517
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-orders-user_data
6518
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-orders-user_data
6519
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-conditional-orders-user_data
6520
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-conditional-orders-user_data
6521
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
6482
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6483
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6484
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6485
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6486
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6487
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6488
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6489
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6490
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6522
6491
  :param str symbol: unified market symbol of the market the orders were made in
6523
6492
  :param int [since]: the earliest time in ms to fetch orders for
6524
6493
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6537,14 +6506,15 @@ class binance(Exchange, ImplicitAPI):
6537
6506
  async def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6538
6507
  """
6539
6508
  fetches information on multiple canceled orders made by the user
6540
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
6541
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
6542
- :see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
6543
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-orders-user_data
6544
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-orders-user_data
6545
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-um-conditional-orders-user_data
6546
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-cm-conditional-orders-user_data
6547
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
6509
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6510
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6511
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6512
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6513
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6514
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6515
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6516
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6517
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6548
6518
  :param str symbol: unified market symbol of the market the orders were made in
6549
6519
  :param int [since]: the earliest time in ms to fetch orders for
6550
6520
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6566,16 +6536,16 @@ class binance(Exchange, ImplicitAPI):
6566
6536
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
6567
6537
  """
6568
6538
  cancels an open order
6569
- :see: https://binance-docs.github.io/apidocs/spot/en/#cancel-order-trade
6570
- :see: https://binance-docs.github.io/apidocs/futures/en/#cancel-order-trade
6571
- :see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-order-trade
6572
- :see: https://binance-docs.github.io/apidocs/voptions/en/#cancel-option-order-trade
6573
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
6574
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-um-order-trade
6575
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-cm-order-trade
6576
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-um-conditional-order-trade
6577
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-cm-conditional-order-trade
6578
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-margin-account-order-trade
6539
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
6540
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
6541
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
6542
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
6543
+ :see: https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
6544
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
6545
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order
6546
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order
6547
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order
6548
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order
6579
6549
  :param str id: order id
6580
6550
  :param str symbol: unified symbol of the market the order was made in
6581
6551
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6645,16 +6615,15 @@ class binance(Exchange, ImplicitAPI):
6645
6615
  async def cancel_all_orders(self, symbol: Str = None, params={}):
6646
6616
  """
6647
6617
  cancel all open orders in a market
6648
- :see: https://binance-docs.github.io/apidocs/spot/en/#cancel-all-open-orders-on-a-symbol-trade
6649
- :see: https://binance-docs.github.io/apidocs/futures/en/#cancel-all-open-orders-trade
6650
- :see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-all-open-orders-trade
6651
- :see: https://binance-docs.github.io/apidocs/voptions/en/#cancel-all-option-orders-on-specific-symbol-trade
6652
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
6653
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-all-um-open-orders-trade
6654
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-all-cm-open-orders-trade
6655
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-all-um-open-conditional-orders-trade
6656
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-all-cm-open-conditional-orders-trade
6657
- :see: https://binance-docs.github.io/apidocs/pm/en/#cancel-margin-account-all-open-orders-on-a-symbol-trade
6618
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
6619
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
6620
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
6621
+ :see: https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
6622
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
6623
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders
6624
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders
6625
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders
6626
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol
6658
6627
  :param str symbol: unified market symbol of the market to cancel orders in
6659
6628
  :param dict [params]: extra parameters specific to the exchange API endpoint
6660
6629
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
@@ -6712,8 +6681,8 @@ class binance(Exchange, ImplicitAPI):
6712
6681
  async def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
6713
6682
  """
6714
6683
  cancel multiple orders
6715
- :see: https://binance-docs.github.io/apidocs/futures/en/#cancel-multiple-orders-trade
6716
- :see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-multiple-orders-trade
6684
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
6685
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
6717
6686
  :param str[] ids: order ids
6718
6687
  :param str [symbol]: unified market symbol
6719
6688
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6778,10 +6747,10 @@ class binance(Exchange, ImplicitAPI):
6778
6747
  async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
6779
6748
  """
6780
6749
  fetch all the trades made from a single order
6781
- :see: https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
6782
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
6783
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
6784
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
6750
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
6751
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
6752
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
6753
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
6785
6754
  :param str id: order id
6786
6755
  :param str symbol: unified market symbol
6787
6756
  :param int [since]: the earliest time in ms to fetch trades for
@@ -6805,13 +6774,13 @@ class binance(Exchange, ImplicitAPI):
6805
6774
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
6806
6775
  """
6807
6776
  fetch all trades made by the user
6808
- :see: https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
6809
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
6810
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
6811
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
6812
- :see: https://binance-docs.github.io/apidocs/pm/en/#margin-account-trade-list-user_data
6813
- :see: https://binance-docs.github.io/apidocs/pm/en/#um-account-trade-list-user_data
6814
- :see: https://binance-docs.github.io/apidocs/pm/en/#cm-account-trade-list-user_data
6777
+ :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
6778
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
6779
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
6780
+ :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
6781
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
6782
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
6783
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List
6815
6784
  :param str symbol: unified market symbol
6816
6785
  :param int [since]: the earliest time in ms to fetch trades for
6817
6786
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -6838,7 +6807,6 @@ class binance(Exchange, ImplicitAPI):
6838
6807
  if since is not None:
6839
6808
  startTime = since
6840
6809
  request['startTime'] = startTime
6841
- # https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
6842
6810
  # If startTime and endTime are both not sent, then the last 7 days' data will be returned.
6843
6811
  # The time between startTime and endTime cannot be longer than 7 days.
6844
6812
  # The parameter fromId cannot be sent with startTime or endTime.
@@ -7017,7 +6985,7 @@ class binance(Exchange, ImplicitAPI):
7017
6985
  async def fetch_my_dust_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
7018
6986
  """
7019
6987
  fetch all dust trades made by the user
7020
- :see: https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
6988
+ :see: https://developers.binance.com/docs/wallet/asset/dust-log
7021
6989
  :param str symbol: not used by binance fetchMyDustTrades()
7022
6990
  :param int [since]: the earliest time in ms to fetch my dust trades for
7023
6991
  :param int [limit]: the maximum number of dust trades to retrieve
@@ -7150,17 +7118,16 @@ class binance(Exchange, ImplicitAPI):
7150
7118
 
7151
7119
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
7152
7120
  """
7153
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
7154
7121
  fetch all deposits made to an account
7155
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
7156
- :see: https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
7122
+ :see: https://developers.binance.com/docs/wallet/capital/deposite-history
7123
+ :see: https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7157
7124
  :param str code: unified currency code
7158
7125
  :param int [since]: the earliest time in ms to fetch deposits for
7159
7126
  :param int [limit]: the maximum number of deposits structures to retrieve
7160
7127
  :param dict [params]: extra parameters specific to the exchange API endpoint
7161
7128
  :param bool [params.fiat]: if True, only fiat deposits will be returned
7162
7129
  :param int [params.until]: the latest time in ms to fetch entries for
7163
- :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7130
+ :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7164
7131
  :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
7165
7132
  """
7166
7133
  await self.load_markets()
@@ -7251,18 +7218,16 @@ class binance(Exchange, ImplicitAPI):
7251
7218
 
7252
7219
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
7253
7220
  """
7254
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
7255
- :see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
7256
7221
  fetch all withdrawals made from an account
7257
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
7258
- :see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
7222
+ :see: https://developers.binance.com/docs/wallet/capital/withdraw-history
7223
+ :see: https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7259
7224
  :param str code: unified currency code
7260
7225
  :param int [since]: the earliest time in ms to fetch withdrawals for
7261
7226
  :param int [limit]: the maximum number of withdrawals structures to retrieve
7262
7227
  :param dict [params]: extra parameters specific to the exchange API endpoint
7263
7228
  :param bool [params.fiat]: if True, only fiat withdrawals will be returned
7264
7229
  :param int [params.until]: the latest time in ms to fetch withdrawals for
7265
- :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7230
+ :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7266
7231
  :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
7267
7232
  """
7268
7233
  await self.load_markets()
@@ -7668,7 +7633,7 @@ class binance(Exchange, ImplicitAPI):
7668
7633
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
7669
7634
  """
7670
7635
  transfer currency internally between wallets on the same account
7671
- :see: https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
7636
+ :see: https://developers.binance.com/docs/wallet/asset/user-universal-transfer
7672
7637
  :param str code: unified currency code
7673
7638
  :param float amount: amount to transfer
7674
7639
  :param str fromAccount: account to transfer from
@@ -7753,14 +7718,13 @@ class binance(Exchange, ImplicitAPI):
7753
7718
  async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> TransferEntries:
7754
7719
  """
7755
7720
  fetch a history of internal transfers made on an account
7756
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
7757
- :see: https://binance-docs.github.io/apidocs/spot/en/#pay-endpoints
7721
+ :see: https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer
7758
7722
  :param str code: unified currency code of the currency transferred
7759
7723
  :param int [since]: the earliest time in ms to fetch transfers for
7760
7724
  :param int [limit]: the maximum number of transfers structures to retrieve
7761
7725
  :param dict [params]: extra parameters specific to the exchange API endpoint
7762
7726
  :param int [params.until]: the latest time in ms to fetch transfers for
7763
- :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7727
+ :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7764
7728
  :param boolean [params.internal]: default False, when True will fetch pay trade history
7765
7729
  :returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
7766
7730
  """
@@ -7886,7 +7850,7 @@ class binance(Exchange, ImplicitAPI):
7886
7850
  async def fetch_deposit_address(self, code: str, params={}):
7887
7851
  """
7888
7852
  fetch the deposit address for a currency associated with self account
7889
- :see: https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
7853
+ :see: https://developers.binance.com/docs/wallet/capital/deposite-address
7890
7854
  :param str code: unified currency code
7891
7855
  :param dict [params]: extra parameters specific to the exchange API endpoint
7892
7856
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -7904,7 +7868,6 @@ class binance(Exchange, ImplicitAPI):
7904
7868
  request['network'] = network
7905
7869
  params = self.omit(params, 'network')
7906
7870
  # has support for the 'network' parameter
7907
- # https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
7908
7871
  response = await self.sapiGetCapitalDepositAddress(self.extend(request, params))
7909
7872
  #
7910
7873
  # {
@@ -7954,7 +7917,7 @@ class binance(Exchange, ImplicitAPI):
7954
7917
  """
7955
7918
  * @deprecated
7956
7919
  please use fetchDepositWithdrawFees instead
7957
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
7920
+ :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
7958
7921
  :param str[]|None codes: not used by binance fetchTransactionFees()
7959
7922
  :param dict [params]: extra parameters specific to the exchange API endpoint
7960
7923
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -8064,7 +8027,7 @@ class binance(Exchange, ImplicitAPI):
8064
8027
  async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
8065
8028
  """
8066
8029
  fetch deposit and withdraw fees
8067
- :see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
8030
+ :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
8068
8031
  :param str[]|None codes: not used by binance fetchDepositWithdrawFees()
8069
8032
  :param dict [params]: extra parameters specific to the exchange API endpoint
8070
8033
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -8184,7 +8147,7 @@ class binance(Exchange, ImplicitAPI):
8184
8147
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
8185
8148
  """
8186
8149
  make a withdrawal
8187
- :see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
8150
+ :see: https://developers.binance.com/docs/wallet/capital/withdraw
8188
8151
  :param str code: unified currency code
8189
8152
  :param float amount: the amount to withdraw
8190
8153
  :param str address: the address to withdraw to
@@ -8200,7 +8163,6 @@ class binance(Exchange, ImplicitAPI):
8200
8163
  'coin': currency['id'],
8201
8164
  'address': address,
8202
8165
  'amount': self.currency_to_precision(code, amount),
8203
- # https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
8204
8166
  # issue sapiGetCapitalConfigGetall() to get networks for withdrawing USDT ERC20 vs USDT Omni
8205
8167
  # 'network': 'ETH', # 'BTC', 'TRX', etc, optional
8206
8168
  }
@@ -8248,11 +8210,11 @@ class binance(Exchange, ImplicitAPI):
8248
8210
  async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
8249
8211
  """
8250
8212
  fetch the trading fees for a market
8251
- :see: https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
8252
- :see: https://binance-docs.github.io/apidocs/futures/en/#user-commission-rate-user_data
8253
- :see: https://binance-docs.github.io/apidocs/delivery/en/#user-commission-rate-user_data
8254
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-user-commission-rate-for-um-user_data
8255
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-user-commission-rate-for-cm-user_data
8213
+ :see: https://developers.binance.com/docs/wallet/asset/trade-fee
8214
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
8215
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
8216
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
8217
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
8256
8218
  :param str symbol: unified market symbol
8257
8219
  :param dict [params]: extra parameters specific to the exchange API endpoint
8258
8220
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch trading fees in a portfolio margin account
@@ -8311,9 +8273,9 @@ class binance(Exchange, ImplicitAPI):
8311
8273
  async def fetch_trading_fees(self, params={}) -> TradingFees:
8312
8274
  """
8313
8275
  fetch the trading fees for multiple markets
8314
- :see: https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
8315
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
8316
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
8276
+ :see: https://developers.binance.com/docs/wallet/asset/trade-fee
8277
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
8278
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
8317
8279
  :param dict [params]: extra parameters specific to the exchange API endpoint
8318
8280
  :param str [params.subType]: "linear" or "inverse"
8319
8281
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
@@ -8478,7 +8440,7 @@ class binance(Exchange, ImplicitAPI):
8478
8440
  """
8479
8441
  * @ignore
8480
8442
  transfer between futures account
8481
- :see: https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
8443
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/New-Future-Account-Transfer
8482
8444
  :param str code: unified currency code
8483
8445
  :param float amount: the amount to transfer
8484
8446
  :param str type: 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
@@ -8506,8 +8468,8 @@ class binance(Exchange, ImplicitAPI):
8506
8468
  async def fetch_funding_rate(self, symbol: str, params={}):
8507
8469
  """
8508
8470
  fetch the current funding rate
8509
- :see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
8510
- :see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
8471
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
8472
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
8511
8473
  :param str symbol: unified market symbol
8512
8474
  :param dict [params]: extra parameters specific to the exchange API endpoint
8513
8475
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -8543,8 +8505,8 @@ class binance(Exchange, ImplicitAPI):
8543
8505
  async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
8544
8506
  """
8545
8507
  fetches historical funding rate prices
8546
- :see: https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history
8547
- :see: https://binance-docs.github.io/apidocs/delivery/en/#get-funding-rate-history-of-perpetual-futures
8508
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
8509
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
8548
8510
  :param str symbol: unified symbol of the market to fetch the funding rate history for
8549
8511
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
8550
8512
  :param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
@@ -8610,8 +8572,8 @@ class binance(Exchange, ImplicitAPI):
8610
8572
  async def fetch_funding_rates(self, symbols: Strings = None, params={}):
8611
8573
  """
8612
8574
  fetch the funding rate for multiple markets
8613
- :see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
8614
- :see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
8575
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
8576
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
8615
8577
  :param str[]|None symbols: list of unified market symbols
8616
8578
  :param dict [params]: extra parameters specific to the exchange API endpoint
8617
8579
  :param str [params.subType]: "linear" or "inverse"
@@ -9178,10 +9140,10 @@ class binance(Exchange, ImplicitAPI):
9178
9140
  async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
9179
9141
  """
9180
9142
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
9181
- :see: https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data
9182
- :see: https://binance-docs.github.io/apidocs/delivery/en/#notional-bracket-for-symbol-user_data
9183
- :see: https://binance-docs.github.io/apidocs/pm/en/#um-notional-and-leverage-brackets-user_data
9184
- :see: https://binance-docs.github.io/apidocs/pm/en/#cm-notional-and-leverage-brackets-user_data
9143
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
9144
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
9145
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
9146
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
9185
9147
  :param str[]|None symbols: list of unified market symbols
9186
9148
  :param dict [params]: extra parameters specific to the exchange API endpoint
9187
9149
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch the leverage tiers for a portfolio margin account
@@ -9289,8 +9251,8 @@ class binance(Exchange, ImplicitAPI):
9289
9251
 
9290
9252
  async def fetch_position(self, symbol: str, params={}):
9291
9253
  """
9292
- :see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
9293
9254
  fetch data on an open position
9255
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9294
9256
  :param str symbol: unified market symbol of the market the position is held in
9295
9257
  :param dict [params]: extra parameters specific to the exchange API endpoint
9296
9258
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -9330,8 +9292,8 @@ class binance(Exchange, ImplicitAPI):
9330
9292
 
9331
9293
  async def fetch_option_positions(self, symbols: Strings = None, params={}):
9332
9294
  """
9333
- :see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
9334
9295
  fetch data on open options positions
9296
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9335
9297
  :param str[]|None symbols: list of unified market symbols
9336
9298
  :param dict [params]: extra parameters specific to the exchange API endpoint
9337
9299
  :returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
@@ -9439,11 +9401,11 @@ class binance(Exchange, ImplicitAPI):
9439
9401
  async def fetch_positions(self, symbols: Strings = None, params={}):
9440
9402
  """
9441
9403
  fetch all open positions
9442
- :see: https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
9443
- :see: https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
9444
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
9445
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
9446
- :see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
9404
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9405
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9406
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9407
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9408
+ :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9447
9409
  :param str[] [symbols]: list of unified market symbols
9448
9410
  :param dict [params]: extra parameters specific to the exchange API endpoint
9449
9411
  :param str [method]: method name to call, "positionRisk", "account" or "option", default is "positionRisk"
@@ -9465,10 +9427,10 @@ class binance(Exchange, ImplicitAPI):
9465
9427
  """
9466
9428
  * @ignore
9467
9429
  fetch account positions
9468
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
9469
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
9470
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-um-account-detail-user_data
9471
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-cm-account-detail-user_data
9430
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9431
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9432
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9433
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9472
9434
  :param str[] [symbols]: list of unified market symbols
9473
9435
  :param dict [params]: extra parameters specific to the exchange API endpoint
9474
9436
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch positions in a portfolio margin account
@@ -9511,10 +9473,10 @@ class binance(Exchange, ImplicitAPI):
9511
9473
  """
9512
9474
  * @ignore
9513
9475
  fetch positions risk
9514
- :see: https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
9515
- :see: https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
9516
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-um-position-information-user_data
9517
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-cm-position-information-user_data
9476
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9477
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9478
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
9479
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
9518
9480
  :param str[]|None symbols: list of unified market symbols
9519
9481
  :param dict [params]: extra parameters specific to the exchange API endpoint
9520
9482
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch positions for a portfolio margin account
@@ -9655,10 +9617,10 @@ class binance(Exchange, ImplicitAPI):
9655
9617
  async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
9656
9618
  """
9657
9619
  fetch the history of funding payments paid and received on self account
9658
- :see: https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
9659
- :see: https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
9660
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-um-income-history-user_data
9661
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-cm-income-history-user_data
9620
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
9621
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
9622
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
9623
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
9662
9624
  :param str symbol: unified market symbol
9663
9625
  :param int [since]: the earliest time in ms to fetch funding history for
9664
9626
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -9708,10 +9670,10 @@ class binance(Exchange, ImplicitAPI):
9708
9670
  async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
9709
9671
  """
9710
9672
  set the level of leverage for a market
9711
- :see: https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
9712
- :see: https://binance-docs.github.io/apidocs/delivery/en/#change-initial-leverage-trade
9713
- :see: https://binance-docs.github.io/apidocs/pm/en/#change-um-initial-leverage-trade
9714
- :see: https://binance-docs.github.io/apidocs/pm/en/#change-cm-initial-leverage-trade
9673
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
9674
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
9675
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
9676
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
9715
9677
  :param float leverage: the rate of leverage
9716
9678
  :param str symbol: unified market symbol
9717
9679
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9750,8 +9712,8 @@ class binance(Exchange, ImplicitAPI):
9750
9712
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
9751
9713
  """
9752
9714
  set margin mode to 'cross' or 'isolated'
9753
- :see: https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
9754
- :see: https://binance-docs.github.io/apidocs/delivery/en/#change-margin-type-trade
9715
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
9716
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
9755
9717
  :param str marginMode: 'cross' or 'isolated'
9756
9718
  :param str symbol: unified market symbol
9757
9719
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9804,10 +9766,10 @@ class binance(Exchange, ImplicitAPI):
9804
9766
  async def set_position_mode(self, hedged: bool, symbol: Str = None, params={}):
9805
9767
  """
9806
9768
  set hedged to True or False for a market
9807
- :see: https://binance-docs.github.io/apidocs/futures/en/#change-position-mode-trade
9808
- :see: https://binance-docs.github.io/apidocs/delivery/en/#change-position-mode-trade
9809
- :see: https://binance-docs.github.io/apidocs/pm/en/#change-um-position-mode-trade
9810
- :see: https://binance-docs.github.io/apidocs/pm/en/#change-cm-position-mode-trade
9769
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
9770
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
9771
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
9772
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
9811
9773
  :param bool hedged: set to True to use dualSidePosition
9812
9774
  :param str symbol: not used by binance setPositionMode()
9813
9775
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -9854,10 +9816,10 @@ class binance(Exchange, ImplicitAPI):
9854
9816
  async def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
9855
9817
  """
9856
9818
  fetch the set leverage for all markets
9857
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
9858
- :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
9859
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-um-account-detail-user_data
9860
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-cm-account-detail-user_data
9819
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9820
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9821
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
9822
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
9861
9823
  :param str[] [symbols]: a list of unified market symbols
9862
9824
  :param dict [params]: extra parameters specific to the exchange API endpoint
9863
9825
  :param str [params.subType]: "linear" or "inverse"
@@ -9915,7 +9877,7 @@ class binance(Exchange, ImplicitAPI):
9915
9877
  async def fetch_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
9916
9878
  """
9917
9879
  fetches historical settlement records
9918
- :see: https://binance-docs.github.io/apidocs/voptions/en/#historical-exercise-records
9880
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records
9919
9881
  :param str symbol: unified market symbol of the settlement history
9920
9882
  :param int [since]: timestamp in ms
9921
9883
  :param int [limit]: number of records, default 100, max 100
@@ -9955,7 +9917,7 @@ class binance(Exchange, ImplicitAPI):
9955
9917
  async def fetch_my_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
9956
9918
  """
9957
9919
  fetches historical settlement records of the user
9958
- :see: https://binance-docs.github.io/apidocs/voptions/en/#user-exercise-record-user_data
9920
+ :see: https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record
9959
9921
  :param str symbol: unified market symbol of the settlement history
9960
9922
  :param int [since]: timestamp in ms
9961
9923
  :param int [limit]: number of records
@@ -10096,11 +10058,11 @@ class binance(Exchange, ImplicitAPI):
10096
10058
  async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
10097
10059
  """
10098
10060
  fetch the history of changes, actions done by the user or operations that altered the balance of the user
10099
- :see: https://binance-docs.github.io/apidocs/voptions/en/#account-funding-flow-user_data
10100
- :see: https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
10101
- :see: https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
10102
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-um-income-history-user_data
10103
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-cm-income-history-user_data
10061
+ :see: https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
10062
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10063
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10064
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10065
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10104
10066
  :param str code: unified currency code
10105
10067
  :param int [since]: timestamp in ms of the earliest ledger entry
10106
10068
  :param int [limit]: max number of ledger entrys to return
@@ -10543,9 +10505,9 @@ class binance(Exchange, ImplicitAPI):
10543
10505
 
10544
10506
  async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
10545
10507
  """
10546
- :see: https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
10547
- :see: https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
10548
10508
  remove margin from a position
10509
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
10510
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
10549
10511
  :param str symbol: unified market symbol
10550
10512
  :param float amount: the amount of margin to remove
10551
10513
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10555,9 +10517,9 @@ class binance(Exchange, ImplicitAPI):
10555
10517
 
10556
10518
  async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
10557
10519
  """
10558
- :see: https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
10559
- :see: https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
10560
10520
  add margin
10521
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
10522
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
10561
10523
  :param str symbol: unified market symbol
10562
10524
  :param float amount: amount of margin to add
10563
10525
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10568,7 +10530,7 @@ class binance(Exchange, ImplicitAPI):
10568
10530
  async def fetch_cross_borrow_rate(self, code: str, params={}) -> CrossBorrowRate:
10569
10531
  """
10570
10532
  fetch the rate of interest to borrow a currency for margin trading
10571
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
10533
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
10572
10534
  :param str code: unified currency code
10573
10535
  :param dict [params]: extra parameters specific to the exchange API endpoint
10574
10536
  :returns dict: a `borrow rate structure <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
@@ -10596,7 +10558,7 @@ class binance(Exchange, ImplicitAPI):
10596
10558
  async def fetch_isolated_borrow_rate(self, symbol: str, params={}) -> IsolatedBorrowRate:
10597
10559
  """
10598
10560
  fetch the rate of interest to borrow a currency for margin trading
10599
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-fee-data-user_data
10561
+ :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
10600
10562
  :param str symbol: unified market symbol
10601
10563
  :param dict [params]: extra parameters specific to the exchange API endpoint
10602
10564
  *
@@ -10613,7 +10575,7 @@ class binance(Exchange, ImplicitAPI):
10613
10575
  async def fetch_isolated_borrow_rates(self, params={}) -> IsolatedBorrowRates:
10614
10576
  """
10615
10577
  fetch the borrow interest rates of all currencies
10616
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-fee-data-user_data
10578
+ :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
10617
10579
  :param dict [params]: extra parameters specific to the exchange API endpoint
10618
10580
  :param dict [params.symbol]: unified market symbol
10619
10581
  *
@@ -10655,7 +10617,7 @@ class binance(Exchange, ImplicitAPI):
10655
10617
  async def fetch_borrow_rate_history(self, code: str, since: Int = None, limit: Int = None, params={}):
10656
10618
  """
10657
10619
  retrieves a history of a currencies borrow interest rate at specific time slots
10658
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
10620
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
10659
10621
  :param str code: unified currency code
10660
10622
  :param int [since]: timestamp for the earliest borrow rate
10661
10623
  :param int [limit]: the maximum number of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>` to retrieve
@@ -10760,7 +10722,7 @@ class binance(Exchange, ImplicitAPI):
10760
10722
  async def create_gift_code(self, code: str, amount, params={}):
10761
10723
  """
10762
10724
  create gift code
10763
- :see: https://binance-docs.github.io/apidocs/spot/en/#create-a-single-token-gift-card-user_data
10725
+ :see: https://developers.binance.com/docs/gift_card/market-data/Create-a-single-token-gift-card
10764
10726
  :param str code: gift code
10765
10727
  :param float amount: amount of currency for the gift
10766
10728
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10796,7 +10758,7 @@ class binance(Exchange, ImplicitAPI):
10796
10758
  async def redeem_gift_code(self, giftcardCode, params={}):
10797
10759
  """
10798
10760
  redeem gift code
10799
- :see: https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-gift-card-user_data
10761
+ :see: https://developers.binance.com/docs/gift_card/market-data/Redeem-a-Binance-Gift-Card
10800
10762
  :param str giftcardCode:
10801
10763
  :param dict [params]: extra parameters specific to the exchange API endpoint
10802
10764
  :returns dict: response from the exchange
@@ -10821,7 +10783,7 @@ class binance(Exchange, ImplicitAPI):
10821
10783
  async def verify_gift_code(self, id: str, params={}):
10822
10784
  """
10823
10785
  verify gift code
10824
- :see: https://binance-docs.github.io/apidocs/spot/en/#verify-binance-gift-card-by-gift-card-number-user_data
10786
+ :see: https://developers.binance.com/docs/gift_card/market-data/Verify-Binance-Gift-Card-by-Gift-Card-Number
10825
10787
  :param str id: reference number id
10826
10788
  :param dict [params]: extra parameters specific to the exchange API endpoint
10827
10789
  :returns dict: response from the exchange
@@ -10843,8 +10805,8 @@ class binance(Exchange, ImplicitAPI):
10843
10805
  async def fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
10844
10806
  """
10845
10807
  fetch the interest owed by the user for borrowing currency for margin trading
10846
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
10847
- :see: https://binance-docs.github.io/apidocs/pm/en/#get-margin-borrow-loan-interest-history-user_data
10808
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History
10809
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History
10848
10810
  :param str [code]: unified currency code
10849
10811
  :param str [symbol]: unified market symbol when fetch interest in isolated markets
10850
10812
  :param int [since]: the earliest time in ms to fetch borrrow interest for
@@ -10934,8 +10896,8 @@ class binance(Exchange, ImplicitAPI):
10934
10896
  async def repay_cross_margin(self, code: str, amount, params={}):
10935
10897
  """
10936
10898
  repay borrowed margin and interest
10937
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
10938
- :see: https://binance-docs.github.io/apidocs/pm/en/#margin-account-repay-margin
10899
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay
10900
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
10939
10901
  :param str code: unified currency code of the currency to repay
10940
10902
  :param float amount: the amount to repay
10941
10903
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10968,7 +10930,7 @@ class binance(Exchange, ImplicitAPI):
10968
10930
  async def repay_isolated_margin(self, symbol: str, code: str, amount, params={}):
10969
10931
  """
10970
10932
  repay borrowed margin and interest
10971
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
10933
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
10972
10934
  :param str symbol: unified market symbol, required for isolated margin
10973
10935
  :param str code: unified currency code of the currency to repay
10974
10936
  :param float amount: the amount to repay
@@ -10997,8 +10959,8 @@ class binance(Exchange, ImplicitAPI):
10997
10959
  async def borrow_cross_margin(self, code: str, amount: float, params={}):
10998
10960
  """
10999
10961
  create a loan to borrow margin
11000
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
11001
- :see: https://binance-docs.github.io/apidocs/pm/en/#margin-account-borrow-margin
10962
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
10963
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow
11002
10964
  :param str code: unified currency code of the currency to borrow
11003
10965
  :param float amount: the amount to borrow
11004
10966
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11031,7 +10993,7 @@ class binance(Exchange, ImplicitAPI):
11031
10993
  async def borrow_isolated_margin(self, symbol: str, code: str, amount: float, params={}):
11032
10994
  """
11033
10995
  create a loan to borrow margin
11034
- :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
10996
+ :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11035
10997
  :param str symbol: unified market symbol, required for isolated margin
11036
10998
  :param str code: unified currency code of the currency to borrow
11037
10999
  :param float amount: the amount to borrow
@@ -11077,8 +11039,8 @@ class binance(Exchange, ImplicitAPI):
11077
11039
  async def fetch_open_interest_history(self, symbol: str, timeframe='5m', since: Int = None, limit: Int = None, params={}):
11078
11040
  """
11079
11041
  Retrieves the open interest history of a currency
11080
- :see: https://binance-docs.github.io/apidocs/delivery/en/#open-interest-statistics
11081
- :see: https://binance-docs.github.io/apidocs/futures/en/#open-interest-statistics
11042
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
11043
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
11082
11044
  :param str symbol: Unified CCXT market symbol
11083
11045
  :param str timeframe: "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
11084
11046
  :param int [since]: the time(ms) of the earliest record to retrieve unix timestamp
@@ -11138,9 +11100,9 @@ class binance(Exchange, ImplicitAPI):
11138
11100
  async def fetch_open_interest(self, symbol: str, params={}):
11139
11101
  """
11140
11102
  retrieves the open interest of a contract trading pair
11141
- :see: https://binance-docs.github.io/apidocs/futures/en/#open-interest
11142
- :see: https://binance-docs.github.io/apidocs/delivery/en/#open-interest
11143
- :see: https://binance-docs.github.io/apidocs/voptions/en/#open-interest
11103
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
11104
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
11105
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
11144
11106
  :param str symbol: unified CCXT market symbol
11145
11107
  :param dict [params]: exchange specific parameters
11146
11108
  :returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
@@ -11221,12 +11183,11 @@ class binance(Exchange, ImplicitAPI):
11221
11183
  async def fetch_my_liquidations(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
11222
11184
  """
11223
11185
  retrieves the users liquidated positions
11224
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-force-liquidation-record-user_data
11225
- :see: https://binance-docs.github.io/apidocs/futures/en/#user-39-s-force-orders-user_data
11226
- :see: https://binance-docs.github.io/apidocs/delivery/en/#user-39-s-force-orders-user_data
11227
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-user-39-s-margin-force-orders-user_data
11228
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-user-39-s-um-force-orders-user_data
11229
- :see: https://binance-docs.github.io/apidocs/pm/en/#query-user-39-s-cm-force-orders-user_data
11186
+ :see: https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
11187
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
11188
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
11189
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
11190
+ :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
11230
11191
  :param str [symbol]: unified CCXT market symbol
11231
11192
  :param int [since]: the earliest time in ms to fetch liquidations for
11232
11193
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -11451,7 +11412,7 @@ class binance(Exchange, ImplicitAPI):
11451
11412
  async def fetch_greeks(self, symbol: str, params={}) -> Greeks:
11452
11413
  """
11453
11414
  fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
11454
- :see: https://binance-docs.github.io/apidocs/voptions/en/#option-mark-price
11415
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
11455
11416
  :param str symbol: unified symbol of the market to fetch greeks for
11456
11417
  :param dict [params]: extra parameters specific to the exchange API endpoint
11457
11418
  :returns dict: a `greeks structure <https://docs.ccxt.com/#/?id=greeks-structure>`
@@ -11535,6 +11496,8 @@ class binance(Exchange, ImplicitAPI):
11535
11496
  async def fetch_position_mode(self, symbol: Str = None, params={}):
11536
11497
  """
11537
11498
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
11499
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
11500
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
11538
11501
  :param str symbol: unified symbol of the market to fetch the order book for
11539
11502
  :param dict [params]: extra parameters specific to the exchange API endpoint
11540
11503
  :param str [params.subType]: "linear" or "inverse"
@@ -11566,7 +11529,8 @@ class binance(Exchange, ImplicitAPI):
11566
11529
  async def fetch_margin_modes(self, symbols: Strings = None, params={}) -> MarginModes:
11567
11530
  """
11568
11531
  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
11569
- :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
11532
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
11533
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
11570
11534
  :param str symbol: unified symbol of the market the order was made in
11571
11535
  :param dict [params]: extra parameters specific to the exchange API endpoint
11572
11536
  :param str [params.subType]: "linear" or "inverse"
@@ -11714,7 +11678,7 @@ class binance(Exchange, ImplicitAPI):
11714
11678
  async def fetch_option(self, symbol: str, params={}) -> Option:
11715
11679
  """
11716
11680
  fetches option data that is commonly found in an option chain
11717
- :see: https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics
11681
+ :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
11718
11682
  :param str symbol: unified market symbol
11719
11683
  :param dict [params]: extra parameters specific to the exchange API endpoint
11720
11684
  :returns dict: an `option chain structure <https://docs.ccxt.com/#/?id=option-chain-structure>`
@@ -11800,8 +11764,8 @@ class binance(Exchange, ImplicitAPI):
11800
11764
  async def fetch_margin_adjustment_history(self, symbol: Str = None, type: Str = None, since: Num = None, limit: Num = None, params={}) -> List[MarginModification]:
11801
11765
  """
11802
11766
  fetches the history of margin added or reduced from contract isolated positions
11803
- :see: https://binance-docs.github.io/apidocs/futures/en/#get-position-margin-change-history-trade
11804
- :see: https://binance-docs.github.io/apidocs/delivery/en/#get-position-margin-change-history-trade
11767
+ :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
11768
+ :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
11805
11769
  :param str symbol: unified market symbol
11806
11770
  :param str [type]: "add" or "reduce"
11807
11771
  :param int [since]: timestamp in ms of the earliest change to fetch
@@ -11855,7 +11819,7 @@ class binance(Exchange, ImplicitAPI):
11855
11819
  async def fetch_convert_currencies(self, params={}) -> Currencies:
11856
11820
  """
11857
11821
  fetches all available currencies that can be converted
11858
- :see: https://binance-docs.github.io/apidocs/spot/en/#query-order-quantity-precision-per-asset-user_data
11822
+ :see: https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset
11859
11823
  :param dict [params]: extra parameters specific to the exchange API endpoint
11860
11824
  :returns dict: an associative dictionary of currencies
11861
11825
  """
@@ -11907,7 +11871,7 @@ class binance(Exchange, ImplicitAPI):
11907
11871
  async def fetch_convert_quote(self, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
11908
11872
  """
11909
11873
  fetch a quote for converting from one currency to another
11910
- :see: https://binance-docs.github.io/apidocs/spot/en/#send-quote-request-user_data
11874
+ :see: https://developers.binance.com/docs/convert/trade/Send-quote-request
11911
11875
  :param str fromCode: the currency that you want to sell and convert from
11912
11876
  :param str toCode: the currency that you want to buy and convert into
11913
11877
  :param float amount: how much you want to trade in units of the from currency
@@ -11941,8 +11905,7 @@ class binance(Exchange, ImplicitAPI):
11941
11905
  async def create_convert_trade(self, id: str, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
11942
11906
  """
11943
11907
  convert from one currency to another
11944
- :see: https://binance-docs.github.io/apidocs/spot/en/#busd-convert-trade
11945
- :see: https://binance-docs.github.io/apidocs/spot/en/#accept-quote-trade
11908
+ :see: https://developers.binance.com/docs/convert/trade/Accept-Quote
11946
11909
  :param str id: the id of the trade that you want to make
11947
11910
  :param str fromCode: the currency that you want to sell and convert from
11948
11911
  :param str toCode: the currency that you want to buy and convert into
@@ -11984,8 +11947,7 @@ class binance(Exchange, ImplicitAPI):
11984
11947
  async def fetch_convert_trade(self, id: str, code: Str = None, params={}) -> Conversion:
11985
11948
  """
11986
11949
  fetch the data for a conversion trade
11987
- :see: https://binance-docs.github.io/apidocs/spot/en/#busd-convert-history-user_data
11988
- :see: https://binance-docs.github.io/apidocs/spot/en/#order-status-user_data
11950
+ :see: https://developers.binance.com/docs/convert/trade/Order-Status
11989
11951
  :param str id: the id of the trade that you want to fetch
11990
11952
  :param str [code]: the unified currency code of the conversion trade
11991
11953
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12055,8 +12017,7 @@ class binance(Exchange, ImplicitAPI):
12055
12017
  async def fetch_convert_trade_history(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Conversion]:
12056
12018
  """
12057
12019
  fetch the users history of conversion trades
12058
- :see: https://binance-docs.github.io/apidocs/spot/en/#busd-convert-history-user_data
12059
- :see: https://binance-docs.github.io/apidocs/spot/en/#get-convert-trade-history-user_data
12020
+ :see: https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History
12060
12021
  :param str [code]: the unified currency code
12061
12022
  :param int [since]: the earliest time in ms to fetch conversions for
12062
12023
  :param int [limit]: the maximum number of conversion structures to retrieve