ccxt 4.4.29__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 (273) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/alpaca.py +1 -0
  3. ccxt/abstract/binance.py +9 -0
  4. ccxt/abstract/binancecoinm.py +9 -0
  5. ccxt/abstract/binanceus.py +9 -0
  6. ccxt/abstract/binanceusdm.py +9 -0
  7. ccxt/ace.py +36 -12
  8. ccxt/alpaca.py +113 -28
  9. ccxt/ascendex.py +65 -30
  10. ccxt/async_support/__init__.py +1 -1
  11. ccxt/async_support/ace.py +36 -12
  12. ccxt/async_support/alpaca.py +113 -28
  13. ccxt/async_support/ascendex.py +65 -30
  14. ccxt/async_support/base/exchange.py +3 -3
  15. ccxt/async_support/bigone.py +71 -27
  16. ccxt/async_support/binance.py +564 -323
  17. ccxt/async_support/bingx.py +208 -108
  18. ccxt/async_support/bit2c.py +34 -12
  19. ccxt/async_support/bitbank.py +42 -14
  20. ccxt/async_support/bitbns.py +29 -21
  21. ccxt/async_support/bitfinex.py +77 -33
  22. ccxt/async_support/bitfinex2.py +116 -44
  23. ccxt/async_support/bitflyer.py +54 -18
  24. ccxt/async_support/bitget.py +277 -145
  25. ccxt/async_support/bithumb.py +39 -14
  26. ccxt/async_support/bitmart.py +198 -132
  27. ccxt/async_support/bitmex.py +90 -30
  28. ccxt/async_support/bitopro.py +66 -22
  29. ccxt/async_support/bitrue.py +109 -57
  30. ccxt/async_support/bitso.py +55 -19
  31. ccxt/async_support/bitstamp.py +84 -36
  32. ccxt/async_support/bitteam.py +51 -17
  33. ccxt/async_support/bitvavo.py +57 -19
  34. ccxt/async_support/bl3p.py +26 -10
  35. ccxt/async_support/blockchaincom.py +63 -21
  36. ccxt/async_support/blofin.py +95 -38
  37. ccxt/async_support/btcalpha.py +48 -16
  38. ccxt/async_support/btcbox.py +27 -9
  39. ccxt/async_support/btcmarkets.py +57 -19
  40. ccxt/async_support/btcturk.py +36 -12
  41. ccxt/async_support/bybit.py +251 -95
  42. ccxt/async_support/cex.py +65 -22
  43. ccxt/async_support/coinbase.py +138 -56
  44. ccxt/async_support/coinbaseexchange.py +76 -28
  45. ccxt/async_support/coinbaseinternational.py +75 -27
  46. ccxt/async_support/coincatch.py +191 -97
  47. ccxt/async_support/coincheck.py +33 -11
  48. ccxt/async_support/coinex.py +212 -101
  49. ccxt/async_support/coinlist.py +87 -30
  50. ccxt/async_support/coinmate.py +55 -24
  51. ccxt/async_support/coinmetro.py +52 -18
  52. ccxt/async_support/coinone.py +27 -10
  53. ccxt/async_support/coinsph.py +73 -27
  54. ccxt/async_support/coinspot.py +25 -9
  55. ccxt/async_support/cryptocom.py +103 -38
  56. ccxt/async_support/currencycom.py +70 -23
  57. ccxt/async_support/delta.py +90 -30
  58. ccxt/async_support/deribit.py +138 -53
  59. ccxt/async_support/digifinex.py +114 -51
  60. ccxt/async_support/exmo.py +104 -45
  61. ccxt/async_support/gate.py +298 -155
  62. ccxt/async_support/gemini.py +57 -20
  63. ccxt/async_support/hashkey.py +151 -66
  64. ccxt/async_support/hitbtc.py +156 -73
  65. ccxt/async_support/hollaex.py +76 -25
  66. ccxt/async_support/htx.py +297 -240
  67. ccxt/async_support/huobijp.py +1 -0
  68. ccxt/async_support/hyperliquid.py +203 -42
  69. ccxt/async_support/idex.py +73 -24
  70. ccxt/async_support/independentreserve.py +12 -5
  71. ccxt/async_support/indodax.py +53 -16
  72. ccxt/async_support/kraken.py +107 -35
  73. ccxt/async_support/krakenfutures.py +88 -34
  74. ccxt/async_support/kucoin.py +211 -109
  75. ccxt/async_support/kucoinfutures.py +119 -42
  76. ccxt/async_support/kuna.py +80 -39
  77. ccxt/async_support/latoken.py +70 -33
  78. ccxt/async_support/lbank.py +90 -39
  79. ccxt/async_support/luno.py +54 -19
  80. ccxt/async_support/lykke.py +54 -19
  81. ccxt/async_support/mercado.py +1 -0
  82. ccxt/async_support/mexc.py +226 -108
  83. ccxt/async_support/ndax.py +58 -19
  84. ccxt/async_support/novadax.py +67 -22
  85. ccxt/async_support/oceanex.py +58 -19
  86. ccxt/async_support/okcoin.py +81 -38
  87. ccxt/async_support/okx.py +270 -109
  88. ccxt/async_support/onetrading.py +3 -1
  89. ccxt/async_support/oxfun.py +95 -36
  90. ccxt/async_support/p2b.py +49 -23
  91. ccxt/async_support/paradex.py +75 -27
  92. ccxt/async_support/paymium.py +31 -11
  93. ccxt/async_support/phemex.py +91 -41
  94. ccxt/async_support/poloniex.py +80 -30
  95. ccxt/async_support/poloniexfutures.py +72 -30
  96. ccxt/async_support/probit.py +64 -22
  97. ccxt/async_support/timex.py +58 -19
  98. ccxt/async_support/tokocrypto.py +63 -22
  99. ccxt/async_support/tradeogre.py +7 -2
  100. ccxt/async_support/upbit.py +72 -25
  101. ccxt/async_support/vertex.py +74 -28
  102. ccxt/async_support/wavesexchange.py +29 -8
  103. ccxt/async_support/wazirx.py +51 -17
  104. ccxt/async_support/whitebit.py +105 -41
  105. ccxt/async_support/woo.py +162 -65
  106. ccxt/async_support/woofipro.py +118 -49
  107. ccxt/async_support/xt.py +150 -73
  108. ccxt/async_support/yobit.py +49 -16
  109. ccxt/async_support/zaif.py +30 -10
  110. ccxt/async_support/zonda.py +46 -16
  111. ccxt/base/exchange.py +34 -34
  112. ccxt/base/types.py +1 -0
  113. ccxt/bigone.py +71 -27
  114. ccxt/binance.py +564 -323
  115. ccxt/bingx.py +208 -108
  116. ccxt/bit2c.py +34 -12
  117. ccxt/bitbank.py +42 -14
  118. ccxt/bitbns.py +29 -21
  119. ccxt/bitfinex.py +77 -33
  120. ccxt/bitfinex2.py +116 -44
  121. ccxt/bitflyer.py +54 -18
  122. ccxt/bitget.py +277 -145
  123. ccxt/bithumb.py +39 -14
  124. ccxt/bitmart.py +198 -132
  125. ccxt/bitmex.py +90 -30
  126. ccxt/bitopro.py +66 -22
  127. ccxt/bitrue.py +109 -57
  128. ccxt/bitso.py +55 -19
  129. ccxt/bitstamp.py +84 -36
  130. ccxt/bitteam.py +51 -17
  131. ccxt/bitvavo.py +57 -19
  132. ccxt/bl3p.py +26 -10
  133. ccxt/blockchaincom.py +63 -21
  134. ccxt/blofin.py +95 -38
  135. ccxt/btcalpha.py +48 -16
  136. ccxt/btcbox.py +27 -9
  137. ccxt/btcmarkets.py +57 -19
  138. ccxt/btcturk.py +36 -12
  139. ccxt/bybit.py +251 -95
  140. ccxt/cex.py +65 -22
  141. ccxt/coinbase.py +138 -56
  142. ccxt/coinbaseexchange.py +76 -28
  143. ccxt/coinbaseinternational.py +75 -27
  144. ccxt/coincatch.py +191 -97
  145. ccxt/coincheck.py +33 -11
  146. ccxt/coinex.py +212 -101
  147. ccxt/coinlist.py +87 -30
  148. ccxt/coinmate.py +55 -24
  149. ccxt/coinmetro.py +52 -18
  150. ccxt/coinone.py +27 -10
  151. ccxt/coinsph.py +73 -27
  152. ccxt/coinspot.py +25 -9
  153. ccxt/cryptocom.py +103 -38
  154. ccxt/currencycom.py +70 -23
  155. ccxt/delta.py +90 -30
  156. ccxt/deribit.py +138 -53
  157. ccxt/digifinex.py +114 -51
  158. ccxt/exmo.py +104 -45
  159. ccxt/gate.py +298 -155
  160. ccxt/gemini.py +57 -20
  161. ccxt/hashkey.py +151 -66
  162. ccxt/hitbtc.py +156 -73
  163. ccxt/hollaex.py +76 -25
  164. ccxt/htx.py +297 -240
  165. ccxt/huobijp.py +1 -0
  166. ccxt/hyperliquid.py +203 -42
  167. ccxt/idex.py +73 -24
  168. ccxt/independentreserve.py +12 -5
  169. ccxt/indodax.py +53 -16
  170. ccxt/kraken.py +107 -35
  171. ccxt/krakenfutures.py +88 -34
  172. ccxt/kucoin.py +211 -109
  173. ccxt/kucoinfutures.py +119 -42
  174. ccxt/kuna.py +80 -39
  175. ccxt/latoken.py +70 -33
  176. ccxt/lbank.py +90 -39
  177. ccxt/luno.py +54 -19
  178. ccxt/lykke.py +54 -19
  179. ccxt/mercado.py +1 -0
  180. ccxt/mexc.py +226 -108
  181. ccxt/ndax.py +58 -19
  182. ccxt/novadax.py +67 -22
  183. ccxt/oceanex.py +58 -19
  184. ccxt/okcoin.py +81 -38
  185. ccxt/okx.py +270 -109
  186. ccxt/onetrading.py +3 -1
  187. ccxt/oxfun.py +95 -36
  188. ccxt/p2b.py +49 -23
  189. ccxt/paradex.py +75 -27
  190. ccxt/paymium.py +31 -11
  191. ccxt/phemex.py +91 -41
  192. ccxt/poloniex.py +80 -30
  193. ccxt/poloniexfutures.py +72 -30
  194. ccxt/pro/__init__.py +1 -1
  195. ccxt/pro/alpaca.py +15 -5
  196. ccxt/pro/ascendex.py +18 -6
  197. ccxt/pro/binance.py +200 -119
  198. ccxt/pro/bingx.py +44 -24
  199. ccxt/pro/bitfinex.py +13 -5
  200. ccxt/pro/bitget.py +75 -36
  201. ccxt/pro/bithumb.py +12 -4
  202. ccxt/pro/bitmart.py +44 -20
  203. ccxt/pro/bitmex.py +42 -14
  204. ccxt/pro/bitopro.py +15 -5
  205. ccxt/pro/bitrue.py +7 -3
  206. ccxt/pro/bitvavo.py +51 -17
  207. ccxt/pro/blockchaincom.py +18 -6
  208. ccxt/pro/blofin.py +38 -13
  209. ccxt/pro/bybit.py +100 -42
  210. ccxt/pro/cex.py +48 -16
  211. ccxt/pro/coinbase.py +32 -12
  212. ccxt/pro/coinbaseexchange.py +1 -1
  213. ccxt/pro/coinbaseinternational.py +34 -14
  214. ccxt/pro/coincatch.py +54 -19
  215. ccxt/pro/coincheck.py +6 -2
  216. ccxt/pro/coinex.py +40 -20
  217. ccxt/pro/coinone.py +9 -3
  218. ccxt/pro/cryptocom.py +70 -26
  219. ccxt/pro/deribit.py +36 -12
  220. ccxt/pro/exmo.py +10 -4
  221. ccxt/pro/gate.py +64 -30
  222. ccxt/pro/gemini.py +21 -7
  223. ccxt/pro/hashkey.py +26 -8
  224. ccxt/pro/hitbtc.py +61 -37
  225. ccxt/pro/hollaex.py +15 -5
  226. ccxt/pro/htx.py +39 -21
  227. ccxt/pro/hyperliquid.py +41 -14
  228. ccxt/pro/kraken.py +49 -17
  229. ccxt/pro/krakenfutures.py +47 -24
  230. ccxt/pro/kucoin.py +60 -31
  231. ccxt/pro/kucoinfutures.py +41 -19
  232. ccxt/pro/lbank.py +27 -9
  233. ccxt/pro/luno.py +3 -1
  234. ccxt/pro/mexc.py +35 -17
  235. ccxt/pro/ndax.py +12 -4
  236. ccxt/pro/okcoin.py +18 -6
  237. ccxt/pro/okx.py +76 -28
  238. ccxt/pro/onetrading.py +21 -7
  239. ccxt/pro/oxfun.py +54 -20
  240. ccxt/pro/p2b.py +23 -11
  241. ccxt/pro/paradex.py +12 -4
  242. ccxt/pro/phemex.py +31 -19
  243. ccxt/pro/poloniex.py +50 -22
  244. ccxt/pro/poloniexfutures.py +17 -7
  245. ccxt/pro/probit.py +18 -6
  246. ccxt/pro/upbit.py +25 -9
  247. ccxt/pro/vertex.py +20 -6
  248. ccxt/pro/wazirx.py +21 -7
  249. ccxt/pro/whitebit.py +25 -9
  250. ccxt/pro/woo.py +32 -12
  251. ccxt/pro/woofipro.py +35 -13
  252. ccxt/pro/xt.py +46 -26
  253. ccxt/probit.py +64 -22
  254. ccxt/test/tests_helpers.py +2 -2
  255. ccxt/timex.py +58 -19
  256. ccxt/tokocrypto.py +63 -22
  257. ccxt/tradeogre.py +7 -2
  258. ccxt/upbit.py +72 -25
  259. ccxt/vertex.py +74 -28
  260. ccxt/wavesexchange.py +29 -8
  261. ccxt/wazirx.py +51 -17
  262. ccxt/whitebit.py +105 -41
  263. ccxt/woo.py +162 -65
  264. ccxt/woofipro.py +118 -49
  265. ccxt/xt.py +150 -73
  266. ccxt/yobit.py +49 -16
  267. ccxt/zaif.py +30 -10
  268. ccxt/zonda.py +46 -16
  269. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  270. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
  271. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  272. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  273. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/bingx.py CHANGED
@@ -517,7 +517,9 @@ class bingx(Exchange, ImplicitAPI):
517
517
  def fetch_time(self, params={}):
518
518
  """
519
519
  fetches the current integer timestamp in milliseconds from the bingx server
520
- :see: https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
520
+
521
+ https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
522
+
521
523
  :param dict [params]: extra parameters specific to the exchange API endpoint
522
524
  :returns int: the current integer timestamp in milliseconds from the bingx server
523
525
  """
@@ -537,7 +539,9 @@ class bingx(Exchange, ImplicitAPI):
537
539
  def fetch_currencies(self, params={}) -> Currencies:
538
540
  """
539
541
  fetches all available currencies on an exchange
540
- :see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
542
+
543
+ https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
544
+
541
545
  :param dict [params]: extra parameters specific to the exchange API endpoint
542
546
  :returns dict: an associative dictionary of currencies
543
547
  """
@@ -836,9 +840,11 @@ class bingx(Exchange, ImplicitAPI):
836
840
  def fetch_markets(self, params={}) -> List[Market]:
837
841
  """
838
842
  retrieves data on all markets for bingx
839
- :see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
840
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
841
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Contract%20Information
843
+
844
+ https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
845
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
846
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Contract%20Information
847
+
842
848
  :param dict [params]: extra parameters specific to the exchange API endpoint
843
849
  :returns dict[]: an array of objects representing market data
844
850
  """
@@ -857,11 +863,13 @@ class bingx(Exchange, ImplicitAPI):
857
863
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
858
864
  """
859
865
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
860
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
861
- :see: https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
862
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
863
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#K-Line%20Data%20-%20Mark%20Price
864
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get%20K-line%20Data
866
+
867
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
868
+ https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
869
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
870
+ https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#K-Line%20Data%20-%20Mark%20Price
871
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get%20K-line%20Data
872
+
865
873
  :param str symbol: unified symbol of the market to fetch OHLCV data for
866
874
  :param str timeframe: the length of time each candle represents
867
875
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -997,8 +1005,10 @@ class bingx(Exchange, ImplicitAPI):
997
1005
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
998
1006
  """
999
1007
  get the list of most recent trades for a particular symbol
1000
- :see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
1001
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
1008
+
1009
+ https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
1010
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
1011
+
1002
1012
  :param str symbol: unified symbol of the market to fetch trades for
1003
1013
  :param int [since]: timestamp in ms of the earliest trade to fetch
1004
1014
  :param int [limit]: the maximum amount of trades to fetch
@@ -1218,9 +1228,11 @@ class bingx(Exchange, ImplicitAPI):
1218
1228
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1219
1229
  """
1220
1230
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1221
- :see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
1222
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
1223
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%20Depth%20Data
1231
+
1232
+ https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
1233
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
1234
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%20Depth%20Data
1235
+
1224
1236
  :param str symbol: unified symbol of the market to fetch the order book for
1225
1237
  :param int [limit]: the maximum amount of order book entries to return
1226
1238
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1307,8 +1319,10 @@ class bingx(Exchange, ImplicitAPI):
1307
1319
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
1308
1320
  """
1309
1321
  fetch the current funding rate
1310
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
1311
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Price%20&%20Current%20Funding%20Rate
1322
+
1323
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
1324
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Price%20&%20Current%20Funding%20Rate
1325
+
1312
1326
  :param str symbol: unified market symbol
1313
1327
  :param dict [params]: extra parameters specific to the exchange API endpoint
1314
1328
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -1345,7 +1359,9 @@ class bingx(Exchange, ImplicitAPI):
1345
1359
  def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
1346
1360
  """
1347
1361
  fetch the current funding rate for multiple symbols
1348
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
1362
+
1363
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
1364
+
1349
1365
  :param str[] [symbols]: list of unified market symbols
1350
1366
  :param dict [params]: extra parameters specific to the exchange API endpoint
1351
1367
  :returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -1393,7 +1409,9 @@ class bingx(Exchange, ImplicitAPI):
1393
1409
  def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1394
1410
  """
1395
1411
  fetches historical funding rate prices
1396
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
1412
+
1413
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
1414
+
1397
1415
  :param str symbol: unified symbol of the market to fetch the funding rate history for
1398
1416
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
1399
1417
  :param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
@@ -1456,8 +1474,10 @@ class bingx(Exchange, ImplicitAPI):
1456
1474
  def fetch_open_interest(self, symbol: str, params={}):
1457
1475
  """
1458
1476
  retrieves the open interest of a trading pair
1459
- :see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
1460
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get%20Swap%20Open%20Positions
1477
+
1478
+ https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
1479
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get%20Swap%20Open%20Positions
1480
+
1461
1481
  :param str symbol: unified CCXT market symbol
1462
1482
  :param dict [params]: exchange specific parameters
1463
1483
  :returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
@@ -1544,9 +1564,11 @@ class bingx(Exchange, ImplicitAPI):
1544
1564
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1545
1565
  """
1546
1566
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1547
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get%20Ticker
1548
- :see: https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#24-hour%20price%20changes
1549
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%2024-Hour%20Price%20Change
1567
+
1568
+ https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get%20Ticker
1569
+ https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#24-hour%20price%20changes
1570
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%2024-Hour%20Price%20Change
1571
+
1550
1572
  :param str symbol: unified symbol of the market to fetch the ticker for
1551
1573
  :param dict [params]: extra parameters specific to the exchange API endpoint
1552
1574
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1602,9 +1624,11 @@ class bingx(Exchange, ImplicitAPI):
1602
1624
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
1603
1625
  """
1604
1626
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1605
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get%20Ticker
1606
- :see: https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#24-hour%20price%20changes
1607
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%2024-Hour%20Price%20Change
1627
+
1628
+ https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get%20Ticker
1629
+ https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#24-hour%20price%20changes
1630
+ https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query%2024-Hour%20Price%20Change
1631
+
1608
1632
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1609
1633
  :param dict [params]: extra parameters specific to the exchange API endpoint
1610
1634
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1663,7 +1687,9 @@ class bingx(Exchange, ImplicitAPI):
1663
1687
  def fetch_mark_price(self, symbol: str, params={}) -> Ticker:
1664
1688
  """
1665
1689
  fetches mark prices for the market
1666
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark%20Price%20and%20Funding%20Rate
1690
+
1691
+ https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark%20Price%20and%20Funding%20Rate
1692
+
1667
1693
  :param str symbol: unified symbol of the market to fetch the ticker for
1668
1694
  :param dict [params]: extra parameters specific to the exchange API endpoint
1669
1695
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1716,7 +1742,9 @@ class bingx(Exchange, ImplicitAPI):
1716
1742
  def fetch_mark_prices(self, symbols: Strings = None, params={}) -> Tickers:
1717
1743
  """
1718
1744
  fetches mark prices for multiple markets
1719
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark%20Price%20and%20Funding%20Rate
1745
+
1746
+ https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark%20Price%20and%20Funding%20Rate
1747
+
1720
1748
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1721
1749
  :param dict [params]: extra parameters specific to the exchange API endpoint
1722
1750
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1870,10 +1898,12 @@ class bingx(Exchange, ImplicitAPI):
1870
1898
  def fetch_balance(self, params={}) -> Balances:
1871
1899
  """
1872
1900
  query for balance and get the amount of funds available for trading or funds locked in orders
1873
- :see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
1874
- :see: https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
1875
- :see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
1876
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Account%20Assets
1901
+
1902
+ https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
1903
+ https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
1904
+ https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
1905
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Account%20Assets
1906
+
1877
1907
  :param dict [params]: extra parameters specific to the exchange API endpoint
1878
1908
  :param boolean [params.standard]: whether to fetch standard contract balances
1879
1909
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
@@ -2089,9 +2119,11 @@ class bingx(Exchange, ImplicitAPI):
2089
2119
  def fetch_positions(self, symbols: Strings = None, params={}):
2090
2120
  """
2091
2121
  fetch all open positions
2092
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20position%20data
2093
- :see: https://bingx-api.github.io/docs/#/en-us/standard/contract-interface.html#position
2094
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20warehouse
2122
+
2123
+ https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20position%20data
2124
+ https://bingx-api.github.io/docs/#/en-us/standard/contract-interface.html#position
2125
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20warehouse
2126
+
2095
2127
  :param str[]|None symbols: list of unified market symbols
2096
2128
  :param dict [params]: extra parameters specific to the exchange API endpoint
2097
2129
  :param boolean [params.standard]: whether to fetch standard contract positions
@@ -2180,8 +2212,10 @@ class bingx(Exchange, ImplicitAPI):
2180
2212
  def fetch_position(self, symbol: str, params={}):
2181
2213
  """
2182
2214
  fetch data on a single open contract trade position
2183
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20position%20data
2184
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20warehouse
2215
+
2216
+ https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20position%20data
2217
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20warehouse
2218
+
2185
2219
  :param str symbol: unified market symbol of the market the position is held in
2186
2220
  :param dict [params]: extra parameters specific to the exchange API endpoint
2187
2221
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -2394,7 +2428,7 @@ class bingx(Exchange, ImplicitAPI):
2394
2428
 
2395
2429
  def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
2396
2430
  """
2397
- * @ignore
2431
+ @ignore
2398
2432
  helper function to build request
2399
2433
  :param str symbol: unified symbol of the market to create an order in
2400
2434
  :param str type: 'market' or 'limit'
@@ -2557,9 +2591,11 @@ class bingx(Exchange, ImplicitAPI):
2557
2591
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
2558
2592
  """
2559
2593
  create a trade order
2560
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Trade%20order
2561
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Create%20an%20Order
2562
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Trade%20order
2594
+
2595
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Trade%20order
2596
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Create%20an%20Order
2597
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Trade%20order
2598
+
2563
2599
  :param str symbol: unified symbol of the market to create an order in
2564
2600
  :param str type: 'market' or 'limit'
2565
2601
  :param str side: 'buy' or 'sell'
@@ -2673,8 +2709,10 @@ class bingx(Exchange, ImplicitAPI):
2673
2709
  def create_orders(self, orders: List[OrderRequest], params={}):
2674
2710
  """
2675
2711
  create a list of trade orders
2676
- :see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Batch%20Placing%20Orders
2677
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Bulk%20order
2712
+
2713
+ https://bingx-api.github.io/docs/#/spot/trade-api.html#Batch%20Placing%20Orders
2714
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Bulk%20order
2715
+
2678
2716
  :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
2679
2717
  :param dict [params]: extra parameters specific to the exchange API endpoint
2680
2718
  :param boolean [params.sync]: *spot only* if True, multiple orders are ordered serially and all orders do not require the same symbol/side/type
@@ -3168,9 +3206,11 @@ class bingx(Exchange, ImplicitAPI):
3168
3206
  def cancel_order(self, id: str, symbol: Str = None, params={}):
3169
3207
  """
3170
3208
  cancels an open order
3171
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20Order
3172
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20Order
3173
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Cancel%20an%20Order
3209
+
3210
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20Order
3211
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20Order
3212
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Cancel%20an%20Order
3213
+
3174
3214
  :param str id: order id
3175
3215
  :param str symbol: unified symbol of the market the order was made in
3176
3216
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3307,9 +3347,11 @@ class bingx(Exchange, ImplicitAPI):
3307
3347
  def cancel_all_orders(self, symbol: Str = None, params={}):
3308
3348
  """
3309
3349
  cancel all open orders
3310
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20orders%20by%20symbol
3311
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
3312
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Cancel%20all%20orders
3350
+
3351
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20orders%20by%20symbol
3352
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
3353
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Cancel%20all%20orders
3354
+
3313
3355
  :param str [symbol]: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
3314
3356
  :param dict [params]: extra parameters specific to the exchange API endpoint
3315
3357
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -3444,8 +3486,10 @@ class bingx(Exchange, ImplicitAPI):
3444
3486
  def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
3445
3487
  """
3446
3488
  cancel multiple orders
3447
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
3448
- :see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
3489
+
3490
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
3491
+ https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
3492
+
3449
3493
  :param str[] ids: order ids
3450
3494
  :param str symbol: unified market symbol, default is None
3451
3495
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3543,8 +3587,10 @@ class bingx(Exchange, ImplicitAPI):
3543
3587
  def cancel_all_orders_after(self, timeout: Int, params={}):
3544
3588
  """
3545
3589
  dead man's switch, cancel all orders after the given timeout
3546
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20all%20orders%20in%20countdown
3547
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20all%20orders%20in%20countdown
3590
+
3591
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20all%20orders%20in%20countdown
3592
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20all%20orders%20in%20countdown
3593
+
3548
3594
  :param number timeout: time in milliseconds, 0 represents cancel the timer
3549
3595
  :param dict [params]: extra parameters specific to the exchange API endpoint
3550
3596
  :param str [params.type]: spot or swap market
@@ -3581,9 +3627,11 @@ class bingx(Exchange, ImplicitAPI):
3581
3627
  def fetch_order(self, id: str, symbol: Str = None, params={}):
3582
3628
  """
3583
3629
  fetches information on an order made by the user
3584
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
3585
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
3586
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
3630
+
3631
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
3632
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
3633
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
3634
+
3587
3635
  :param str id: the order id
3588
3636
  :param str symbol: unified symbol of the market the order was made in
3589
3637
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3715,7 +3763,9 @@ class bingx(Exchange, ImplicitAPI):
3715
3763
  def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3716
3764
  """
3717
3765
  fetches information on multiple orders made by the user
3718
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#User's%20All%20Orders
3766
+
3767
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#User's%20All%20Orders
3768
+
3719
3769
  :param str symbol: unified market symbol of the market orders were made in
3720
3770
  :param int [since]: the earliest time in ms to fetch orders for
3721
3771
  :param int [limit]: the maximum number of order structures to retrieve
@@ -3803,9 +3853,11 @@ class bingx(Exchange, ImplicitAPI):
3803
3853
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3804
3854
  """
3805
3855
  fetch all unfilled currently open orders
3806
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Current%20Open%20Orders
3807
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Current%20All%20Open%20Orders
3808
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20all%20current%20pending%20orders
3856
+
3857
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Current%20Open%20Orders
3858
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Current%20All%20Open%20Orders
3859
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20all%20current%20pending%20orders
3860
+
3809
3861
  :param str symbol: unified market symbol
3810
3862
  :param int [since]: the earliest time in ms to fetch open orders for
3811
3863
  :param int [limit]: the maximum number of open order structures to retrieve
@@ -3946,10 +3998,12 @@ class bingx(Exchange, ImplicitAPI):
3946
3998
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
3947
3999
  """
3948
4000
  fetches information on multiple closed orders made by the user
3949
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
3950
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
3951
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
3952
- :see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4001
+
4002
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
4003
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
4004
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
4005
+ https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4006
+
3953
4007
  :param str symbol: unified market symbol of the closed orders
3954
4008
  :param int [since]: timestamp in ms of the earliest order
3955
4009
  :param int [limit]: the max number of closed orders to return
@@ -3965,10 +4019,12 @@ class bingx(Exchange, ImplicitAPI):
3965
4019
  def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3966
4020
  """
3967
4021
  fetches information on multiple canceled orders made by the user
3968
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
3969
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
3970
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
3971
- :see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4022
+
4023
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
4024
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
4025
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
4026
+ https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4027
+
3972
4028
  :param str symbol: unified market symbol of the canceled orders
3973
4029
  :param int [since]: timestamp in ms of the earliest order
3974
4030
  :param int [limit]: the max number of canceled orders to return
@@ -3984,10 +4040,12 @@ class bingx(Exchange, ImplicitAPI):
3984
4040
  def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3985
4041
  """
3986
4042
  fetches information on multiple closed orders made by the user
3987
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
3988
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
3989
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
3990
- :see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4043
+
4044
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20history
4045
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
4046
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
4047
+ https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
4048
+
3991
4049
  :param str [symbol]: unified market symbol of the market orders were made in
3992
4050
  :param int [since]: the earliest time in ms to fetch orders for
3993
4051
  :param int [limit]: the maximum number of order structures to retrieve
@@ -4131,7 +4189,9 @@ class bingx(Exchange, ImplicitAPI):
4131
4189
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
4132
4190
  """
4133
4191
  transfer currency internally between wallets on the same account
4134
- :see: https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
4192
+
4193
+ https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
4194
+
4135
4195
  :param str code: unified currency code
4136
4196
  :param float amount: amount to transfer
4137
4197
  :param str fromAccount: account to transfer from
@@ -4170,7 +4230,9 @@ class bingx(Exchange, ImplicitAPI):
4170
4230
  def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
4171
4231
  """
4172
4232
  fetch a history of internal transfers made on an account
4173
- :see: https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
4233
+
4234
+ https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
4235
+
4174
4236
  :param str [code]: unified currency code of the currency transferred
4175
4237
  :param int [since]: the earliest time in ms to fetch transfers for
4176
4238
  :param int [limit]: the maximum number of transfers structures to retrieve
@@ -4241,7 +4303,9 @@ class bingx(Exchange, ImplicitAPI):
4241
4303
  def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
4242
4304
  """
4243
4305
  fetch the deposit addresses for a currency associated with self account
4244
- :see: https://bingx-api.github.io/docs/#/en-us/common/wallet-api.html#Query%20Main%20Account%20Deposit%20Address
4306
+
4307
+ https://bingx-api.github.io/docs/#/en-us/common/wallet-api.html#Query%20Main%20Account%20Deposit%20Address
4308
+
4245
4309
  :param str code: unified currency code
4246
4310
  :param dict [params]: extra parameters specific to the exchange API endpoint
4247
4311
  :returns dict: a dictionary `address structures <https://docs.ccxt.com/#/?id=address-structure>`, indexed by the network
@@ -4282,7 +4346,9 @@ class bingx(Exchange, ImplicitAPI):
4282
4346
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
4283
4347
  """
4284
4348
  fetch the deposit address for a currency associated with self account
4285
- :see: https://bingx-api.github.io/docs/#/en-us/common/wallet-api.html#Query%20Main%20Account%20Deposit%20Address
4349
+
4350
+ https://bingx-api.github.io/docs/#/en-us/common/wallet-api.html#Query%20Main%20Account%20Deposit%20Address
4351
+
4286
4352
  :param str code: unified currency code
4287
4353
  :param dict [params]: extra parameters specific to the exchange API endpoint
4288
4354
  :param str [params.network]: The chain of currency. This only apply for multi-chain currency, and there is no need for single chain currency
@@ -4332,7 +4398,9 @@ class bingx(Exchange, ImplicitAPI):
4332
4398
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4333
4399
  """
4334
4400
  fetch all deposits made to an account
4335
- :see: https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
4401
+
4402
+ https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
4403
+
4336
4404
  :param str [code]: unified currency code
4337
4405
  :param int [since]: the earliest time in ms to fetch deposits for
4338
4406
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -4373,7 +4441,9 @@ class bingx(Exchange, ImplicitAPI):
4373
4441
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4374
4442
  """
4375
4443
  fetch all withdrawals made from an account
4376
- :see: https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
4444
+
4445
+ https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
4446
+
4377
4447
  :param str [code]: unified currency code
4378
4448
  :param int [since]: the earliest time in ms to fetch withdrawals for
4379
4449
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -4528,8 +4598,10 @@ class bingx(Exchange, ImplicitAPI):
4528
4598
  def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
4529
4599
  """
4530
4600
  set margin mode to 'cross' or 'isolated'
4531
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Change%20Margin%20Type
4532
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Set%20Margin%20Type
4601
+
4602
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Change%20Margin%20Type
4603
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Set%20Margin%20Type
4604
+
4533
4605
  :param str marginMode: 'cross' or 'isolated'
4534
4606
  :param str symbol: unified market symbol
4535
4607
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4572,7 +4644,9 @@ class bingx(Exchange, ImplicitAPI):
4572
4644
  def set_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
4573
4645
  """
4574
4646
  Either adds or reduces margin in an isolated position in order to set the margin to a specific value
4575
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
4647
+
4648
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
4649
+
4576
4650
  :param str symbol: unified market symbol of the market to set margin in
4577
4651
  :param float amount: the amount to set the margin to
4578
4652
  :param dict [params]: parameters specific to the bingx api endpoint
@@ -4627,8 +4701,10 @@ class bingx(Exchange, ImplicitAPI):
4627
4701
  def fetch_leverage(self, symbol: str, params={}) -> Leverage:
4628
4702
  """
4629
4703
  fetch the set leverage for a market
4630
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
4631
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Leverage
4704
+
4705
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
4706
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Leverage
4707
+
4632
4708
  :param str symbol: unified market symbol
4633
4709
  :param dict [params]: extra parameters specific to the exchange API endpoint
4634
4710
  :returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
@@ -4721,8 +4797,10 @@ class bingx(Exchange, ImplicitAPI):
4721
4797
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
4722
4798
  """
4723
4799
  set the level of leverage for a market
4724
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
4725
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Modify%20Leverage
4800
+
4801
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
4802
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Modify%20Leverage
4803
+
4726
4804
  :param float leverage: the rate of leverage
4727
4805
  :param str symbol: unified market symbol
4728
4806
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4780,9 +4858,11 @@ class bingx(Exchange, ImplicitAPI):
4780
4858
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
4781
4859
  """
4782
4860
  fetch all trades made by the user
4783
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20transaction%20details
4784
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20historical%20transaction%20orders
4785
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order%20Trade%20Detail
4861
+
4862
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20transaction%20details
4863
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20historical%20transaction%20orders
4864
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order%20Trade%20Detail
4865
+
4786
4866
  :param str [symbol]: unified market symbol
4787
4867
  :param int [since]: the earliest time in ms to fetch trades for
4788
4868
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -4967,7 +5047,9 @@ class bingx(Exchange, ImplicitAPI):
4967
5047
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
4968
5048
  """
4969
5049
  fetch deposit and withdraw fees
4970
- :see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
5050
+
5051
+ https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
5052
+
4971
5053
  :param str[]|None codes: list of unified currency codes
4972
5054
  :param dict [params]: extra parameters specific to the exchange API endpoint
4973
5055
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -4980,7 +5062,9 @@ class bingx(Exchange, ImplicitAPI):
4980
5062
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4981
5063
  """
4982
5064
  make a withdrawal
4983
- :see: https://bingx-api.github.io/docs/#/en-us/spot/wallet-api.html#Withdraw
5065
+
5066
+ https://bingx-api.github.io/docs/#/en-us/spot/wallet-api.html#Withdraw
5067
+
4984
5068
  :param str code: unified currency code
4985
5069
  :param float amount: the amount to withdraw
4986
5070
  :param str address: the address to withdraw to
@@ -5041,8 +5125,10 @@ class bingx(Exchange, ImplicitAPI):
5041
5125
  def fetch_my_liquidations(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
5042
5126
  """
5043
5127
  retrieves the users liquidated positions
5044
- :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
5045
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20force%20orders
5128
+
5129
+ https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
5130
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20force%20orders
5131
+
5046
5132
  :param str [symbol]: unified CCXT market symbol
5047
5133
  :param int [since]: the earliest time in ms to fetch liquidations for
5048
5134
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -5176,8 +5262,10 @@ class bingx(Exchange, ImplicitAPI):
5176
5262
  def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
5177
5263
  """
5178
5264
  closes open positions for a market
5179
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
5180
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Close%20all%20positions%20in%20bulk
5265
+
5266
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
5267
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Close%20all%20positions%20in%20bulk
5268
+
5181
5269
  :param str symbol: Unified CCXT market symbol
5182
5270
  :param str [side]: not used by bingx
5183
5271
  :param dict [params]: extra parameters specific to the bingx api endpoint
@@ -5242,8 +5330,10 @@ class bingx(Exchange, ImplicitAPI):
5242
5330
  def close_all_positions(self, params={}) -> List[Position]:
5243
5331
  """
5244
5332
  closes open positions for a market
5245
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
5246
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Close%20all%20positions%20in%20bulk
5333
+
5334
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
5335
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Close%20all%20positions%20in%20bulk
5336
+
5247
5337
  :param dict [params]: extra parameters specific to the bingx api endpoint
5248
5338
  :param str [params.recvWindow]: request valid time window value
5249
5339
  :returns dict[]: `a list of position structures <https://docs.ccxt.com/#/?id=position-structure>`
@@ -5300,7 +5390,9 @@ class bingx(Exchange, ImplicitAPI):
5300
5390
  def fetch_position_mode(self, symbol: Str = None, params={}):
5301
5391
  """
5302
5392
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
5303
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Get%20Position%20Mode
5393
+
5394
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Get%20Position%20Mode
5395
+
5304
5396
  :param str symbol: unified symbol of the market to fetch the order book for
5305
5397
  :param dict [params]: extra parameters specific to the exchange API endpoint
5306
5398
  :returns dict: an object detailing whether the market is in hedged or one-way mode
@@ -5326,7 +5418,9 @@ class bingx(Exchange, ImplicitAPI):
5326
5418
  def set_position_mode(self, hedged: bool, symbol: Str = None, params={}):
5327
5419
  """
5328
5420
  set hedged to True or False for a market
5329
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
5421
+
5422
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
5423
+
5330
5424
  :param bool hedged: set to True to use dualSidePosition
5331
5425
  :param str symbol: not used by bingx setPositionMode()
5332
5426
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5353,8 +5447,10 @@ class bingx(Exchange, ImplicitAPI):
5353
5447
  def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}) -> Order:
5354
5448
  """
5355
5449
  cancels an order and places a new order
5356
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20order%20and%20place%20a%20new%20order # spot
5357
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20an%20order%20and%20then%20Place%20a%20new%20order # swap
5450
+
5451
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20order%20and%20place%20a%20new%20order # spot
5452
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20an%20order%20and%20then%20Place%20a%20new%20order # swap
5453
+
5358
5454
  :param str id: order id
5359
5455
  :param str symbol: unified symbol of the market to create an order in
5360
5456
  :param str type: 'market' or 'limit'
@@ -5367,8 +5463,8 @@ class bingx(Exchange, ImplicitAPI):
5367
5463
  :param float [params.takeProfit.triggerPrice]: take profit trigger price
5368
5464
  :param dict [params.stopLoss]: *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
5369
5465
  :param float [params.stopLoss.triggerPrice]: stop loss trigger price
5370
- *
5371
- * EXCHANGE SPECIFIC PARAMETERS
5466
+
5467
+ EXCHANGE SPECIFIC PARAMETERS
5372
5468
  :param str [params.cancelClientOrderID]: the user-defined id of the order to be canceled, 1-40 characters, different orders cannot use the same clientOrderID, only supports a query range of 2 hours
5373
5469
  :param str [params.cancelRestrictions]: cancel orders with specified status, NEW: New order, PENDING: Pending order, PARTIALLY_FILLED: Partially filled
5374
5470
  :param str [params.cancelReplaceMode]: STOP_ON_FAILURE - if the cancel order fails, it will not continue to place a new order, ALLOW_FAILURE - regardless of whether the cancel order succeeds or fails, it will continue to place a new order
@@ -5487,8 +5583,10 @@ class bingx(Exchange, ImplicitAPI):
5487
5583
  def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
5488
5584
  """
5489
5585
  fetches the margin mode of the trading pair
5490
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Margin%20Type
5491
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Margin%20Type
5586
+
5587
+ https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Margin%20Type
5588
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Margin%20Type
5589
+
5492
5590
  :param str symbol: unified symbol of the market to fetch the margin mode for
5493
5591
  :param dict [params]: extra parameters specific to the exchange API endpoint
5494
5592
  :returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
@@ -5541,9 +5639,11 @@ class bingx(Exchange, ImplicitAPI):
5541
5639
  def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
5542
5640
  """
5543
5641
  fetch the trading fees for a market
5544
- :see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Trading%20Commission%20Rate
5545
- :see: https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20Trading%20Commission%20Rate
5546
- :see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Trade%20Commission%20Rate
5642
+
5643
+ https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Trading%20Commission%20Rate
5644
+ https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query%20Trading%20Commission%20Rate
5645
+ https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Trade%20Commission%20Rate
5646
+
5547
5647
  :param str symbol: unified market symbol
5548
5648
  :param dict [params]: extra parameters specific to the exchange API endpoint
5549
5649
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`