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