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
@@ -832,8 +832,10 @@ class mexc(Exchange, ImplicitAPI):
832
832
  async def fetch_status(self, params={}):
833
833
  """
834
834
  the latest known information on the availability of the exchange API
835
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#test-connectivity
836
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-time
835
+
836
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#test-connectivity
837
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-time
838
+
837
839
  :param dict [params]: extra parameters specific to the exchange API endpoint
838
840
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
839
841
  """
@@ -867,8 +869,10 @@ class mexc(Exchange, ImplicitAPI):
867
869
  async def fetch_time(self, params={}):
868
870
  """
869
871
  fetches the current integer timestamp in milliseconds from the exchange server
870
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#check-server-time
871
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-time
872
+
873
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#check-server-time
874
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-time
875
+
872
876
  :param dict [params]: extra parameters specific to the exchange API endpoint
873
877
  :returns int: the current integer timestamp in milliseconds from the exchange server
874
878
  """
@@ -891,7 +895,9 @@ class mexc(Exchange, ImplicitAPI):
891
895
  async def fetch_currencies(self, params={}) -> Currencies:
892
896
  """
893
897
  fetches all available currencies on an exchange
894
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
898
+
899
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
900
+
895
901
  :param dict [params]: extra parameters specific to the exchange API endpoint
896
902
  :returns dict: an associative dictionary of currencies
897
903
  """
@@ -1025,8 +1031,10 @@ class mexc(Exchange, ImplicitAPI):
1025
1031
  async def fetch_markets(self, params={}) -> List[Market]:
1026
1032
  """
1027
1033
  retrieves data on all markets for mexc
1028
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#exchange-information
1029
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
1034
+
1035
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#exchange-information
1036
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
1037
+
1030
1038
  :param dict [params]: extra parameters specific to the exchange API endpoint
1031
1039
  :returns dict[]: an array of objects representing market data
1032
1040
  """
@@ -1039,9 +1047,11 @@ class mexc(Exchange, ImplicitAPI):
1039
1047
 
1040
1048
  async def fetch_spot_markets(self, params={}):
1041
1049
  """
1042
- * @ignore
1050
+ @ignore
1043
1051
  retrieves data on all spot markets for mexc
1044
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#exchange-information
1052
+
1053
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#exchange-information
1054
+
1045
1055
  :param dict [params]: extra parameters specific to the exchange API endpoint
1046
1056
  :returns dict[]: an array of objects representing market data
1047
1057
  """
@@ -1161,9 +1171,11 @@ class mexc(Exchange, ImplicitAPI):
1161
1171
 
1162
1172
  async def fetch_swap_markets(self, params={}):
1163
1173
  """
1164
- * @ignore
1174
+ @ignore
1165
1175
  retrieves data on all swap markets for mexc
1166
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
1176
+
1177
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
1178
+
1167
1179
  :param dict [params]: extra parameters specific to the exchange API endpoint
1168
1180
  :returns dict[]: an array of objects representing market data
1169
1181
  """
@@ -1282,8 +1294,10 @@ class mexc(Exchange, ImplicitAPI):
1282
1294
 
1283
1295
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1284
1296
  """
1285
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#order-book
1286
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-s-depth-information
1297
+
1298
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#order-book
1299
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-s-depth-information
1300
+
1287
1301
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1288
1302
  :param str symbol: unified symbol of the market to fetch the order book for
1289
1303
  :param int [limit]: the maximum amount of order book entries to return
@@ -1353,9 +1367,11 @@ class mexc(Exchange, ImplicitAPI):
1353
1367
 
1354
1368
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1355
1369
  """
1356
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#recent-trades-list
1357
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#compressed-aggregate-trades-list
1358
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-data
1370
+
1371
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#recent-trades-list
1372
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#compressed-aggregate-trades-list
1373
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-data
1374
+
1359
1375
  get the list of most recent trades for a particular symbol
1360
1376
  :param str symbol: unified symbol of the market to fetch trades for
1361
1377
  :param int [since]: timestamp in ms of the earliest trade to fetch
@@ -1601,8 +1617,10 @@ class mexc(Exchange, ImplicitAPI):
1601
1617
 
1602
1618
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1603
1619
  """
1604
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
1605
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#k-line-data
1620
+
1621
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
1622
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#k-line-data
1623
+
1606
1624
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1607
1625
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1608
1626
  :param str timeframe: the length of time each candle represents
@@ -1709,8 +1727,10 @@ class mexc(Exchange, ImplicitAPI):
1709
1727
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
1710
1728
  """
1711
1729
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1712
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
1713
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-data
1730
+
1731
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
1732
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-data
1733
+
1714
1734
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1715
1735
  :param dict [params]: extra parameters specific to the exchange API endpoint
1716
1736
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1792,8 +1812,10 @@ class mexc(Exchange, ImplicitAPI):
1792
1812
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1793
1813
  """
1794
1814
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1795
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
1796
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-data
1815
+
1816
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
1817
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-data
1818
+
1797
1819
  :param str symbol: unified symbol of the market to fetch the ticker for
1798
1820
  :param dict [params]: extra parameters specific to the exchange API endpoint
1799
1821
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1976,7 +1998,9 @@ class mexc(Exchange, ImplicitAPI):
1976
1998
  async def fetch_bids_asks(self, symbols: Strings = None, params={}):
1977
1999
  """
1978
2000
  fetches the bid and ask price and volume for multiple markets
1979
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#symbol-order-book-ticker
2001
+
2002
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#symbol-order-book-ticker
2003
+
1980
2004
  :param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
1981
2005
  :param dict [params]: extra parameters specific to the exchange API endpoint
1982
2006
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -2013,7 +2037,9 @@ class mexc(Exchange, ImplicitAPI):
2013
2037
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
2014
2038
  """
2015
2039
  create a market buy order by providing the symbol and cost
2016
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2040
+
2041
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2042
+
2017
2043
  :param str symbol: unified symbol of the market to create an order in
2018
2044
  :param float cost: how much you want to trade in units of the quote currency
2019
2045
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2029,7 +2055,9 @@ class mexc(Exchange, ImplicitAPI):
2029
2055
  async def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
2030
2056
  """
2031
2057
  create a market sell order by providing the symbol and cost
2032
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2058
+
2059
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2060
+
2033
2061
  :param str symbol: unified symbol of the market to create an order in
2034
2062
  :param float cost: how much you want to trade in units of the quote currency
2035
2063
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2045,9 +2073,11 @@ class mexc(Exchange, ImplicitAPI):
2045
2073
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
2046
2074
  """
2047
2075
  create a trade order
2048
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2049
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2050
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
2076
+
2077
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2078
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2079
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
2080
+
2051
2081
  :param str symbol: unified symbol of the market to create an order in
2052
2082
  :param str type: 'market' or 'limit'
2053
2083
  :param str side: 'buy' or 'sell'
@@ -2059,8 +2089,8 @@ class mexc(Exchange, ImplicitAPI):
2059
2089
  :param bool [params.postOnly]: if True, the order will only be posted if it will be a maker order
2060
2090
  :param bool [params.reduceOnly]: *contract only* indicates if self order is to reduce the size of a position
2061
2091
  :param bool [params.hedged]: *swap only* True for hedged mode, False for one way mode, default is False
2062
- *
2063
- * EXCHANGE SPECIFIC PARAMETERS
2092
+
2093
+ EXCHANGE SPECIFIC PARAMETERS
2064
2094
  :param int [params.leverage]: *contract only* leverage is necessary on isolated margin
2065
2095
  :param long [params.positionId]: *contract only* it is recommended to hasattr(self, fill) parameter when closing a position
2066
2096
  :param str [params.externalOid]: *contract only* external order ID
@@ -2118,16 +2148,18 @@ class mexc(Exchange, ImplicitAPI):
2118
2148
 
2119
2149
  async def create_spot_order(self, market, type, side, amount, price=None, marginMode=None, params={}):
2120
2150
  """
2121
- * @ignore
2151
+ @ignore
2122
2152
  create a trade order
2123
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2124
- :param str symbol: unified symbol of the market to create an order in
2153
+
2154
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2155
+
2156
+ :param str market: unified symbol of the market to create an order in
2125
2157
  :param str type: 'market' or 'limit'
2126
2158
  :param str side: 'buy' or 'sell'
2127
2159
  :param float amount: how much of currency you want to trade in units of base currency
2128
2160
  :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2161
+ :param str [marginMode]: only 'isolated' is supported for spot-margin trading
2129
2162
  :param dict [params]: extra parameters specific to the exchange API endpoint
2130
- :param str [params.marginMode]: only 'isolated' is supported for spot-margin trading
2131
2163
  :param float [params.triggerPrice]: The price at which a trigger order is triggered at
2132
2164
  :param bool [params.postOnly]: if True, the order will only be posted if it will be a maker order
2133
2165
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2171,24 +2203,26 @@ class mexc(Exchange, ImplicitAPI):
2171
2203
 
2172
2204
  async def create_swap_order(self, market, type, side, amount, price=None, marginMode=None, params={}):
2173
2205
  """
2174
- * @ignore
2206
+ @ignore
2175
2207
  create a trade order
2176
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2177
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2178
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
2179
- :param str symbol: unified symbol of the market to create an order in
2208
+
2209
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2210
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2211
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
2212
+
2213
+ :param str market: unified symbol of the market to create an order in
2180
2214
  :param str type: 'market' or 'limit'
2181
2215
  :param str side: 'buy' or 'sell'
2182
2216
  :param float amount: how much of currency you want to trade in units of base currency
2183
2217
  :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2218
+ :param str [marginMode]: only 'isolated' is supported for spot-margin trading
2184
2219
  :param dict [params]: extra parameters specific to the exchange API endpoint
2185
- :param str [params.marginMode]: only 'isolated' is supported for spot-margin trading
2186
2220
  :param float [params.triggerPrice]: The price at which a trigger order is triggered at
2187
2221
  :param bool [params.postOnly]: if True, the order will only be posted if it will be a maker order
2188
2222
  :param bool [params.reduceOnly]: indicates if self order is to reduce the size of a position
2189
2223
  :param bool [params.hedged]: *swap only* True for hedged mode, False for one way mode, default is False
2190
- *
2191
- * EXCHANGE SPECIFIC PARAMETERS
2224
+
2225
+ EXCHANGE SPECIFIC PARAMETERS
2192
2226
  :param int [params.leverage]: leverage is necessary on isolated margin
2193
2227
  :param long [params.positionId]: it is recommended to hasattr(self, fill) parameter when closing a position
2194
2228
  :param str [params.externalOid]: external order ID
@@ -2296,7 +2330,9 @@ class mexc(Exchange, ImplicitAPI):
2296
2330
  async def create_orders(self, orders: List[OrderRequest], params={}):
2297
2331
  """
2298
2332
  *spot only* *all orders must have the same symbol* create a list of trade orders
2299
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#batch-orders
2333
+
2334
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#batch-orders
2335
+
2300
2336
  :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
2301
2337
  :param dict [params]: extra parameters specific to api endpoint
2302
2338
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2353,8 +2389,11 @@ class mexc(Exchange, ImplicitAPI):
2353
2389
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
2354
2390
  """
2355
2391
  fetches information on an order made by the user
2356
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-order
2357
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-order-number
2392
+
2393
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-order
2394
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-order-number
2395
+
2396
+ :param str id: order id
2358
2397
  :param str symbol: unified symbol of the market the order was made in
2359
2398
  :param dict [params]: extra parameters specific to the exchange API endpoint
2360
2399
  :param str [params.marginMode]: only 'isolated' is supported, for spot-margin trading
@@ -2467,9 +2506,11 @@ class mexc(Exchange, ImplicitAPI):
2467
2506
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2468
2507
  """
2469
2508
  fetches information on multiple orders made by the user
2470
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2471
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2472
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2509
+
2510
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2511
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2512
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2513
+
2473
2514
  :param str symbol: unified market symbol of the market orders were made in
2474
2515
  :param int [since]: the earliest time in ms to fetch orders for
2475
2516
  :param int [limit]: the maximum number of order structures to retrieve
@@ -2696,9 +2737,11 @@ class mexc(Exchange, ImplicitAPI):
2696
2737
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2697
2738
  """
2698
2739
  fetch all unfilled currently open orders
2699
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#current-open-orders
2700
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2701
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2740
+
2741
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#current-open-orders
2742
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2743
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2744
+
2702
2745
  :param str symbol: unified market symbol
2703
2746
  :param int [since]: the earliest time in ms to fetch open orders for
2704
2747
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -2781,9 +2824,11 @@ class mexc(Exchange, ImplicitAPI):
2781
2824
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2782
2825
  """
2783
2826
  fetches information on multiple closed orders made by the user
2784
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2785
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2786
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2827
+
2828
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2829
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2830
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2831
+
2787
2832
  :param str symbol: unified market symbol of the market orders were made in
2788
2833
  :param int [since]: the earliest time in ms to fetch orders for
2789
2834
  :param int [limit]: the maximum number of order structures to retrieve
@@ -2795,9 +2840,11 @@ class mexc(Exchange, ImplicitAPI):
2795
2840
  async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2796
2841
  """
2797
2842
  fetches information on multiple canceled orders made by the user
2798
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2799
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2800
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2843
+
2844
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#all-orders
2845
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders
2846
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list
2847
+
2801
2848
  :param str symbol: unified market symbol of the market orders were made in
2802
2849
  :param int [since]: timestamp in ms of the earliest order, default is None
2803
2850
  :param int [limit]: max number of orders to return, default is None
@@ -2822,9 +2869,11 @@ class mexc(Exchange, ImplicitAPI):
2822
2869
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
2823
2870
  """
2824
2871
  cancels an open order
2825
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#cancel-order
2826
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-order-under-maintenance
2827
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-stop-limit-trigger-order-under-maintenance
2872
+
2873
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#cancel-order
2874
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-order-under-maintenance
2875
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-stop-limit-trigger-order-under-maintenance
2876
+
2828
2877
  :param str id: order id
2829
2878
  :param str symbol: unified symbol of the market the order was made in
2830
2879
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2927,7 +2976,9 @@ class mexc(Exchange, ImplicitAPI):
2927
2976
  async def cancel_orders(self, ids, symbol: Str = None, params={}):
2928
2977
  """
2929
2978
  cancel multiple orders
2930
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-order-under-maintenance
2979
+
2980
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-the-order-under-maintenance
2981
+
2931
2982
  :param str[] ids: order ids
2932
2983
  :param str symbol: unified market symbol, default is None
2933
2984
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2959,9 +3010,11 @@ class mexc(Exchange, ImplicitAPI):
2959
3010
  async def cancel_all_orders(self, symbol: Str = None, params={}):
2960
3011
  """
2961
3012
  cancel all open orders
2962
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#cancel-all-open-orders-on-a-symbol
2963
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-all-orders-under-a-contract-under-maintenance
2964
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-all-trigger-orders-under-maintenance
3013
+
3014
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#cancel-all-open-orders-on-a-symbol
3015
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-all-orders-under-a-contract-under-maintenance
3016
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#cancel-all-trigger-orders-under-maintenance
3017
+
2965
3018
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
2966
3019
  :param dict [params]: extra parameters specific to the exchange API endpoint
2967
3020
  :param str [params.marginMode]: only 'isolated' is supported for spot-margin trading
@@ -3348,8 +3401,10 @@ class mexc(Exchange, ImplicitAPI):
3348
3401
  async def fetch_accounts(self, params={}) -> List[Account]:
3349
3402
  """
3350
3403
  fetch all the accounts associated with a profile
3351
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3352
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3404
+
3405
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3406
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3407
+
3353
3408
  :param dict [params]: extra parameters specific to the exchange API endpoint
3354
3409
  :returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
3355
3410
  """
@@ -3374,8 +3429,10 @@ class mexc(Exchange, ImplicitAPI):
3374
3429
  async def fetch_trading_fees(self, params={}) -> TradingFees:
3375
3430
  """
3376
3431
  fetch the trading fees for multiple markets
3377
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3378
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3432
+
3433
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3434
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3435
+
3379
3436
  :param dict [params]: extra parameters specific to the exchange API endpoint
3380
3437
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
3381
3438
  """
@@ -3515,9 +3572,11 @@ class mexc(Exchange, ImplicitAPI):
3515
3572
  async def fetch_balance(self, params={}) -> Balances:
3516
3573
  """
3517
3574
  query for balance and get the amount of funds available for trading or funds locked in orders
3518
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3519
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3520
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3575
+
3576
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3577
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3578
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3579
+
3521
3580
  :param dict [params]: extra parameters specific to the exchange API endpoint
3522
3581
  :param str [params.symbols]: # required for margin, market id's separated by commas
3523
3582
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
@@ -3640,8 +3699,10 @@ class mexc(Exchange, ImplicitAPI):
3640
3699
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3641
3700
  """
3642
3701
  fetch all trades made by the user
3643
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-trade-list
3644
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-transaction-details-of-the-user-s-order
3702
+
3703
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-trade-list
3704
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-transaction-details-of-the-user-s-order
3705
+
3645
3706
  :param str symbol: unified market symbol
3646
3707
  :param int [since]: the earliest time in ms to fetch trades for
3647
3708
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -3728,8 +3789,10 @@ class mexc(Exchange, ImplicitAPI):
3728
3789
  async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3729
3790
  """
3730
3791
  fetch all the trades made from a single order
3731
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-trade-list
3732
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-order-number
3792
+
3793
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-trade-list
3794
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-order-number
3795
+
3733
3796
  :param str id: order id
3734
3797
  :param str symbol: unified market symbol
3735
3798
  :param int [since]: the earliest time in ms to fetch trades for
@@ -3821,7 +3884,9 @@ class mexc(Exchange, ImplicitAPI):
3821
3884
  async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3822
3885
  """
3823
3886
  remove margin from a position
3824
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-margin
3887
+
3888
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-margin
3889
+
3825
3890
  :param str symbol: unified market symbol
3826
3891
  :param float amount: the amount of margin to remove
3827
3892
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3832,7 +3897,9 @@ class mexc(Exchange, ImplicitAPI):
3832
3897
  async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3833
3898
  """
3834
3899
  add margin
3835
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-margin
3900
+
3901
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-margin
3902
+
3836
3903
  :param str symbol: unified market symbol
3837
3904
  :param float amount: amount of margin to add
3838
3905
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3843,7 +3910,9 @@ class mexc(Exchange, ImplicitAPI):
3843
3910
  async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3844
3911
  """
3845
3912
  set the level of leverage for a market
3846
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#switch-leverage
3913
+
3914
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#switch-leverage
3915
+
3847
3916
  :param float leverage: the rate of leverage
3848
3917
  :param str symbol: unified market symbol
3849
3918
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3871,7 +3940,9 @@ class mexc(Exchange, ImplicitAPI):
3871
3940
  async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3872
3941
  """
3873
3942
  fetch the history of funding payments paid and received on self account
3874
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-details-of-user-s-funding-rate
3943
+
3944
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-details-of-user-s-funding-rate
3945
+
3875
3946
  :param str symbol: unified market symbol
3876
3947
  :param int [since]: the earliest time in ms to fetch funding history for
3877
3948
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -3986,7 +4057,9 @@ class mexc(Exchange, ImplicitAPI):
3986
4057
  async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
3987
4058
  """
3988
4059
  fetch the current funding rate interval
3989
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate
4060
+
4061
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate
4062
+
3990
4063
  :param str symbol: unified market symbol
3991
4064
  :param dict [params]: extra parameters specific to the exchange API endpoint
3992
4065
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3996,7 +4069,9 @@ class mexc(Exchange, ImplicitAPI):
3996
4069
  async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
3997
4070
  """
3998
4071
  fetch the current funding rate
3999
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate
4072
+
4073
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate
4074
+
4000
4075
  :param str symbol: unified market symbol
4001
4076
  :param dict [params]: extra parameters specific to the exchange API endpoint
4002
4077
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -4028,7 +4103,9 @@ class mexc(Exchange, ImplicitAPI):
4028
4103
  async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
4029
4104
  """
4030
4105
  fetches historical funding rate prices
4031
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate-history
4106
+
4107
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate-history
4108
+
4032
4109
  :param str symbol: unified symbol of the market to fetch the funding rate history for
4033
4110
  :param int [since]: not used by mexc, but filtered internally by ccxt
4034
4111
  :param int [limit]: mexc limit is page_size default 20, maximum is 100
@@ -4092,7 +4169,9 @@ class mexc(Exchange, ImplicitAPI):
4092
4169
  async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
4093
4170
  """
4094
4171
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes, if a market has a leverage tier of 0, then the leverage tiers cannot be obtained for self market
4095
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
4172
+
4173
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information
4174
+
4096
4175
  :param str[] [symbols]: list of unified market symbols
4097
4176
  :param dict [params]: extra parameters specific to the exchange API endpoint
4098
4177
  :returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
@@ -4187,6 +4266,7 @@ class mexc(Exchange, ImplicitAPI):
4187
4266
  # "isHidden": False
4188
4267
  # }
4189
4268
  #
4269
+ marketId = self.safe_string(info, 'symbol')
4190
4270
  maintenanceMarginRate = self.safe_string(info, 'maintenanceMarginRate')
4191
4271
  initialMarginRate = self.safe_string(info, 'initialMarginRate')
4192
4272
  maxVol = self.safe_string(info, 'maxVol')
@@ -4200,6 +4280,7 @@ class mexc(Exchange, ImplicitAPI):
4200
4280
  return [
4201
4281
  {
4202
4282
  'tier': 0,
4283
+ 'symbol': self.safe_symbol(marketId, market, None, 'contract'),
4203
4284
  'currency': self.safe_currency_code(quoteId),
4204
4285
  'minNotional': None,
4205
4286
  'maxNotional': None,
@@ -4212,6 +4293,7 @@ class mexc(Exchange, ImplicitAPI):
4212
4293
  cap = Precise.string_add(floor, riskIncrVol)
4213
4294
  tiers.append({
4214
4295
  'tier': self.parse_number(Precise.string_div(cap, riskIncrVol)),
4296
+ 'symbol': self.safe_symbol(marketId, market, None, 'contract'),
4215
4297
  'currency': self.safe_currency_code(quoteId),
4216
4298
  'minNotional': self.parse_number(floor),
4217
4299
  'maxNotional': self.parse_number(cap),
@@ -4248,7 +4330,9 @@ class mexc(Exchange, ImplicitAPI):
4248
4330
  async def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
4249
4331
  """
4250
4332
  fetch a dictionary of addresses for a currency, indexed by network
4251
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4333
+
4334
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4335
+
4252
4336
  :param str code: unified currency code of the currency for the deposit address
4253
4337
  :param dict [params]: extra parameters specific to the exchange API endpoint
4254
4338
  :returns dict: a dictionary of `address structures <https://docs.ccxt.com/#/?id=address-structure>` indexed by the network
@@ -4291,7 +4375,9 @@ class mexc(Exchange, ImplicitAPI):
4291
4375
  async def create_deposit_address(self, code: str, params={}):
4292
4376
  """
4293
4377
  create a currency deposit address
4294
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
4378
+
4379
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
4380
+
4295
4381
  :param str code: unified currency code of the currency for the deposit address
4296
4382
  :param dict [params]: extra parameters specific to the exchange API endpoint
4297
4383
  :param str [params.network]: the blockchain network name
@@ -4330,7 +4416,9 @@ class mexc(Exchange, ImplicitAPI):
4330
4416
  async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
4331
4417
  """
4332
4418
  fetch the deposit address for a currency associated with self account
4333
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4419
+
4420
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4421
+
4334
4422
  :param str code: unified currency code
4335
4423
  :param dict [params]: extra parameters specific to the exchange API endpoint
4336
4424
  :param str [params.network]: the chain of currency, self only apply for multi-chain currency, and there is no need for single chain currency
@@ -4357,7 +4445,9 @@ class mexc(Exchange, ImplicitAPI):
4357
4445
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4358
4446
  """
4359
4447
  fetch all deposits made to an account
4360
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-history-supporting-network
4448
+
4449
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-history-supporting-network
4450
+
4361
4451
  :param str code: unified currency code
4362
4452
  :param int [since]: the earliest time in ms to fetch deposits for
4363
4453
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -4410,7 +4500,9 @@ class mexc(Exchange, ImplicitAPI):
4410
4500
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
4411
4501
  """
4412
4502
  fetch all withdrawals made from an account
4413
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-history-supporting-network
4503
+
4504
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-history-supporting-network
4505
+
4414
4506
  :param str code: unified currency code
4415
4507
  :param int [since]: the earliest time in ms to fetch withdrawals for
4416
4508
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -4577,7 +4669,9 @@ class mexc(Exchange, ImplicitAPI):
4577
4669
  async def fetch_position(self, symbol: str, params={}):
4578
4670
  """
4579
4671
  fetch data on a single open contract trade position
4580
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
4672
+
4673
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
4674
+
4581
4675
  :param str symbol: unified market symbol of the market the position is held in, default is None
4582
4676
  :param dict [params]: extra parameters specific to the exchange API endpoint
4583
4677
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -4593,7 +4687,9 @@ class mexc(Exchange, ImplicitAPI):
4593
4687
  async def fetch_positions(self, symbols: Strings = None, params={}):
4594
4688
  """
4595
4689
  fetch all open positions
4596
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
4690
+
4691
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
4692
+
4597
4693
  :param str[]|None symbols: list of unified market symbols
4598
4694
  :param dict [params]: extra parameters specific to the exchange API endpoint
4599
4695
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -4739,7 +4835,9 @@ class mexc(Exchange, ImplicitAPI):
4739
4835
  async def fetch_transfer(self, id: str, code: Str = None, params={}) -> TransferEntry:
4740
4836
  """
4741
4837
  fetches a transfer
4742
- :see: https://mexcdevelop.github.io/apidocs/spot_v2_en/#internal-assets-transfer-order-inquiry
4838
+
4839
+ https://mexcdevelop.github.io/apidocs/spot_v2_en/#internal-assets-transfer-order-inquiry
4840
+
4743
4841
  :param str id: transfer id
4744
4842
  :param str [code]: not used by mexc fetchTransfer
4745
4843
  :param dict params: extra parameters specific to the exchange api endpoint
@@ -4774,8 +4872,10 @@ class mexc(Exchange, ImplicitAPI):
4774
4872
  async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
4775
4873
  """
4776
4874
  fetch a history of internal transfers made on an account
4777
- :see: https://mexcdevelop.github.io/apidocs/spot_v2_en/#get-internal-assets-transfer-records
4778
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-39-s-asset-transfer-records
4875
+
4876
+ https://mexcdevelop.github.io/apidocs/spot_v2_en/#get-internal-assets-transfer-records
4877
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-39-s-asset-transfer-records
4878
+
4779
4879
  :param str code: unified currency code of the currency transferred
4780
4880
  :param int [since]: the earliest time in ms to fetch transfers for
4781
4881
  :param int [limit]: the maximum number of transfers structures to retrieve
@@ -4854,7 +4954,9 @@ class mexc(Exchange, ImplicitAPI):
4854
4954
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
4855
4955
  """
4856
4956
  transfer currency internally between wallets on the same account
4857
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#user-universal-transfer
4957
+
4958
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#user-universal-transfer
4959
+
4858
4960
  :param str code: unified currency code
4859
4961
  :param float amount: amount to transfer
4860
4962
  :param str fromAccount: account to transfer from
@@ -4979,7 +5081,9 @@ class mexc(Exchange, ImplicitAPI):
4979
5081
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
4980
5082
  """
4981
5083
  make a withdrawal
4982
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-new
5084
+
5085
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-new
5086
+
4983
5087
  :param str code: unified currency code
4984
5088
  :param float amount: the amount to withdraw
4985
5089
  :param str address: the address to withdraw to
@@ -5016,7 +5120,9 @@ class mexc(Exchange, ImplicitAPI):
5016
5120
  async def set_position_mode(self, hedged: bool, symbol: Str = None, params={}):
5017
5121
  """
5018
5122
  set hedged to True or False for a market
5019
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#change-position-mode
5123
+
5124
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#change-position-mode
5125
+
5020
5126
  :param bool hedged: set to True to use dualSidePosition
5021
5127
  :param str symbol: not used by mexc setPositionMode()
5022
5128
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -5037,7 +5143,9 @@ class mexc(Exchange, ImplicitAPI):
5037
5143
  async def fetch_position_mode(self, symbol: Str = None, params={}):
5038
5144
  """
5039
5145
  fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
5040
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-position-mode
5146
+
5147
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-position-mode
5148
+
5041
5149
  :param str symbol: not used by mexc fetchPositionMode
5042
5150
  :param dict [params]: extra parameters specific to the exchange API endpoint
5043
5151
  :returns dict: an object detailing whether the market is in hedged or one-way mode
@@ -5059,7 +5167,9 @@ class mexc(Exchange, ImplicitAPI):
5059
5167
  async def fetch_transaction_fees(self, codes: Strings = None, params={}):
5060
5168
  """
5061
5169
  fetch deposit and withdrawal fees
5062
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5170
+
5171
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5172
+
5063
5173
  :param str[]|None codes: returns fees for all currencies if None
5064
5174
  :param dict [params]: extra parameters specific to the exchange API endpoint
5065
5175
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -5152,7 +5262,9 @@ class mexc(Exchange, ImplicitAPI):
5152
5262
  async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
5153
5263
  """
5154
5264
  fetch deposit and withdrawal fees
5155
- :see: https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5265
+
5266
+ https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5267
+
5156
5268
  :param str[]|None codes: returns fees for all currencies if None
5157
5269
  :param dict [params]: extra parameters specific to the exchange API endpoint
5158
5270
  :returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -5238,7 +5350,9 @@ class mexc(Exchange, ImplicitAPI):
5238
5350
  async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
5239
5351
  """
5240
5352
  fetch the set leverage for a market
5241
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-leverage
5353
+
5354
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-leverage
5355
+
5242
5356
  :param str symbol: unified market symbol
5243
5357
  :param dict [params]: extra parameters specific to the exchange API endpoint
5244
5358
  :returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
@@ -5305,7 +5419,7 @@ class mexc(Exchange, ImplicitAPI):
5305
5419
 
5306
5420
  def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
5307
5421
  """
5308
- * @ignore
5422
+ @ignore
5309
5423
  marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
5310
5424
  :param dict [params]: extra parameters specific to the exchange API endpoint
5311
5425
  :param bool [params.margin]: True for trading spot-margin
@@ -5322,15 +5436,17 @@ class mexc(Exchange, ImplicitAPI):
5322
5436
  async def fetch_positions_history(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
5323
5437
  """
5324
5438
  fetches historical positions
5325
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
5439
+
5440
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information
5441
+
5326
5442
  :param str[] [symbols]: unified contract symbols
5327
5443
  :param int [since]: not used by mexc fetchPositionsHistory
5328
5444
  :param int [limit]: the maximum amount of candles to fetch, default=1000
5329
- :param dict params: extra parameters specific to the exchange api endpoint
5330
- *
5331
- * EXCHANGE SPECIFIC PARAMETERS
5332
- :param int type: position type,1: long, 2: short
5333
- :param int page_num: current page number, default is 1
5445
+ :param dict [params]: extra parameters specific to the exchange api endpoint
5446
+
5447
+ EXCHANGE SPECIFIC PARAMETERS
5448
+ :param int [params.type]: position type,1: long, 2: short
5449
+ :param int [params.page_num]: current page number, default is 1
5334
5450
  :returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
5335
5451
  """
5336
5452
  await self.load_markets()
@@ -5390,7 +5506,9 @@ class mexc(Exchange, ImplicitAPI):
5390
5506
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
5391
5507
  """
5392
5508
  set margin mode to 'cross' or 'isolated'
5393
- :see: https://mexcdevelop.github.io/apidocs/contract_v1_en/#switch-leverage
5509
+
5510
+ https://mexcdevelop.github.io/apidocs/contract_v1_en/#switch-leverage
5511
+
5394
5512
  :param str marginMode: 'cross' or 'isolated'
5395
5513
  :param str [symbol]: required when there is no position, else provide params["positionId"]
5396
5514
  :param dict [params]: extra parameters specific to the exchange API endpoint