ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +36 -12
  3. ccxt/alpaca.py +62 -22
  4. ccxt/ascendex.py +65 -30
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +36 -12
  7. ccxt/async_support/alpaca.py +62 -22
  8. ccxt/async_support/ascendex.py +65 -30
  9. ccxt/async_support/base/exchange.py +3 -3
  10. ccxt/async_support/bigone.py +71 -27
  11. ccxt/async_support/binance.py +555 -323
  12. ccxt/async_support/bingx.py +208 -108
  13. ccxt/async_support/bit2c.py +34 -12
  14. ccxt/async_support/bitbank.py +42 -14
  15. ccxt/async_support/bitbns.py +17 -9
  16. ccxt/async_support/bitfinex.py +68 -24
  17. ccxt/async_support/bitfinex2.py +116 -44
  18. ccxt/async_support/bitflyer.py +54 -18
  19. ccxt/async_support/bitget.py +277 -145
  20. ccxt/async_support/bithumb.py +39 -14
  21. ccxt/async_support/bitmart.py +145 -79
  22. ccxt/async_support/bitmex.py +90 -30
  23. ccxt/async_support/bitopro.py +66 -22
  24. ccxt/async_support/bitrue.py +109 -57
  25. ccxt/async_support/bitso.py +55 -19
  26. ccxt/async_support/bitstamp.py +84 -36
  27. ccxt/async_support/bitteam.py +51 -17
  28. ccxt/async_support/bitvavo.py +57 -19
  29. ccxt/async_support/bl3p.py +26 -10
  30. ccxt/async_support/blockchaincom.py +63 -21
  31. ccxt/async_support/blofin.py +95 -38
  32. ccxt/async_support/btcalpha.py +48 -16
  33. ccxt/async_support/btcbox.py +27 -9
  34. ccxt/async_support/btcmarkets.py +57 -19
  35. ccxt/async_support/btcturk.py +36 -12
  36. ccxt/async_support/bybit.py +251 -95
  37. ccxt/async_support/cex.py +65 -22
  38. ccxt/async_support/coinbase.py +138 -56
  39. ccxt/async_support/coinbaseexchange.py +76 -28
  40. ccxt/async_support/coinbaseinternational.py +75 -27
  41. ccxt/async_support/coincatch.py +191 -97
  42. ccxt/async_support/coincheck.py +33 -11
  43. ccxt/async_support/coinex.py +212 -101
  44. ccxt/async_support/coinlist.py +87 -30
  45. ccxt/async_support/coinmate.py +55 -24
  46. ccxt/async_support/coinmetro.py +52 -18
  47. ccxt/async_support/coinone.py +27 -10
  48. ccxt/async_support/coinsph.py +73 -27
  49. ccxt/async_support/coinspot.py +25 -9
  50. ccxt/async_support/cryptocom.py +103 -38
  51. ccxt/async_support/currencycom.py +70 -23
  52. ccxt/async_support/delta.py +90 -30
  53. ccxt/async_support/deribit.py +131 -50
  54. ccxt/async_support/digifinex.py +114 -51
  55. ccxt/async_support/exmo.py +104 -45
  56. ccxt/async_support/gate.py +298 -155
  57. ccxt/async_support/gemini.py +57 -20
  58. ccxt/async_support/hashkey.py +151 -66
  59. ccxt/async_support/hitbtc.py +156 -73
  60. ccxt/async_support/hollaex.py +76 -25
  61. ccxt/async_support/htx.py +297 -240
  62. ccxt/async_support/huobijp.py +1 -0
  63. ccxt/async_support/hyperliquid.py +94 -38
  64. ccxt/async_support/idex.py +73 -24
  65. ccxt/async_support/independentreserve.py +12 -5
  66. ccxt/async_support/indodax.py +53 -16
  67. ccxt/async_support/kraken.py +107 -35
  68. ccxt/async_support/krakenfutures.py +88 -34
  69. ccxt/async_support/kucoin.py +211 -109
  70. ccxt/async_support/kucoinfutures.py +119 -42
  71. ccxt/async_support/kuna.py +80 -39
  72. ccxt/async_support/latoken.py +70 -33
  73. ccxt/async_support/lbank.py +89 -38
  74. ccxt/async_support/luno.py +54 -19
  75. ccxt/async_support/lykke.py +54 -19
  76. ccxt/async_support/mercado.py +1 -0
  77. ccxt/async_support/mexc.py +226 -108
  78. ccxt/async_support/ndax.py +58 -19
  79. ccxt/async_support/novadax.py +67 -22
  80. ccxt/async_support/oceanex.py +58 -19
  81. ccxt/async_support/okcoin.py +81 -38
  82. ccxt/async_support/okx.py +270 -109
  83. ccxt/async_support/onetrading.py +3 -1
  84. ccxt/async_support/oxfun.py +95 -36
  85. ccxt/async_support/p2b.py +49 -23
  86. ccxt/async_support/paradex.py +75 -27
  87. ccxt/async_support/paymium.py +31 -11
  88. ccxt/async_support/phemex.py +91 -41
  89. ccxt/async_support/poloniex.py +80 -30
  90. ccxt/async_support/poloniexfutures.py +72 -30
  91. ccxt/async_support/probit.py +64 -22
  92. ccxt/async_support/timex.py +58 -19
  93. ccxt/async_support/tokocrypto.py +63 -22
  94. ccxt/async_support/tradeogre.py +7 -2
  95. ccxt/async_support/upbit.py +72 -25
  96. ccxt/async_support/vertex.py +74 -28
  97. ccxt/async_support/wavesexchange.py +29 -8
  98. ccxt/async_support/wazirx.py +51 -17
  99. ccxt/async_support/whitebit.py +105 -41
  100. ccxt/async_support/woo.py +162 -65
  101. ccxt/async_support/woofipro.py +118 -49
  102. ccxt/async_support/xt.py +150 -73
  103. ccxt/async_support/yobit.py +49 -16
  104. ccxt/async_support/zaif.py +30 -10
  105. ccxt/async_support/zonda.py +46 -16
  106. ccxt/base/exchange.py +34 -34
  107. ccxt/base/types.py +1 -0
  108. ccxt/bigone.py +71 -27
  109. ccxt/binance.py +555 -323
  110. ccxt/bingx.py +208 -108
  111. ccxt/bit2c.py +34 -12
  112. ccxt/bitbank.py +42 -14
  113. ccxt/bitbns.py +17 -9
  114. ccxt/bitfinex.py +68 -24
  115. ccxt/bitfinex2.py +116 -44
  116. ccxt/bitflyer.py +54 -18
  117. ccxt/bitget.py +277 -145
  118. ccxt/bithumb.py +39 -14
  119. ccxt/bitmart.py +145 -79
  120. ccxt/bitmex.py +90 -30
  121. ccxt/bitopro.py +66 -22
  122. ccxt/bitrue.py +109 -57
  123. ccxt/bitso.py +55 -19
  124. ccxt/bitstamp.py +84 -36
  125. ccxt/bitteam.py +51 -17
  126. ccxt/bitvavo.py +57 -19
  127. ccxt/bl3p.py +26 -10
  128. ccxt/blockchaincom.py +63 -21
  129. ccxt/blofin.py +95 -38
  130. ccxt/btcalpha.py +48 -16
  131. ccxt/btcbox.py +27 -9
  132. ccxt/btcmarkets.py +57 -19
  133. ccxt/btcturk.py +36 -12
  134. ccxt/bybit.py +251 -95
  135. ccxt/cex.py +65 -22
  136. ccxt/coinbase.py +138 -56
  137. ccxt/coinbaseexchange.py +76 -28
  138. ccxt/coinbaseinternational.py +75 -27
  139. ccxt/coincatch.py +191 -97
  140. ccxt/coincheck.py +33 -11
  141. ccxt/coinex.py +212 -101
  142. ccxt/coinlist.py +87 -30
  143. ccxt/coinmate.py +55 -24
  144. ccxt/coinmetro.py +52 -18
  145. ccxt/coinone.py +27 -10
  146. ccxt/coinsph.py +73 -27
  147. ccxt/coinspot.py +25 -9
  148. ccxt/cryptocom.py +103 -38
  149. ccxt/currencycom.py +70 -23
  150. ccxt/delta.py +90 -30
  151. ccxt/deribit.py +131 -50
  152. ccxt/digifinex.py +114 -51
  153. ccxt/exmo.py +104 -45
  154. ccxt/gate.py +298 -155
  155. ccxt/gemini.py +57 -20
  156. ccxt/hashkey.py +151 -66
  157. ccxt/hitbtc.py +156 -73
  158. ccxt/hollaex.py +76 -25
  159. ccxt/htx.py +297 -240
  160. ccxt/huobijp.py +1 -0
  161. ccxt/hyperliquid.py +94 -38
  162. ccxt/idex.py +73 -24
  163. ccxt/independentreserve.py +12 -5
  164. ccxt/indodax.py +53 -16
  165. ccxt/kraken.py +107 -35
  166. ccxt/krakenfutures.py +88 -34
  167. ccxt/kucoin.py +211 -109
  168. ccxt/kucoinfutures.py +119 -42
  169. ccxt/kuna.py +80 -39
  170. ccxt/latoken.py +70 -33
  171. ccxt/lbank.py +89 -38
  172. ccxt/luno.py +54 -19
  173. ccxt/lykke.py +54 -19
  174. ccxt/mercado.py +1 -0
  175. ccxt/mexc.py +226 -108
  176. ccxt/ndax.py +58 -19
  177. ccxt/novadax.py +67 -22
  178. ccxt/oceanex.py +58 -19
  179. ccxt/okcoin.py +81 -38
  180. ccxt/okx.py +270 -109
  181. ccxt/onetrading.py +3 -1
  182. ccxt/oxfun.py +95 -36
  183. ccxt/p2b.py +49 -23
  184. ccxt/paradex.py +75 -27
  185. ccxt/paymium.py +31 -11
  186. ccxt/phemex.py +91 -41
  187. ccxt/poloniex.py +80 -30
  188. ccxt/poloniexfutures.py +72 -30
  189. ccxt/pro/__init__.py +1 -1
  190. ccxt/pro/alpaca.py +15 -5
  191. ccxt/pro/ascendex.py +18 -6
  192. ccxt/pro/binance.py +200 -119
  193. ccxt/pro/bingx.py +44 -24
  194. ccxt/pro/bitfinex.py +13 -5
  195. ccxt/pro/bitget.py +75 -36
  196. ccxt/pro/bithumb.py +12 -4
  197. ccxt/pro/bitmart.py +44 -20
  198. ccxt/pro/bitmex.py +42 -14
  199. ccxt/pro/bitopro.py +15 -5
  200. ccxt/pro/bitrue.py +7 -3
  201. ccxt/pro/bitvavo.py +51 -17
  202. ccxt/pro/blockchaincom.py +18 -6
  203. ccxt/pro/blofin.py +36 -12
  204. ccxt/pro/bybit.py +100 -42
  205. ccxt/pro/cex.py +48 -16
  206. ccxt/pro/coinbase.py +32 -12
  207. ccxt/pro/coinbaseexchange.py +1 -1
  208. ccxt/pro/coinbaseinternational.py +34 -14
  209. ccxt/pro/coincatch.py +54 -19
  210. ccxt/pro/coincheck.py +6 -2
  211. ccxt/pro/coinex.py +40 -20
  212. ccxt/pro/coinone.py +9 -3
  213. ccxt/pro/cryptocom.py +70 -26
  214. ccxt/pro/deribit.py +36 -12
  215. ccxt/pro/exmo.py +10 -4
  216. ccxt/pro/gate.py +64 -30
  217. ccxt/pro/gemini.py +21 -7
  218. ccxt/pro/hashkey.py +26 -8
  219. ccxt/pro/hitbtc.py +61 -37
  220. ccxt/pro/hollaex.py +15 -5
  221. ccxt/pro/htx.py +39 -21
  222. ccxt/pro/hyperliquid.py +41 -14
  223. ccxt/pro/kraken.py +49 -17
  224. ccxt/pro/krakenfutures.py +47 -24
  225. ccxt/pro/kucoin.py +60 -31
  226. ccxt/pro/kucoinfutures.py +41 -19
  227. ccxt/pro/lbank.py +27 -9
  228. ccxt/pro/luno.py +3 -1
  229. ccxt/pro/mexc.py +35 -17
  230. ccxt/pro/ndax.py +12 -4
  231. ccxt/pro/okcoin.py +18 -6
  232. ccxt/pro/okx.py +76 -28
  233. ccxt/pro/onetrading.py +21 -7
  234. ccxt/pro/oxfun.py +54 -20
  235. ccxt/pro/p2b.py +23 -11
  236. ccxt/pro/paradex.py +12 -4
  237. ccxt/pro/phemex.py +31 -19
  238. ccxt/pro/poloniex.py +50 -22
  239. ccxt/pro/poloniexfutures.py +17 -7
  240. ccxt/pro/probit.py +18 -6
  241. ccxt/pro/upbit.py +25 -9
  242. ccxt/pro/vertex.py +20 -6
  243. ccxt/pro/wazirx.py +21 -7
  244. ccxt/pro/whitebit.py +25 -9
  245. ccxt/pro/woo.py +32 -12
  246. ccxt/pro/woofipro.py +35 -13
  247. ccxt/pro/xt.py +46 -26
  248. ccxt/probit.py +64 -22
  249. ccxt/timex.py +58 -19
  250. ccxt/tokocrypto.py +63 -22
  251. ccxt/tradeogre.py +7 -2
  252. ccxt/upbit.py +72 -25
  253. ccxt/vertex.py +74 -28
  254. ccxt/wavesexchange.py +29 -8
  255. ccxt/wazirx.py +51 -17
  256. ccxt/whitebit.py +105 -41
  257. ccxt/woo.py +162 -65
  258. ccxt/woofipro.py +118 -49
  259. ccxt/xt.py +150 -73
  260. ccxt/yobit.py +49 -16
  261. ccxt/zaif.py +30 -10
  262. ccxt/zonda.py +46 -16
  263. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/binance.py CHANGED
@@ -131,7 +131,7 @@ class binance(Exchange, ImplicitAPI):
131
131
  'fetchLongShortRatio': False,
132
132
  'fetchLongShortRatioHistory': True,
133
133
  'fetchMarginAdjustmentHistory': True,
134
- 'fetchMarginMode': 'emulated',
134
+ 'fetchMarginMode': True,
135
135
  'fetchMarginModes': True,
136
136
  'fetchMarketLeverageTiers': 'emulated',
137
137
  'fetchMarkets': True,
@@ -2667,9 +2667,11 @@ class binance(Exchange, ImplicitAPI):
2667
2667
  def fetch_time(self, params={}):
2668
2668
  """
2669
2669
  fetches the current integer timestamp in milliseconds from the exchange server
2670
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time # spot
2671
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time # swap
2672
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time # future
2670
+
2671
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time # spot
2672
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time # swap
2673
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time # future
2674
+
2673
2675
  :param dict [params]: extra parameters specific to the exchange API endpoint
2674
2676
  :param str [params.subType]: "linear" or "inverse"
2675
2677
  :returns int: the current integer timestamp in milliseconds from the exchange server
@@ -2691,8 +2693,10 @@ class binance(Exchange, ImplicitAPI):
2691
2693
  def fetch_currencies(self, params={}) -> Currencies:
2692
2694
  """
2693
2695
  fetches all available currencies on an exchange
2694
- :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
2695
- :see: https://developers.binance.com/docs/margin_trading/market-data/Get-All-Margin-Assets
2696
+
2697
+ https://developers.binance.com/docs/wallet/capital/all-coins-info
2698
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Margin-Assets
2699
+
2696
2700
  :param dict [params]: extra parameters specific to the exchange API endpoint
2697
2701
  :returns dict: an associative dictionary of currencies
2698
2702
  """
@@ -2899,12 +2903,14 @@ class binance(Exchange, ImplicitAPI):
2899
2903
  def fetch_markets(self, params={}) -> List[Market]:
2900
2904
  """
2901
2905
  retrieves data on all markets for binance
2902
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information # spot
2903
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information # swap
2904
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information # future
2905
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information # option
2906
- :see: https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
2907
- :see: https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
2906
+
2907
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information # spot
2908
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information # swap
2909
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information # future
2910
+ https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information # option
2911
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs # cross margin
2912
+ https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol # isolated margin
2913
+
2908
2914
  :param dict [params]: extra parameters specific to the exchange API endpoint
2909
2915
  :returns dict[]: an array of objects representing market data
2910
2916
  """
@@ -3452,14 +3458,16 @@ class binance(Exchange, ImplicitAPI):
3452
3458
  def fetch_balance(self, params={}) -> Balances:
3453
3459
  """
3454
3460
  query for balance and get the amount of funds available for trading or funds locked in orders
3455
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data # spot
3456
- :see: https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details # cross margin
3457
- :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info # isolated margin
3458
- :see: https://developers.binance.com/docs/wallet/asset/funding-wallet # funding
3459
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 # swap
3460
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance # future
3461
- :see: https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information # option
3462
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance # portfolio margin
3461
+
3462
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data # spot
3463
+ https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details # cross margin
3464
+ https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info # isolated margin
3465
+ https://developers.binance.com/docs/wallet/asset/funding-wallet # funding
3466
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 # swap
3467
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance # future
3468
+ https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information # option
3469
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance # portfolio margin
3470
+
3463
3471
  :param dict [params]: extra parameters specific to the exchange API endpoint
3464
3472
  :param str [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot' or 'papi'
3465
3473
  :param str [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
@@ -3708,10 +3716,12 @@ class binance(Exchange, ImplicitAPI):
3708
3716
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
3709
3717
  """
3710
3718
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
3711
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book # spot
3712
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book # swap
3713
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book # future
3714
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Order-Book # option
3719
+
3720
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book # spot
3721
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book # swap
3722
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book # future
3723
+ https://developers.binance.com/docs/derivatives/option/market-data/Order-Book # option
3724
+
3715
3725
  :param str symbol: unified symbol of the market to fetch the order book for
3716
3726
  :param int [limit]: the maximum amount of order book entries to return
3717
3727
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3938,7 +3948,9 @@ class binance(Exchange, ImplicitAPI):
3938
3948
  def fetch_status(self, params={}):
3939
3949
  """
3940
3950
  the latest known information on the availability of the exchange API
3941
- :see: https://developers.binance.com/docs/wallet/others/system-status
3951
+
3952
+ https://developers.binance.com/docs/wallet/others/system-status
3953
+
3942
3954
  :param dict [params]: extra parameters specific to the exchange API endpoint
3943
3955
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
3944
3956
  """
@@ -3961,11 +3973,13 @@ class binance(Exchange, ImplicitAPI):
3961
3973
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
3962
3974
  """
3963
3975
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
3964
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
3965
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics # spot
3966
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
3967
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
3968
- :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
3976
+
3977
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
3978
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics # spot
3979
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
3980
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
3981
+ https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
3982
+
3969
3983
  :param str symbol: unified symbol of the market to fetch the ticker for
3970
3984
  :param dict [params]: extra parameters specific to the exchange API endpoint
3971
3985
  :param boolean [params.rolling]:(spot only) default False, if True, uses the rolling 24 hour ticker endpoint /api/v3/ticker
@@ -3998,9 +4012,11 @@ class binance(Exchange, ImplicitAPI):
3998
4012
  def fetch_bids_asks(self, symbols: Strings = None, params={}):
3999
4013
  """
4000
4014
  fetches the bid and ask price and volume for multiple markets
4001
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker # spot
4002
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # swap
4003
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker # future
4015
+
4016
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker # spot
4017
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker # swap
4018
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker # future
4019
+
4004
4020
  :param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4005
4021
  :param dict [params]: extra parameters specific to the exchange API endpoint
4006
4022
  :param str [params.subType]: "linear" or "inverse"
@@ -4030,9 +4046,11 @@ class binance(Exchange, ImplicitAPI):
4030
4046
  def fetch_last_prices(self, symbols: Strings = None, params={}):
4031
4047
  """
4032
4048
  fetches the last price for multiple markets
4033
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker # spot
4034
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker # swap
4035
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker # future
4049
+
4050
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker # spot
4051
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker # swap
4052
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker # future
4053
+
4036
4054
  :param str[]|None symbols: unified symbols of the markets to fetch the last prices
4037
4055
  :param dict [params]: extra parameters specific to the exchange API endpoint
4038
4056
  :param str [params.subType]: "linear" or "inverse"
@@ -4129,10 +4147,12 @@ class binance(Exchange, ImplicitAPI):
4129
4147
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
4130
4148
  """
4131
4149
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
4132
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4133
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4134
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4135
- :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4150
+
4151
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics # spot
4152
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics # swap
4153
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics # future
4154
+ https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics # option
4155
+
4136
4156
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4137
4157
  :param dict [params]: extra parameters specific to the exchange API endpoint
4138
4158
  :param str [params.subType]: "linear" or "inverse"
@@ -4165,8 +4185,10 @@ class binance(Exchange, ImplicitAPI):
4165
4185
  def fetch_mark_price(self, symbol: str, params={}) -> Ticker:
4166
4186
  """
4167
4187
  fetches mark price for the market
4168
- :see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
4169
- :see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4188
+
4189
+ https://binance-docs.github.io/apidocs/futures/en/#mark-price
4190
+ https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4191
+
4170
4192
  :param str symbol: unified symbol of the market to fetch the ticker for
4171
4193
  :param dict [params]: extra parameters specific to the exchange API endpoint
4172
4194
  :param str [params.subType]: "linear" or "inverse"
@@ -4195,8 +4217,10 @@ class binance(Exchange, ImplicitAPI):
4195
4217
  def fetch_mark_prices(self, symbols: Strings = None, params={}) -> Tickers:
4196
4218
  """
4197
4219
  fetches mark prices for multiple markets
4198
- :see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
4199
- :see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4220
+
4221
+ https://binance-docs.github.io/apidocs/futures/en/#mark-price
4222
+ https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
4223
+
4200
4224
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4201
4225
  :param dict [params]: extra parameters specific to the exchange API endpoint
4202
4226
  :param str [params.subType]: "linear" or "inverse"
@@ -4284,16 +4308,18 @@ class binance(Exchange, ImplicitAPI):
4284
4308
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
4285
4309
  """
4286
4310
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
4287
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4288
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4289
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4290
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4291
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4292
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4293
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4294
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4295
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4296
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4311
+
4312
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
4313
+ https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
4314
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
4315
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
4316
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
4317
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
4318
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
4319
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
4320
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
4321
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
4322
+
4297
4323
  :param str symbol: unified symbol of the market to fetch OHLCV data for
4298
4324
  :param str timeframe: the length of time each candle represents
4299
4325
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -4657,19 +4683,23 @@ class binance(Exchange, ImplicitAPI):
4657
4683
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
4658
4684
  """
4659
4685
  get the list of most recent trades for a particular symbol
4660
- * Default fetchTradesMethod
4661
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list # publicGetAggTrades(spot)
4662
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # fapiPublicGetAggTrades(swap)
4663
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4664
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List # eapiPublicGetTrades(option)
4665
- * Other fetchTradesMethod
4666
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list # publicGetTrades(spot)
4667
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List # fapiPublicGetTrades(swap)
4668
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List # dapiPublicGetTrades(future)
4669
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup # publicGetHistoricalTrades(spot)
4670
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup # fapiPublicGetHistoricalTrades(swap)
4671
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4672
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup # eapiPublicGetHistoricalTrades(option)
4686
+ Default fetchTradesMethod
4687
+
4688
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list # publicGetAggTrades(spot)
4689
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List # fapiPublicGetAggTrades(swap)
4690
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List # dapiPublicGetAggTrades(future)
4691
+ https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List # eapiPublicGetTrades(option)
4692
+
4693
+ Other fetchTradesMethod
4694
+
4695
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list # publicGetTrades(spot)
4696
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List # fapiPublicGetTrades(swap)
4697
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List # dapiPublicGetTrades(future)
4698
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup # publicGetHistoricalTrades(spot)
4699
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup # fapiPublicGetHistoricalTrades(swap)
4700
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup # dapiPublicGetHistoricalTrades(future)
4701
+ https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup # eapiPublicGetHistoricalTrades(option)
4702
+
4673
4703
  :param str symbol: unified symbol of the market to fetch trades for
4674
4704
  :param int [since]: only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
4675
4705
  :param int [limit]: default 500, max 1000
@@ -4677,8 +4707,8 @@ class binance(Exchange, ImplicitAPI):
4677
4707
  :param int [params.until]: only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
4678
4708
  :param int [params.fetchTradesMethod]: 'publicGetAggTrades'(spot default), 'fapiPublicGetAggTrades'(swap default), 'dapiPublicGetAggTrades'(future default), 'eapiPublicGetTrades'(option default), 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', 'publicGetHistoricalTrades', 'fapiPublicGetHistoricalTrades', 'dapiPublicGetHistoricalTrades', 'eapiPublicGetHistoricalTrades'
4679
4709
  :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)
4680
- *
4681
- * EXCHANGE SPECIFIC PARAMETERS
4710
+
4711
+ EXCHANGE SPECIFIC PARAMETERS
4682
4712
  :param int [params.fromId]: trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
4683
4713
  :returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
4684
4714
  """
@@ -4789,17 +4819,19 @@ class binance(Exchange, ImplicitAPI):
4789
4819
 
4790
4820
  def edit_spot_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
4791
4821
  """
4792
- * @ignore
4822
+ @ignore
4793
4823
  edit a trade order
4794
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
4824
+
4825
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
4826
+
4795
4827
  :param str id: cancel order id
4796
4828
  :param str symbol: unified symbol of the market to create an order in
4797
4829
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
4798
4830
  :param str side: 'buy' or 'sell'
4799
4831
  :param float amount: how much of currency you want to trade in units of base currency
4800
4832
  :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4801
- :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4802
4833
  :param dict [params]: extra parameters specific to the exchange API endpoint
4834
+ :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
4803
4835
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
4804
4836
  """
4805
4837
  self.load_markets()
@@ -4852,7 +4884,7 @@ class binance(Exchange, ImplicitAPI):
4852
4884
 
4853
4885
  def edit_spot_order_request(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
4854
4886
  """
4855
- * @ignore
4887
+ @ignore
4856
4888
  helper function to build request for editSpotOrder
4857
4889
  :param str id: order id to be edited
4858
4890
  :param str symbol: unified symbol of the market to create an order in
@@ -4976,8 +5008,10 @@ class binance(Exchange, ImplicitAPI):
4976
5008
  def edit_contract_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
4977
5009
  """
4978
5010
  edit a trade order
4979
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
4980
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5011
+
5012
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5013
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5014
+
4981
5015
  :param str id: cancel order id
4982
5016
  :param str symbol: unified symbol of the market to create an order in
4983
5017
  :param str type: 'market' or 'limit'
@@ -5027,9 +5061,11 @@ class binance(Exchange, ImplicitAPI):
5027
5061
  def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
5028
5062
  """
5029
5063
  edit a trade order
5030
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5031
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5032
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5064
+
5065
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
5066
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
5067
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
5068
+
5033
5069
  :param str id: cancel order id
5034
5070
  :param str symbol: unified symbol of the market to create an order in
5035
5071
  :param str type: 'market' or 'limit'
@@ -5623,10 +5659,13 @@ class binance(Exchange, ImplicitAPI):
5623
5659
  def create_orders(self, orders: List[OrderRequest], params={}):
5624
5660
  """
5625
5661
  *contract only* create a list of trade orders
5626
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
5627
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
5628
- :see: https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
5662
+
5663
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
5664
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
5665
+ https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
5666
+
5629
5667
  :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
5668
+ :param dict [params]: extra parameters specific to the exchange API endpoint
5630
5669
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
5631
5670
  """
5632
5671
  self.load_markets()
@@ -5697,18 +5736,20 @@ class binance(Exchange, ImplicitAPI):
5697
5736
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
5698
5737
  """
5699
5738
  create a trade order
5700
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5701
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-trade
5702
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
5703
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
5704
- :see: https://developers.binance.com/docs/derivatives/option/trade/New-Order
5705
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
5706
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
5707
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
5708
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
5709
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
5710
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order
5711
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order
5739
+
5740
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
5741
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-trade
5742
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
5743
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
5744
+ https://developers.binance.com/docs/derivatives/option/trade/New-Order
5745
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
5746
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
5747
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
5748
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
5749
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
5750
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order
5751
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order
5752
+
5712
5753
  :param str symbol: unified symbol of the market to create an order in
5713
5754
  :param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
5714
5755
  :param str side: 'buy' or 'sell'
@@ -5789,7 +5830,7 @@ class binance(Exchange, ImplicitAPI):
5789
5830
 
5790
5831
  def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
5791
5832
  """
5792
- * @ignore
5833
+ @ignore
5793
5834
  helper function to build the request
5794
5835
  :param str symbol: unified symbol of the market to create an order in
5795
5836
  :param str type: 'market' or 'limit'
@@ -6038,7 +6079,9 @@ class binance(Exchange, ImplicitAPI):
6038
6079
  def create_market_order_with_cost(self, symbol: str, side: OrderSide, cost: float, params={}):
6039
6080
  """
6040
6081
  create a market order by providing the symbol, side and cost
6041
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6082
+
6083
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6084
+
6042
6085
  :param str symbol: unified symbol of the market to create an order in
6043
6086
  :param str side: 'buy' or 'sell'
6044
6087
  :param float cost: how much you want to trade in units of the quote currency
@@ -6055,7 +6098,9 @@ class binance(Exchange, ImplicitAPI):
6055
6098
  def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
6056
6099
  """
6057
6100
  create a market buy order by providing the symbol and cost
6058
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6101
+
6102
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6103
+
6059
6104
  :param str symbol: unified symbol of the market to create an order in
6060
6105
  :param float cost: how much you want to trade in units of the quote currency
6061
6106
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6071,7 +6116,9 @@ class binance(Exchange, ImplicitAPI):
6071
6116
  def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
6072
6117
  """
6073
6118
  create a market sell order by providing the symbol and cost
6074
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6119
+
6120
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
6121
+
6075
6122
  :param str symbol: unified symbol of the market to create an order in
6076
6123
  :param float cost: how much you want to trade in units of the quote currency
6077
6124
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6087,13 +6134,15 @@ class binance(Exchange, ImplicitAPI):
6087
6134
  def fetch_order(self, id: str, symbol: Str = None, params={}):
6088
6135
  """
6089
6136
  fetches information on an order made by the user
6090
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6091
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6092
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6093
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6094
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6095
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
6096
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order
6137
+
6138
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
6139
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
6140
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
6141
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
6142
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
6143
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
6144
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order
6145
+
6097
6146
  :param str id: the order id
6098
6147
  :param str symbol: unified symbol of the market the order was made in
6099
6148
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6150,15 +6199,17 @@ class binance(Exchange, ImplicitAPI):
6150
6199
  def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6151
6200
  """
6152
6201
  fetches information on multiple orders made by the user
6153
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6154
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6155
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6156
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6157
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6158
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6159
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6160
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6161
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6202
+
6203
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6204
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6205
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6206
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6207
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6208
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6209
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6210
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6211
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6212
+
6162
6213
  :param str symbol: unified market symbol of the market orders were made in
6163
6214
  :param int [since]: the earliest time in ms to fetch orders for
6164
6215
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6407,15 +6458,17 @@ class binance(Exchange, ImplicitAPI):
6407
6458
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6408
6459
  """
6409
6460
  fetch all unfilled currently open orders
6410
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
6411
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
6412
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
6413
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
6414
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
6415
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
6416
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders
6417
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders
6418
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders
6461
+
6462
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
6463
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
6464
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
6465
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
6466
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
6467
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
6468
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders
6469
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders
6470
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders
6471
+
6419
6472
  :param str symbol: unified market symbol
6420
6473
  :param int [since]: the earliest time in ms to fetch open orders for
6421
6474
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -6488,12 +6541,14 @@ class binance(Exchange, ImplicitAPI):
6488
6541
  def fetch_open_order(self, id: str, symbol: Str = None, params={}):
6489
6542
  """
6490
6543
  fetch an open order by the id
6491
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
6492
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
6493
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
6494
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
6495
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
6496
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order
6544
+
6545
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
6546
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
6547
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
6548
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
6549
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
6550
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order
6551
+
6497
6552
  :param str id: order id
6498
6553
  :param str symbol: unified market symbol
6499
6554
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6689,15 +6744,17 @@ class binance(Exchange, ImplicitAPI):
6689
6744
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6690
6745
  """
6691
6746
  fetches information on multiple closed orders made by the user
6692
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6693
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6694
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6695
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6696
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6697
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6698
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6699
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6700
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6747
+
6748
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6749
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6750
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6751
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6752
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6753
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6754
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6755
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6756
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6757
+
6701
6758
  :param str symbol: unified market symbol of the market orders were made in
6702
6759
  :param int [since]: the earliest time in ms to fetch orders for
6703
6760
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6716,15 +6773,17 @@ class binance(Exchange, ImplicitAPI):
6716
6773
  def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
6717
6774
  """
6718
6775
  fetches information on multiple canceled orders made by the user
6719
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6720
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6721
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6722
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6723
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6724
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6725
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6726
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6727
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6776
+
6777
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6778
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6779
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6780
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6781
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6782
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6783
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6784
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6785
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6786
+
6728
6787
  :param str symbol: unified market symbol of the market the orders were made in
6729
6788
  :param int [since]: the earliest time in ms to fetch orders for
6730
6789
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6743,15 +6802,17 @@ class binance(Exchange, ImplicitAPI):
6743
6802
  def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
6744
6803
  """
6745
6804
  fetches information on multiple canceled orders made by the user
6746
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6747
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6748
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6749
- :see: https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6750
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6751
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6752
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6753
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6754
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6805
+
6806
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
6807
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
6808
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
6809
+ https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
6810
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
6811
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
6812
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
6813
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
6814
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
6815
+
6755
6816
  :param str symbol: unified market symbol of the market the orders were made in
6756
6817
  :param int [since]: the earliest time in ms to fetch orders for
6757
6818
  :param int [limit]: the maximum number of order structures to retrieve
@@ -6773,16 +6834,18 @@ class binance(Exchange, ImplicitAPI):
6773
6834
  def cancel_order(self, id: str, symbol: Str = None, params={}):
6774
6835
  """
6775
6836
  cancels an open order
6776
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
6777
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
6778
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
6779
- :see: https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
6780
- :see: https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
6781
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
6782
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order
6783
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order
6784
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order
6785
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order
6837
+
6838
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
6839
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
6840
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
6841
+ https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
6842
+ https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
6843
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
6844
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order
6845
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order
6846
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order
6847
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order
6848
+
6786
6849
  :param str id: order id
6787
6850
  :param str symbol: unified symbol of the market the order was made in
6788
6851
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -6852,15 +6915,17 @@ class binance(Exchange, ImplicitAPI):
6852
6915
  def cancel_all_orders(self, symbol: Str = None, params={}):
6853
6916
  """
6854
6917
  cancel all open orders in a market
6855
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
6856
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
6857
- :see: https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
6858
- :see: https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
6859
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
6860
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders
6861
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders
6862
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders
6863
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol
6918
+
6919
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
6920
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
6921
+ https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
6922
+ https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
6923
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
6924
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders
6925
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders
6926
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders
6927
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol
6928
+
6864
6929
  :param str symbol: unified market symbol of the market to cancel orders in
6865
6930
  :param dict [params]: extra parameters specific to the exchange API endpoint
6866
6931
  :param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
@@ -7007,13 +7072,15 @@ class binance(Exchange, ImplicitAPI):
7007
7072
  def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
7008
7073
  """
7009
7074
  cancel multiple orders
7010
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7011
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7075
+
7076
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
7077
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
7078
+
7012
7079
  :param str[] ids: order ids
7013
7080
  :param str [symbol]: unified market symbol
7014
7081
  :param dict [params]: extra parameters specific to the exchange API endpoint
7015
- *
7016
- * EXCHANGE SPECIFIC PARAMETERS
7082
+
7083
+ EXCHANGE SPECIFIC PARAMETERS
7017
7084
  :param str[] [params.origClientOrderIdList]: max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
7018
7085
  :param int[] [params.recvWindow]:
7019
7086
  :returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -7073,10 +7140,12 @@ class binance(Exchange, ImplicitAPI):
7073
7140
  def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
7074
7141
  """
7075
7142
  fetch all the trades made from a single order
7076
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7077
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7078
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7079
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7143
+
7144
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7145
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7146
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7147
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7148
+
7080
7149
  :param str id: order id
7081
7150
  :param str symbol: unified market symbol
7082
7151
  :param int [since]: the earliest time in ms to fetch trades for
@@ -7100,13 +7169,15 @@ class binance(Exchange, ImplicitAPI):
7100
7169
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
7101
7170
  """
7102
7171
  fetch all trades made by the user
7103
- :see: https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7104
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7105
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7106
- :see: https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7107
- :see: https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
7108
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
7109
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List
7172
+
7173
+ https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
7174
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
7175
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
7176
+ https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
7177
+ https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
7178
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
7179
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List
7180
+
7110
7181
  :param str symbol: unified market symbol
7111
7182
  :param int [since]: the earliest time in ms to fetch trades for
7112
7183
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -7311,7 +7382,9 @@ class binance(Exchange, ImplicitAPI):
7311
7382
  def fetch_my_dust_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
7312
7383
  """
7313
7384
  fetch all dust trades made by the user
7314
- :see: https://developers.binance.com/docs/wallet/asset/dust-log
7385
+
7386
+ https://developers.binance.com/docs/wallet/asset/dust-log
7387
+
7315
7388
  :param str symbol: not used by binance fetchMyDustTrades()
7316
7389
  :param int [since]: the earliest time in ms to fetch my dust trades for
7317
7390
  :param int [limit]: the maximum number of dust trades to retrieve
@@ -7445,8 +7518,10 @@ class binance(Exchange, ImplicitAPI):
7445
7518
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
7446
7519
  """
7447
7520
  fetch all deposits made to an account
7448
- :see: https://developers.binance.com/docs/wallet/capital/deposite-history
7449
- :see: https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7521
+
7522
+ https://developers.binance.com/docs/wallet/capital/deposite-history
7523
+ https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7524
+
7450
7525
  :param str code: unified currency code
7451
7526
  :param int [since]: the earliest time in ms to fetch deposits for
7452
7527
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -7545,8 +7620,10 @@ class binance(Exchange, ImplicitAPI):
7545
7620
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
7546
7621
  """
7547
7622
  fetch all withdrawals made from an account
7548
- :see: https://developers.binance.com/docs/wallet/capital/withdraw-history
7549
- :see: https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7623
+
7624
+ https://developers.binance.com/docs/wallet/capital/withdraw-history
7625
+ https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
7626
+
7550
7627
  :param str code: unified currency code
7551
7628
  :param int [since]: the earliest time in ms to fetch withdrawals for
7552
7629
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -7959,7 +8036,9 @@ class binance(Exchange, ImplicitAPI):
7959
8036
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
7960
8037
  """
7961
8038
  transfer currency internally between wallets on the same account
7962
- :see: https://developers.binance.com/docs/wallet/asset/user-universal-transfer
8039
+
8040
+ https://developers.binance.com/docs/wallet/asset/user-universal-transfer
8041
+
7963
8042
  :param str code: unified currency code
7964
8043
  :param float amount: amount to transfer
7965
8044
  :param str fromAccount: account to transfer from
@@ -8044,7 +8123,9 @@ class binance(Exchange, ImplicitAPI):
8044
8123
  def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
8045
8124
  """
8046
8125
  fetch a history of internal transfers made on an account
8047
- :see: https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer
8126
+
8127
+ https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer
8128
+
8048
8129
  :param str code: unified currency code of the currency transferred
8049
8130
  :param int [since]: the earliest time in ms to fetch transfers for
8050
8131
  :param int [limit]: the maximum number of transfers structures to retrieve
@@ -8176,9 +8257,12 @@ class binance(Exchange, ImplicitAPI):
8176
8257
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
8177
8258
  """
8178
8259
  fetch the deposit address for a currency associated with self account
8179
- :see: https://developers.binance.com/docs/wallet/capital/deposite-address
8260
+
8261
+ https://developers.binance.com/docs/wallet/capital/deposite-address
8262
+
8180
8263
  :param str code: unified currency code
8181
8264
  :param dict [params]: extra parameters specific to the exchange API endpoint
8265
+ :param str [params.network]: network for fetch deposit address
8182
8266
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
8183
8267
  """
8184
8268
  self.load_markets()
@@ -8260,9 +8344,11 @@ class binance(Exchange, ImplicitAPI):
8260
8344
 
8261
8345
  def fetch_transaction_fees(self, codes: Strings = None, params={}):
8262
8346
  """
8263
- * @deprecated
8347
+ @deprecated
8264
8348
  please use fetchDepositWithdrawFees instead
8265
- :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
8349
+
8350
+ https://developers.binance.com/docs/wallet/capital/all-coins-info
8351
+
8266
8352
  :param str[]|None codes: not used by binance fetchTransactionFees()
8267
8353
  :param dict [params]: extra parameters specific to the exchange API endpoint
8268
8354
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -8372,7 +8458,9 @@ class binance(Exchange, ImplicitAPI):
8372
8458
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
8373
8459
  """
8374
8460
  fetch deposit and withdraw fees
8375
- :see: https://developers.binance.com/docs/wallet/capital/all-coins-info
8461
+
8462
+ https://developers.binance.com/docs/wallet/capital/all-coins-info
8463
+
8376
8464
  :param str[]|None codes: not used by binance fetchDepositWithdrawFees()
8377
8465
  :param dict [params]: extra parameters specific to the exchange API endpoint
8378
8466
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -8492,7 +8580,9 @@ class binance(Exchange, ImplicitAPI):
8492
8580
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
8493
8581
  """
8494
8582
  make a withdrawal
8495
- :see: https://developers.binance.com/docs/wallet/capital/withdraw
8583
+
8584
+ https://developers.binance.com/docs/wallet/capital/withdraw
8585
+
8496
8586
  :param str code: unified currency code
8497
8587
  :param float amount: the amount to withdraw
8498
8588
  :param str address: the address to withdraw to
@@ -8555,11 +8645,13 @@ class binance(Exchange, ImplicitAPI):
8555
8645
  def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
8556
8646
  """
8557
8647
  fetch the trading fees for a market
8558
- :see: https://developers.binance.com/docs/wallet/asset/trade-fee
8559
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
8560
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
8561
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
8562
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
8648
+
8649
+ https://developers.binance.com/docs/wallet/asset/trade-fee
8650
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
8651
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
8652
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
8653
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
8654
+
8563
8655
  :param str symbol: unified market symbol
8564
8656
  :param dict [params]: extra parameters specific to the exchange API endpoint
8565
8657
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch trading fees in a portfolio margin account
@@ -8618,10 +8710,12 @@ class binance(Exchange, ImplicitAPI):
8618
8710
  def fetch_trading_fees(self, params={}) -> TradingFees:
8619
8711
  """
8620
8712
  fetch the trading fees for multiple markets
8621
- :see: https://developers.binance.com/docs/wallet/asset/trade-fee
8622
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
8623
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
8624
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
8713
+
8714
+ https://developers.binance.com/docs/wallet/asset/trade-fee
8715
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
8716
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
8717
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
8718
+
8625
8719
  :param dict [params]: extra parameters specific to the exchange API endpoint
8626
8720
  :param str [params.subType]: "linear" or "inverse"
8627
8721
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
@@ -8784,9 +8878,11 @@ class binance(Exchange, ImplicitAPI):
8784
8878
 
8785
8879
  def futures_transfer(self, code: str, amount, type, params={}):
8786
8880
  """
8787
- * @ignore
8881
+ @ignore
8788
8882
  transfer between futures account
8789
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/New-Future-Account-Transfer
8883
+
8884
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/New-Future-Account-Transfer
8885
+
8790
8886
  :param str code: unified currency code
8791
8887
  :param float amount: the amount to transfer
8792
8888
  :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
@@ -8814,8 +8910,10 @@ class binance(Exchange, ImplicitAPI):
8814
8910
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
8815
8911
  """
8816
8912
  fetch the current funding rate
8817
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
8818
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
8913
+
8914
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
8915
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
8916
+
8819
8917
  :param str symbol: unified market symbol
8820
8918
  :param dict [params]: extra parameters specific to the exchange API endpoint
8821
8919
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -8851,8 +8949,10 @@ class binance(Exchange, ImplicitAPI):
8851
8949
  def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
8852
8950
  """
8853
8951
  fetches historical funding rate prices
8854
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
8855
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
8952
+
8953
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
8954
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
8955
+
8856
8956
  :param str symbol: unified symbol of the market to fetch the funding rate history for
8857
8957
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
8858
8958
  :param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
@@ -8918,8 +9018,10 @@ class binance(Exchange, ImplicitAPI):
8918
9018
  def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
8919
9019
  """
8920
9020
  fetch the funding rate for multiple markets
8921
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
8922
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9021
+
9022
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
9023
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
9024
+
8923
9025
  :param str[]|None symbols: list of unified market symbols
8924
9026
  :param dict [params]: extra parameters specific to the exchange API endpoint
8925
9027
  :param str [params.subType]: "linear" or "inverse"
@@ -9537,10 +9639,12 @@ class binance(Exchange, ImplicitAPI):
9537
9639
  def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
9538
9640
  """
9539
9641
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
9540
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
9541
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
9542
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
9543
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
9642
+
9643
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
9644
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
9645
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
9646
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
9647
+
9544
9648
  :param str[]|None symbols: list of unified market symbols
9545
9649
  :param dict [params]: extra parameters specific to the exchange API endpoint
9546
9650
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch the leverage tiers for a portfolio margin account
@@ -9609,7 +9713,7 @@ class binance(Exchange, ImplicitAPI):
9609
9713
 
9610
9714
  def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
9611
9715
  """
9612
- * @ignore
9716
+ @ignore
9613
9717
  :param dict info: Exchange response for 1 market
9614
9718
  :param dict market: CCXT market
9615
9719
  """
@@ -9637,6 +9741,7 @@ class binance(Exchange, ImplicitAPI):
9637
9741
  bracket = brackets[j]
9638
9742
  tiers.append({
9639
9743
  'tier': self.safe_number(bracket, 'bracket'),
9744
+ 'symbol': self.safe_symbol(marketId, market),
9640
9745
  'currency': market['quote'],
9641
9746
  'minNotional': self.safe_number_2(bracket, 'notionalFloor', 'qtyFloor'),
9642
9747
  'maxNotional': self.safe_number_2(bracket, 'notionalCap', 'qtyCap'),
@@ -9649,7 +9754,9 @@ class binance(Exchange, ImplicitAPI):
9649
9754
  def fetch_position(self, symbol: str, params={}):
9650
9755
  """
9651
9756
  fetch data on an open position
9652
- :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9757
+
9758
+ https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9759
+
9653
9760
  :param str symbol: unified market symbol of the market the position is held in
9654
9761
  :param dict [params]: extra parameters specific to the exchange API endpoint
9655
9762
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -9690,7 +9797,9 @@ class binance(Exchange, ImplicitAPI):
9690
9797
  def fetch_option_positions(self, symbols: Strings = None, params={}):
9691
9798
  """
9692
9799
  fetch data on open options positions
9693
- :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9800
+
9801
+ https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9802
+
9694
9803
  :param str[]|None symbols: list of unified market symbols
9695
9804
  :param dict [params]: extra parameters specific to the exchange API endpoint
9696
9805
  :returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
@@ -9798,14 +9907,17 @@ class binance(Exchange, ImplicitAPI):
9798
9907
  def fetch_positions(self, symbols: Strings = None, params={}):
9799
9908
  """
9800
9909
  fetch all open positions
9801
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9802
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9803
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9804
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9805
- :see: https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9910
+
9911
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9912
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9913
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9914
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9915
+ https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
9916
+
9806
9917
  :param str[] [symbols]: list of unified market symbols
9807
9918
  :param dict [params]: extra parameters specific to the exchange API endpoint
9808
- :param str [method]: method name to call, "positionRisk", "account" or "option", default is "positionRisk"
9919
+ :param dict [params.params]: extra parameters specific to the exchange API endpoint
9920
+ :param str [params.method]: method name to call, "positionRisk", "account" or "option", default is "positionRisk"
9809
9921
  :param bool [params.useV2]: set to True if you want to use the obsolete endpoint, where some more additional fields were provided
9810
9922
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
9811
9923
  """
@@ -9828,13 +9940,15 @@ class binance(Exchange, ImplicitAPI):
9828
9940
 
9829
9941
  def fetch_account_positions(self, symbols: Strings = None, params={}):
9830
9942
  """
9831
- * @ignore
9943
+ @ignore
9832
9944
  fetch account positions
9833
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9834
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9835
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9836
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9837
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
9945
+
9946
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
9947
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
9948
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9949
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9950
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
9951
+
9838
9952
  :param str[] [symbols]: list of unified market symbols
9839
9953
  :param dict [params]: extra parameters specific to the exchange API endpoint
9840
9954
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch positions in a portfolio margin account
@@ -9947,13 +10061,15 @@ class binance(Exchange, ImplicitAPI):
9947
10061
 
9948
10062
  def fetch_positions_risk(self, symbols: Strings = None, params={}):
9949
10063
  """
9950
- * @ignore
10064
+ @ignore
9951
10065
  fetch positions risk
9952
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
9953
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
9954
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
9955
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
9956
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
10066
+
10067
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
10068
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
10069
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
10070
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
10071
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
10072
+
9957
10073
  :param str[]|None symbols: list of unified market symbols
9958
10074
  :param dict [params]: extra parameters specific to the exchange API endpoint
9959
10075
  :param boolean [params.portfolioMargin]: set to True if you would like to fetch positions for a portfolio margin account
@@ -10113,10 +10229,12 @@ class binance(Exchange, ImplicitAPI):
10113
10229
  def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
10114
10230
  """
10115
10231
  fetch the history of funding payments paid and received on self account
10116
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10117
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10118
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10119
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10232
+
10233
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10234
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10235
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10236
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10237
+
10120
10238
  :param str symbol: unified market symbol
10121
10239
  :param int [since]: the earliest time in ms to fetch funding history for
10122
10240
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -10166,10 +10284,12 @@ class binance(Exchange, ImplicitAPI):
10166
10284
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
10167
10285
  """
10168
10286
  set the level of leverage for a market
10169
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
10170
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
10171
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
10172
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
10287
+
10288
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
10289
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
10290
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
10291
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
10292
+
10173
10293
  :param float leverage: the rate of leverage
10174
10294
  :param str symbol: unified market symbol
10175
10295
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10208,8 +10328,10 @@ class binance(Exchange, ImplicitAPI):
10208
10328
  def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
10209
10329
  """
10210
10330
  set margin mode to 'cross' or 'isolated'
10211
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
10212
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
10331
+
10332
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
10333
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
10334
+
10213
10335
  :param str marginMode: 'cross' or 'isolated'
10214
10336
  :param str symbol: unified market symbol
10215
10337
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10262,10 +10384,12 @@ class binance(Exchange, ImplicitAPI):
10262
10384
  def set_position_mode(self, hedged: bool, symbol: Str = None, params={}):
10263
10385
  """
10264
10386
  set hedged to True or False for a market
10265
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
10266
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
10267
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
10268
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
10387
+
10388
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
10389
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
10390
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
10391
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
10392
+
10269
10393
  :param bool hedged: set to True to use dualSidePosition
10270
10394
  :param str symbol: not used by binance setPositionMode()
10271
10395
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10312,11 +10436,13 @@ class binance(Exchange, ImplicitAPI):
10312
10436
  def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
10313
10437
  """
10314
10438
  fetch the set leverage for all markets
10315
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10316
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10317
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
10318
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
10319
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
10439
+
10440
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
10441
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
10442
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
10443
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
10444
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
10445
+
10320
10446
  :param str[] [symbols]: a list of unified market symbols
10321
10447
  :param dict [params]: extra parameters specific to the exchange API endpoint
10322
10448
  :param str [params.subType]: "linear" or "inverse"
@@ -10379,7 +10505,9 @@ class binance(Exchange, ImplicitAPI):
10379
10505
  def fetch_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
10380
10506
  """
10381
10507
  fetches historical settlement records
10382
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records
10508
+
10509
+ https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records
10510
+
10383
10511
  :param str symbol: unified market symbol of the settlement history
10384
10512
  :param int [since]: timestamp in ms
10385
10513
  :param int [limit]: number of records, default 100, max 100
@@ -10419,7 +10547,9 @@ class binance(Exchange, ImplicitAPI):
10419
10547
  def fetch_my_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
10420
10548
  """
10421
10549
  fetches historical settlement records of the user
10422
- :see: https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record
10550
+
10551
+ https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record
10552
+
10423
10553
  :param str symbol: unified market symbol of the settlement history
10424
10554
  :param int [since]: timestamp in ms
10425
10555
  :param int [limit]: number of records
@@ -10548,7 +10678,9 @@ class binance(Exchange, ImplicitAPI):
10548
10678
  def fetch_ledger_entry(self, id: str, code: Str = None, params={}) -> LedgerEntry:
10549
10679
  """
10550
10680
  fetch the history of changes, actions done by the user or operations that altered the balance of the user
10551
- :see: https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
10681
+
10682
+ https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
10683
+
10552
10684
  :param str id: the identification number of the ledger entry
10553
10685
  :param str code: unified currency code
10554
10686
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -10583,11 +10715,13 @@ class binance(Exchange, ImplicitAPI):
10583
10715
  def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
10584
10716
  """
10585
10717
  fetch the history of changes, actions done by the user or operations that altered the balance of the user
10586
- :see: https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
10587
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10588
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10589
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10590
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10718
+
10719
+ https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
10720
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
10721
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
10722
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
10723
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
10724
+
10591
10725
  :param str [code]: unified currency code
10592
10726
  :param int [since]: timestamp in ms of the earliest ledger entry
10593
10727
  :param int [limit]: max number of ledger entries to return
@@ -11033,8 +11167,10 @@ class binance(Exchange, ImplicitAPI):
11033
11167
  def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
11034
11168
  """
11035
11169
  remove margin from a position
11036
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11037
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11170
+
11171
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11172
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11173
+
11038
11174
  :param str symbol: unified market symbol
11039
11175
  :param float amount: the amount of margin to remove
11040
11176
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11045,8 +11181,10 @@ class binance(Exchange, ImplicitAPI):
11045
11181
  def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
11046
11182
  """
11047
11183
  add margin
11048
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11049
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11184
+
11185
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
11186
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
11187
+
11050
11188
  :param str symbol: unified market symbol
11051
11189
  :param float amount: amount of margin to add
11052
11190
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11057,7 +11195,9 @@ class binance(Exchange, ImplicitAPI):
11057
11195
  def fetch_cross_borrow_rate(self, code: str, params={}) -> CrossBorrowRate:
11058
11196
  """
11059
11197
  fetch the rate of interest to borrow a currency for margin trading
11060
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
11198
+
11199
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
11200
+
11061
11201
  :param str code: unified currency code
11062
11202
  :param dict [params]: extra parameters specific to the exchange API endpoint
11063
11203
  :returns dict: a `borrow rate structure <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
@@ -11085,11 +11225,13 @@ class binance(Exchange, ImplicitAPI):
11085
11225
  def fetch_isolated_borrow_rate(self, symbol: str, params={}) -> IsolatedBorrowRate:
11086
11226
  """
11087
11227
  fetch the rate of interest to borrow a currency for margin trading
11088
- :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
11228
+
11229
+ https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
11230
+
11089
11231
  :param str symbol: unified market symbol
11090
11232
  :param dict [params]: extra parameters specific to the exchange API endpoint
11091
- *
11092
- * EXCHANGE SPECIFIC PARAMETERS
11233
+
11234
+ EXCHANGE SPECIFIC PARAMETERS
11093
11235
  :param dict [params.vipLevel]: user's current specific margin data will be returned if viplevel is omitted
11094
11236
  :returns dict: an `isolated borrow rate structure <https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure>`
11095
11237
  """
@@ -11102,11 +11244,13 @@ class binance(Exchange, ImplicitAPI):
11102
11244
  def fetch_isolated_borrow_rates(self, params={}) -> IsolatedBorrowRates:
11103
11245
  """
11104
11246
  fetch the borrow interest rates of all currencies
11105
- :see: https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
11247
+
11248
+ https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
11249
+
11106
11250
  :param dict [params]: extra parameters specific to the exchange API endpoint
11107
11251
  :param dict [params.symbol]: unified market symbol
11108
- *
11109
- * EXCHANGE SPECIFIC PARAMETERS
11252
+
11253
+ EXCHANGE SPECIFIC PARAMETERS
11110
11254
  :param dict [params.vipLevel]: user's current specific margin data will be returned if viplevel is omitted
11111
11255
  :returns dict: a `borrow rate structure <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
11112
11256
  """
@@ -11144,7 +11288,9 @@ class binance(Exchange, ImplicitAPI):
11144
11288
  def fetch_borrow_rate_history(self, code: str, since: Int = None, limit: Int = None, params={}):
11145
11289
  """
11146
11290
  retrieves a history of a currencies borrow interest rate at specific time slots
11147
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
11291
+
11292
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
11293
+
11148
11294
  :param str code: unified currency code
11149
11295
  :param int [since]: timestamp for the earliest borrow rate
11150
11296
  :param int [limit]: the maximum number of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>` to retrieve
@@ -11240,7 +11386,9 @@ class binance(Exchange, ImplicitAPI):
11240
11386
  def create_gift_code(self, code: str, amount, params={}):
11241
11387
  """
11242
11388
  create gift code
11243
- :see: https://developers.binance.com/docs/gift_card/market-data/Create-a-single-token-gift-card
11389
+
11390
+ https://developers.binance.com/docs/gift_card/market-data/Create-a-single-token-gift-card
11391
+
11244
11392
  :param str code: gift code
11245
11393
  :param float amount: amount of currency for the gift
11246
11394
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11276,7 +11424,9 @@ class binance(Exchange, ImplicitAPI):
11276
11424
  def redeem_gift_code(self, giftcardCode, params={}):
11277
11425
  """
11278
11426
  redeem gift code
11279
- :see: https://developers.binance.com/docs/gift_card/market-data/Redeem-a-Binance-Gift-Card
11427
+
11428
+ https://developers.binance.com/docs/gift_card/market-data/Redeem-a-Binance-Gift-Card
11429
+
11280
11430
  :param str giftcardCode:
11281
11431
  :param dict [params]: extra parameters specific to the exchange API endpoint
11282
11432
  :returns dict: response from the exchange
@@ -11301,7 +11451,9 @@ class binance(Exchange, ImplicitAPI):
11301
11451
  def verify_gift_code(self, id: str, params={}):
11302
11452
  """
11303
11453
  verify gift code
11304
- :see: https://developers.binance.com/docs/gift_card/market-data/Verify-Binance-Gift-Card-by-Gift-Card-Number
11454
+
11455
+ https://developers.binance.com/docs/gift_card/market-data/Verify-Binance-Gift-Card-by-Gift-Card-Number
11456
+
11305
11457
  :param str id: reference number id
11306
11458
  :param dict [params]: extra parameters specific to the exchange API endpoint
11307
11459
  :returns dict: response from the exchange
@@ -11323,8 +11475,10 @@ class binance(Exchange, ImplicitAPI):
11323
11475
  def fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[BorrowInterest]:
11324
11476
  """
11325
11477
  fetch the interest owed by the user for borrowing currency for margin trading
11326
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History
11327
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History
11478
+
11479
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History
11480
+ https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History
11481
+
11328
11482
  :param str [code]: unified currency code
11329
11483
  :param str [symbol]: unified market symbol when fetch interest in isolated markets
11330
11484
  :param int [since]: the earliest time in ms to fetch borrrow interest for
@@ -11413,9 +11567,11 @@ class binance(Exchange, ImplicitAPI):
11413
11567
  def repay_cross_margin(self, code: str, amount, params={}):
11414
11568
  """
11415
11569
  repay borrowed margin and interest
11416
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay
11417
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11418
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt
11570
+
11571
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay
11572
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11573
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt
11574
+
11419
11575
  :param str code: unified currency code of the currency to repay
11420
11576
  :param float amount: the amount to repay
11421
11577
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11470,7 +11626,9 @@ class binance(Exchange, ImplicitAPI):
11470
11626
  def repay_isolated_margin(self, symbol: str, code: str, amount, params={}):
11471
11627
  """
11472
11628
  repay borrowed margin and interest
11473
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11629
+
11630
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11631
+
11474
11632
  :param str symbol: unified market symbol, required for isolated margin
11475
11633
  :param str code: unified currency code of the currency to repay
11476
11634
  :param float amount: the amount to repay
@@ -11499,8 +11657,10 @@ class binance(Exchange, ImplicitAPI):
11499
11657
  def borrow_cross_margin(self, code: str, amount: float, params={}):
11500
11658
  """
11501
11659
  create a loan to borrow margin
11502
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11503
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow
11660
+
11661
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11662
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow
11663
+
11504
11664
  :param str code: unified currency code of the currency to borrow
11505
11665
  :param float amount: the amount to borrow
11506
11666
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -11533,7 +11693,9 @@ class binance(Exchange, ImplicitAPI):
11533
11693
  def borrow_isolated_margin(self, symbol: str, code: str, amount: float, params={}):
11534
11694
  """
11535
11695
  create a loan to borrow margin
11536
- :see: https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11696
+
11697
+ https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
11698
+
11537
11699
  :param str symbol: unified market symbol, required for isolated margin
11538
11700
  :param str code: unified currency code of the currency to borrow
11539
11701
  :param float amount: the amount to borrow
@@ -11591,8 +11753,10 @@ class binance(Exchange, ImplicitAPI):
11591
11753
  def fetch_open_interest_history(self, symbol: str, timeframe='5m', since: Int = None, limit: Int = None, params={}):
11592
11754
  """
11593
11755
  Retrieves the open interest history of a currency
11594
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
11595
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
11756
+
11757
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
11758
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
11759
+
11596
11760
  :param str symbol: Unified CCXT market symbol
11597
11761
  :param str timeframe: "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
11598
11762
  :param int [since]: the time(ms) of the earliest record to retrieve unix timestamp
@@ -11652,9 +11816,11 @@ class binance(Exchange, ImplicitAPI):
11652
11816
  def fetch_open_interest(self, symbol: str, params={}):
11653
11817
  """
11654
11818
  retrieves the open interest of a contract trading pair
11655
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
11656
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
11657
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
11819
+
11820
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
11821
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
11822
+ https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
11823
+
11658
11824
  :param str symbol: unified CCXT market symbol
11659
11825
  :param dict [params]: exchange specific parameters
11660
11826
  :returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
@@ -11738,11 +11904,13 @@ class binance(Exchange, ImplicitAPI):
11738
11904
  def fetch_my_liquidations(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
11739
11905
  """
11740
11906
  retrieves the users liquidated positions
11741
- :see: https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
11742
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
11743
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
11744
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
11745
- :see: https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
11907
+
11908
+ https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
11909
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
11910
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
11911
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
11912
+ https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
11913
+
11746
11914
  :param str [symbol]: unified CCXT market symbol
11747
11915
  :param int [since]: the earliest time in ms to fetch liquidations for
11748
11916
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -11967,7 +12135,9 @@ class binance(Exchange, ImplicitAPI):
11967
12135
  def fetch_greeks(self, symbol: str, params={}) -> Greeks:
11968
12136
  """
11969
12137
  fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
11970
- :see: https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
12138
+
12139
+ https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
12140
+
11971
12141
  :param str symbol: unified symbol of the market to fetch greeks for
11972
12142
  :param dict [params]: extra parameters specific to the exchange API endpoint
11973
12143
  :returns dict: a `greeks structure <https://docs.ccxt.com/#/?id=greeks-structure>`
@@ -12051,8 +12221,10 @@ class binance(Exchange, ImplicitAPI):
12051
12221
  def fetch_position_mode(self, symbol: Str = None, params={}):
12052
12222
  """
12053
12223
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
12054
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
12055
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
12224
+
12225
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
12226
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
12227
+
12056
12228
  :param str symbol: unified symbol of the market to fetch the order book for
12057
12229
  :param dict [params]: extra parameters specific to the exchange API endpoint
12058
12230
  :param str [params.subType]: "linear" or "inverse"
@@ -12084,10 +12256,12 @@ class binance(Exchange, ImplicitAPI):
12084
12256
  def fetch_margin_modes(self, symbols: Strings = None, params={}) -> MarginModes:
12085
12257
  """
12086
12258
  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
12087
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12088
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
12089
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12090
- :param str symbol: unified symbol of the market the order was made in
12259
+
12260
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12261
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
12262
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12263
+
12264
+ :param str[] symbols: unified market symbols
12091
12265
  :param dict [params]: extra parameters specific to the exchange API endpoint
12092
12266
  :param str [params.subType]: "linear" or "inverse"
12093
12267
  :returns dict: a list of `margin mode structures <https://docs.ccxt.com/#/?id=margin-mode-structure>`
@@ -12170,6 +12344,46 @@ class binance(Exchange, ImplicitAPI):
12170
12344
  assets = response
12171
12345
  return self.parse_margin_modes(assets, symbols, 'symbol', 'swap')
12172
12346
 
12347
+ def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
12348
+ """
12349
+ fetches the margin mode of a specific symbol
12350
+
12351
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
12352
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
12353
+
12354
+ :param str symbol: unified symbol of the market the order was made in
12355
+ :param dict [params]: extra parameters specific to the exchange API endpoint
12356
+ :param str [params.subType]: "linear" or "inverse"
12357
+ :returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
12358
+ """
12359
+ self.load_markets()
12360
+ market = self.market(symbol)
12361
+ subType = None
12362
+ subType, params = self.handle_sub_type_and_params('fetchMarginMode', market, params)
12363
+ response = None
12364
+ if subType == 'linear':
12365
+ request: dict = {
12366
+ 'symbol': market['id'],
12367
+ }
12368
+ response = self.fapiPrivateGetSymbolConfig(self.extend(request, params))
12369
+ #
12370
+ # [
12371
+ # {
12372
+ # "symbol": "BTCUSDT",
12373
+ # "marginType": "CROSSED",
12374
+ # "isAutoAddMargin": "false",
12375
+ # "leverage": 21,
12376
+ # "maxNotionalValue": "1000000",
12377
+ # }
12378
+ # ]
12379
+ #
12380
+ elif subType == 'inverse':
12381
+ fetchMarginModesResponse = self.fetch_margin_modes([symbol], params)
12382
+ return fetchMarginModesResponse[symbol]
12383
+ else:
12384
+ raise BadRequest(self.id + ' fetchMarginMode() supports linear and inverse subTypes only')
12385
+ return self.parse_margin_mode(response[0], market)
12386
+
12173
12387
  def parse_margin_mode(self, marginMode: dict, market=None) -> MarginMode:
12174
12388
  marketId = self.safe_string(marginMode, 'symbol')
12175
12389
  market = self.safe_market(marketId, market)
@@ -12189,7 +12403,9 @@ class binance(Exchange, ImplicitAPI):
12189
12403
  def fetch_option(self, symbol: str, params={}) -> Option:
12190
12404
  """
12191
12405
  fetches option data that is commonly found in an option chain
12192
- :see: https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
12406
+
12407
+ https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
12408
+
12193
12409
  :param str symbol: unified market symbol
12194
12410
  :param dict [params]: extra parameters specific to the exchange API endpoint
12195
12411
  :returns dict: an `option chain structure <https://docs.ccxt.com/#/?id=option-chain-structure>`
@@ -12275,8 +12491,10 @@ class binance(Exchange, ImplicitAPI):
12275
12491
  def fetch_margin_adjustment_history(self, symbol: Str = None, type: Str = None, since: Num = None, limit: Num = None, params={}) -> List[MarginModification]:
12276
12492
  """
12277
12493
  fetches the history of margin added or reduced from contract isolated positions
12278
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12279
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
12494
+
12495
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
12496
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
12497
+
12280
12498
  :param str symbol: unified market symbol
12281
12499
  :param str [type]: "add" or "reduce"
12282
12500
  :param int [since]: timestamp in ms of the earliest change to fetch
@@ -12330,7 +12548,9 @@ class binance(Exchange, ImplicitAPI):
12330
12548
  def fetch_convert_currencies(self, params={}) -> Currencies:
12331
12549
  """
12332
12550
  fetches all available currencies that can be converted
12333
- :see: https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset
12551
+
12552
+ https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset
12553
+
12334
12554
  :param dict [params]: extra parameters specific to the exchange API endpoint
12335
12555
  :returns dict: an associative dictionary of currencies
12336
12556
  """
@@ -12382,7 +12602,9 @@ class binance(Exchange, ImplicitAPI):
12382
12602
  def fetch_convert_quote(self, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
12383
12603
  """
12384
12604
  fetch a quote for converting from one currency to another
12385
- :see: https://developers.binance.com/docs/convert/trade/Send-quote-request
12605
+
12606
+ https://developers.binance.com/docs/convert/trade/Send-quote-request
12607
+
12386
12608
  :param str fromCode: the currency that you want to sell and convert from
12387
12609
  :param str toCode: the currency that you want to buy and convert into
12388
12610
  :param float amount: how much you want to trade in units of the from currency
@@ -12416,7 +12638,9 @@ class binance(Exchange, ImplicitAPI):
12416
12638
  def create_convert_trade(self, id: str, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
12417
12639
  """
12418
12640
  convert from one currency to another
12419
- :see: https://developers.binance.com/docs/convert/trade/Accept-Quote
12641
+
12642
+ https://developers.binance.com/docs/convert/trade/Accept-Quote
12643
+
12420
12644
  :param str id: the id of the trade that you want to make
12421
12645
  :param str fromCode: the currency that you want to sell and convert from
12422
12646
  :param str toCode: the currency that you want to buy and convert into
@@ -12458,7 +12682,9 @@ class binance(Exchange, ImplicitAPI):
12458
12682
  def fetch_convert_trade(self, id: str, code: Str = None, params={}) -> Conversion:
12459
12683
  """
12460
12684
  fetch the data for a conversion trade
12461
- :see: https://developers.binance.com/docs/convert/trade/Order-Status
12685
+
12686
+ https://developers.binance.com/docs/convert/trade/Order-Status
12687
+
12462
12688
  :param str id: the id of the trade that you want to fetch
12463
12689
  :param str [code]: the unified currency code of the conversion trade
12464
12690
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -12528,7 +12754,9 @@ class binance(Exchange, ImplicitAPI):
12528
12754
  def fetch_convert_trade_history(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Conversion]:
12529
12755
  """
12530
12756
  fetch the users history of conversion trades
12531
- :see: https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History
12757
+
12758
+ https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History
12759
+
12532
12760
  :param str [code]: the unified currency code
12533
12761
  :param int [since]: the earliest time in ms to fetch conversions for
12534
12762
  :param int [limit]: the maximum number of conversion structures to retrieve
@@ -12707,8 +12935,10 @@ class binance(Exchange, ImplicitAPI):
12707
12935
  def fetch_funding_intervals(self, symbols: Strings = None, params={}) -> FundingRates:
12708
12936
  """
12709
12937
  fetch the funding rate interval for multiple markets
12710
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
12711
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
12938
+
12939
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
12940
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
12941
+
12712
12942
  :param str[] [symbols]: list of unified market symbols
12713
12943
  :param dict [params]: extra parameters specific to the exchange API endpoint
12714
12944
  :param str [params.subType]: "linear" or "inverse"
@@ -12746,8 +12976,10 @@ class binance(Exchange, ImplicitAPI):
12746
12976
  def fetch_long_short_ratio_history(self, symbol: Str = None, timeframe: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LongShortRatio]:
12747
12977
  """
12748
12978
  fetches the long short ratio history for a unified market symbol
12749
- :see: https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
12750
- :see: https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
12979
+
12980
+ https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
12981
+ https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
12982
+
12751
12983
  :param str symbol: unified symbol of the market to fetch the long short ratio for
12752
12984
  :param str [timeframe]: the period for the ratio, default is 24 hours
12753
12985
  :param int [since]: the earliest time in ms to fetch ratios for