ccxt 3.1.59__py2.py3-none-any.whl → 4.0.3__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 (254) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +6 -6
  3. ccxt/alpaca.py +4 -4
  4. ccxt/ascendex.py +14 -14
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +6 -6
  7. ccxt/async_support/alpaca.py +4 -4
  8. ccxt/async_support/ascendex.py +14 -14
  9. ccxt/async_support/base/exchange.py +13 -13
  10. ccxt/async_support/bigone.py +11 -11
  11. ccxt/async_support/binance.py +34 -34
  12. ccxt/async_support/bit2c.py +3 -3
  13. ccxt/async_support/bitbank.py +5 -5
  14. ccxt/async_support/bitbns.py +7 -7
  15. ccxt/async_support/bitfinex.py +13 -13
  16. ccxt/async_support/bitfinex2.py +11 -11
  17. ccxt/async_support/bitflyer.py +10 -10
  18. ccxt/async_support/bitforex.py +6 -6
  19. ccxt/async_support/bitget.py +18 -18
  20. ccxt/async_support/bithumb.py +5 -5
  21. ccxt/async_support/bitmart.py +13 -13
  22. ccxt/async_support/bitmex.py +15 -15
  23. ccxt/async_support/bitopro.py +12 -12
  24. ccxt/async_support/bitpanda.py +12 -12
  25. ccxt/async_support/bitrue.py +11 -11
  26. ccxt/async_support/bitso.py +13 -13
  27. ccxt/async_support/bitstamp.py +12 -12
  28. ccxt/async_support/bitstamp1.py +2 -2
  29. ccxt/async_support/bittrex.py +15 -15
  30. ccxt/async_support/bitvavo.py +11 -11
  31. ccxt/async_support/bkex.py +12 -12
  32. ccxt/async_support/bl3p.py +1 -1
  33. ccxt/async_support/blockchaincom.py +7 -7
  34. ccxt/async_support/btcalpha.py +10 -10
  35. ccxt/async_support/btcbox.py +3 -3
  36. ccxt/async_support/btcmarkets.py +10 -10
  37. ccxt/async_support/btctradeua.py +2 -2
  38. ccxt/async_support/btcturk.py +7 -7
  39. ccxt/async_support/bybit.py +19 -19
  40. ccxt/async_support/cex.py +7 -7
  41. ccxt/async_support/coinbase.py +11 -11
  42. ccxt/async_support/coinbasepro.py +12 -12
  43. ccxt/async_support/coincheck.py +5 -5
  44. ccxt/async_support/coinex.py +19 -19
  45. ccxt/async_support/coinfalcon.py +7 -7
  46. ccxt/async_support/coinmate.py +5 -5
  47. ccxt/async_support/coinone.py +6 -6
  48. ccxt/async_support/coinsph.py +11 -11
  49. ccxt/async_support/coinspot.py +2 -2
  50. ccxt/async_support/cryptocom.py +19 -18
  51. ccxt/async_support/currencycom.py +10 -10
  52. ccxt/async_support/delta.py +10 -10
  53. ccxt/async_support/deribit.py +14 -14
  54. ccxt/async_support/digifinex.py +17 -17
  55. ccxt/async_support/exmo.py +12 -12
  56. ccxt/async_support/gate.py +19 -19
  57. ccxt/async_support/gemini.py +6 -6
  58. ccxt/async_support/hitbtc.py +8 -8
  59. ccxt/async_support/hitbtc3.py +18 -18
  60. ccxt/async_support/hollaex.py +13 -13
  61. ccxt/async_support/huobi.py +21 -21
  62. ccxt/async_support/huobijp.py +13 -13
  63. ccxt/async_support/idex.py +10 -10
  64. ccxt/async_support/independentreserve.py +5 -5
  65. ccxt/async_support/indodax.py +5 -5
  66. ccxt/async_support/kraken.py +14 -14
  67. ccxt/async_support/krakenfutures.py +3 -3
  68. ccxt/async_support/kucoin.py +13 -13
  69. ccxt/async_support/kucoinfutures.py +10 -10
  70. ccxt/async_support/kuna.py +6 -6
  71. ccxt/async_support/latoken.py +8 -8
  72. ccxt/async_support/lbank.py +6 -6
  73. ccxt/async_support/lbank2.py +12 -12
  74. ccxt/async_support/luno.py +7 -7
  75. ccxt/async_support/lykke.py +7 -7
  76. ccxt/async_support/mercado.py +6 -6
  77. ccxt/async_support/mexc.py +26 -61
  78. ccxt/async_support/ndax.py +10 -10
  79. ccxt/async_support/novadax.py +11 -11
  80. ccxt/async_support/oceanex.py +10 -10
  81. ccxt/async_support/okcoin.py +12 -12
  82. ccxt/async_support/okx.py +23 -23
  83. ccxt/async_support/paymium.py +2 -2
  84. ccxt/async_support/phemex.py +16 -16
  85. ccxt/async_support/poloniex.py +12 -12
  86. ccxt/async_support/poloniexfutures.py +10 -10
  87. ccxt/async_support/probit.py +14 -14
  88. ccxt/async_support/tidex.py +6 -6
  89. ccxt/async_support/timex.py +10 -10
  90. ccxt/async_support/tokocrypto.py +12 -12
  91. ccxt/async_support/upbit.py +10 -10
  92. ccxt/async_support/wavesexchange.py +9 -9
  93. ccxt/async_support/wazirx.py +7 -7
  94. ccxt/async_support/whitebit.py +12 -12
  95. ccxt/async_support/woo.py +9 -9
  96. ccxt/async_support/yobit.py +6 -6
  97. ccxt/async_support/zaif.py +4 -4
  98. ccxt/async_support/zonda.py +7 -7
  99. ccxt/base/exchange.py +13 -13
  100. ccxt/bigone.py +11 -11
  101. ccxt/binance.py +34 -34
  102. ccxt/bit2c.py +3 -3
  103. ccxt/bitbank.py +5 -5
  104. ccxt/bitbns.py +7 -7
  105. ccxt/bitfinex.py +13 -13
  106. ccxt/bitfinex2.py +11 -11
  107. ccxt/bitflyer.py +10 -10
  108. ccxt/bitforex.py +6 -6
  109. ccxt/bitget.py +18 -18
  110. ccxt/bithumb.py +5 -5
  111. ccxt/bitmart.py +13 -13
  112. ccxt/bitmex.py +15 -15
  113. ccxt/bitopro.py +12 -12
  114. ccxt/bitpanda.py +12 -12
  115. ccxt/bitrue.py +11 -11
  116. ccxt/bitso.py +13 -13
  117. ccxt/bitstamp.py +12 -12
  118. ccxt/bitstamp1.py +2 -2
  119. ccxt/bittrex.py +15 -15
  120. ccxt/bitvavo.py +11 -11
  121. ccxt/bkex.py +12 -12
  122. ccxt/bl3p.py +1 -1
  123. ccxt/blockchaincom.py +7 -7
  124. ccxt/btcalpha.py +10 -10
  125. ccxt/btcbox.py +3 -3
  126. ccxt/btcmarkets.py +10 -10
  127. ccxt/btctradeua.py +2 -2
  128. ccxt/btcturk.py +7 -7
  129. ccxt/bybit.py +19 -19
  130. ccxt/cex.py +7 -7
  131. ccxt/coinbase.py +11 -11
  132. ccxt/coinbasepro.py +12 -12
  133. ccxt/coincheck.py +5 -5
  134. ccxt/coinex.py +19 -19
  135. ccxt/coinfalcon.py +7 -7
  136. ccxt/coinmate.py +5 -5
  137. ccxt/coinone.py +6 -6
  138. ccxt/coinsph.py +11 -11
  139. ccxt/coinspot.py +2 -2
  140. ccxt/cryptocom.py +19 -18
  141. ccxt/currencycom.py +10 -10
  142. ccxt/delta.py +10 -10
  143. ccxt/deribit.py +14 -14
  144. ccxt/digifinex.py +17 -17
  145. ccxt/exmo.py +12 -12
  146. ccxt/gate.py +19 -19
  147. ccxt/gemini.py +6 -6
  148. ccxt/hitbtc.py +8 -8
  149. ccxt/hitbtc3.py +18 -18
  150. ccxt/hollaex.py +13 -13
  151. ccxt/huobi.py +21 -21
  152. ccxt/huobijp.py +13 -13
  153. ccxt/idex.py +10 -10
  154. ccxt/independentreserve.py +5 -5
  155. ccxt/indodax.py +5 -5
  156. ccxt/kraken.py +14 -14
  157. ccxt/krakenfutures.py +3 -3
  158. ccxt/kucoin.py +13 -13
  159. ccxt/kucoinfutures.py +10 -10
  160. ccxt/kuna.py +6 -6
  161. ccxt/latoken.py +8 -8
  162. ccxt/lbank.py +6 -6
  163. ccxt/lbank2.py +12 -12
  164. ccxt/luno.py +7 -7
  165. ccxt/lykke.py +7 -7
  166. ccxt/mercado.py +6 -6
  167. ccxt/mexc.py +26 -61
  168. ccxt/ndax.py +10 -10
  169. ccxt/novadax.py +11 -11
  170. ccxt/oceanex.py +10 -10
  171. ccxt/okcoin.py +12 -12
  172. ccxt/okx.py +23 -23
  173. ccxt/paymium.py +2 -2
  174. ccxt/phemex.py +16 -16
  175. ccxt/poloniex.py +12 -12
  176. ccxt/poloniexfutures.py +10 -10
  177. ccxt/pro/__init__.py +1 -1
  178. ccxt/pro/alpaca.py +4 -4
  179. ccxt/pro/ascendex.py +3 -3
  180. ccxt/pro/binance.py +5 -5
  181. ccxt/pro/bitfinex.py +2 -2
  182. ccxt/pro/bitfinex2.py +4 -4
  183. ccxt/pro/bitget.py +4 -4
  184. ccxt/pro/bitmart.py +3 -3
  185. ccxt/pro/bitmex.py +4 -4
  186. ccxt/pro/bitopro.py +1 -1
  187. ccxt/pro/bitpanda.py +3 -3
  188. ccxt/pro/bitrue.py +1 -1
  189. ccxt/pro/bitstamp.py +2 -2
  190. ccxt/pro/bittrex.py +4 -4
  191. ccxt/pro/bitvavo.py +4 -4
  192. ccxt/pro/blockchaincom.py +3 -3
  193. ccxt/pro/bybit.py +4 -4
  194. ccxt/pro/cex.py +5 -5
  195. ccxt/pro/coinbasepro.py +3 -3
  196. ccxt/pro/coinex.py +3 -3
  197. ccxt/pro/cryptocom.py +4 -4
  198. ccxt/pro/currencycom.py +2 -2
  199. ccxt/pro/deribit.py +4 -4
  200. ccxt/pro/exmo.py +2 -2
  201. ccxt/pro/gate.py +5 -5
  202. ccxt/pro/gemini.py +3 -3
  203. ccxt/pro/hitbtc.py +2 -2
  204. ccxt/pro/hollaex.py +3 -3
  205. ccxt/pro/huobi.py +4 -4
  206. ccxt/pro/huobijp.py +2 -2
  207. ccxt/pro/idex.py +3 -3
  208. ccxt/pro/independentreserve.py +1 -1
  209. ccxt/pro/kraken.py +4 -4
  210. ccxt/pro/krakenfutures.py +6 -6
  211. ccxt/pro/kucoin.py +4 -4
  212. ccxt/pro/kucoinfutures.py +2 -2
  213. ccxt/pro/luno.py +1 -1
  214. ccxt/pro/mexc.py +4 -4
  215. ccxt/pro/ndax.py +2 -2
  216. ccxt/pro/okcoin.py +3 -3
  217. ccxt/pro/okx.py +3 -3
  218. ccxt/pro/phemex.py +4 -4
  219. ccxt/pro/poloniexfutures.py +3 -3
  220. ccxt/pro/probit.py +2 -2
  221. ccxt/pro/upbit.py +1 -1
  222. ccxt/pro/wazirx.py +4 -4
  223. ccxt/pro/whitebit.py +4 -4
  224. ccxt/probit.py +14 -14
  225. ccxt/tidex.py +6 -6
  226. ccxt/timex.py +10 -10
  227. ccxt/tokocrypto.py +12 -12
  228. ccxt/upbit.py +10 -10
  229. ccxt/wavesexchange.py +9 -9
  230. ccxt/wazirx.py +7 -7
  231. ccxt/whitebit.py +12 -12
  232. ccxt/woo.py +9 -9
  233. ccxt/yobit.py +6 -6
  234. ccxt/zaif.py +4 -4
  235. ccxt/zonda.py +7 -7
  236. {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/METADATA +4 -4
  237. ccxt-4.0.3.dist-info/RECORD +452 -0
  238. ccxt/async_support/btcex.py +0 -2519
  239. ccxt/async_support/buda.py +0 -1063
  240. ccxt/async_support/itbit.py +0 -771
  241. ccxt/async_support/ripio.py +0 -1102
  242. ccxt/async_support/stex.py +0 -2508
  243. ccxt/async_support/xt.py +0 -4420
  244. ccxt/async_support/zb.py +0 -4127
  245. ccxt/btcex.py +0 -2519
  246. ccxt/buda.py +0 -1063
  247. ccxt/itbit.py +0 -771
  248. ccxt/ripio.py +0 -1102
  249. ccxt/stex.py +0 -2508
  250. ccxt/xt.py +0 -4419
  251. ccxt/zb.py +0 -4126
  252. ccxt-3.1.59.dist-info/RECORD +0 -466
  253. {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/WHEEL +0 -0
  254. {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/top_level.txt +0 -0
ccxt/okcoin.py CHANGED
@@ -821,7 +821,7 @@ class okcoin(Exchange, ImplicitAPI):
821
821
  """
822
822
  retrieves data on all markets for okcoin
823
823
  :param dict params: extra parameters specific to the exchange api endpoint
824
- :returns [dict]: an array of objects representing market data
824
+ :returns dict[]: an array of objects representing market data
825
825
  """
826
826
  types = self.safe_value(self.options, 'fetchMarkets')
827
827
  result = []
@@ -1300,7 +1300,7 @@ class okcoin(Exchange, ImplicitAPI):
1300
1300
  def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
1301
1301
  """
1302
1302
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1303
- :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1303
+ :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1304
1304
  :param dict params: extra parameters specific to the okcoin api endpoint
1305
1305
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
1306
1306
  """
@@ -1422,7 +1422,7 @@ class okcoin(Exchange, ImplicitAPI):
1422
1422
  :param int|None since: timestamp in ms of the earliest trade to fetch
1423
1423
  :param int|None limit: the maximum amount of trades to fetch
1424
1424
  :param dict params: extra parameters specific to the okcoin api endpoint
1425
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1425
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1426
1426
  """
1427
1427
  self.load_markets()
1428
1428
  market = self.market(symbol)
@@ -1524,7 +1524,7 @@ class okcoin(Exchange, ImplicitAPI):
1524
1524
  :param int|None since: timestamp in ms of the earliest candle to fetch
1525
1525
  :param int|None limit: the maximum amount of candles to fetch
1526
1526
  :param dict params: extra parameters specific to the okcoin api endpoint
1527
- :returns [[int]]: A list of candles ordered, open, high, low, close, volume
1527
+ :returns int[][]: A list of candles ordered, open, high, low, close, volume
1528
1528
  """
1529
1529
  self.load_markets()
1530
1530
  market = self.market(symbol)
@@ -2386,7 +2386,7 @@ class okcoin(Exchange, ImplicitAPI):
2386
2386
  :param int|None since: the earliest time in ms to fetch open orders for
2387
2387
  :param int|None limit: the maximum number of open orders structures to retrieve
2388
2388
  :param dict params: extra parameters specific to the okcoin api endpoint
2389
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2389
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2390
2390
  """
2391
2391
  # '-2': failed,
2392
2392
  # '-1': cancelled,
@@ -2406,7 +2406,7 @@ class okcoin(Exchange, ImplicitAPI):
2406
2406
  :param int|None since: the earliest time in ms to fetch orders for
2407
2407
  :param int|None limit: the maximum number of orde structures to retrieve
2408
2408
  :param dict params: extra parameters specific to the okcoin api endpoint
2409
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2409
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2410
2410
  """
2411
2411
  # '-2': failed,
2412
2412
  # '-1': cancelled,
@@ -2598,7 +2598,7 @@ class okcoin(Exchange, ImplicitAPI):
2598
2598
  :param int|None since: the earliest time in ms to fetch deposits for
2599
2599
  :param int|None limit: the maximum number of deposits structures to retrieve
2600
2600
  :param dict params: extra parameters specific to the okcoin api endpoint
2601
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2601
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2602
2602
  """
2603
2603
  self.load_markets()
2604
2604
  request = {}
@@ -2618,7 +2618,7 @@ class okcoin(Exchange, ImplicitAPI):
2618
2618
  :param int|None since: the earliest time in ms to fetch withdrawals for
2619
2619
  :param int|None limit: the maximum number of withdrawals structures to retrieve
2620
2620
  :param dict params: extra parameters specific to the okcoin api endpoint
2621
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2621
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2622
2622
  """
2623
2623
  self.load_markets()
2624
2624
  request = {}
@@ -2910,7 +2910,7 @@ class okcoin(Exchange, ImplicitAPI):
2910
2910
  :param int|None since: the earliest time in ms to fetch trades for
2911
2911
  :param int|None limit: the maximum number of trades structures to retrieve
2912
2912
  :param dict params: extra parameters specific to the okcoin api endpoint
2913
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
2913
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
2914
2914
  """
2915
2915
  # okex actually returns ledger entries instead of fills here, so each fill in the order
2916
2916
  # is represented by two trades with opposite buy/sell sides, not one :\
@@ -3014,7 +3014,7 @@ class okcoin(Exchange, ImplicitAPI):
3014
3014
  :param int|None since: the earliest time in ms to fetch trades for
3015
3015
  :param int|None limit: the maximum number of trades to retrieve
3016
3016
  :param dict params: extra parameters specific to the okcoin api endpoint
3017
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3017
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3018
3018
  """
3019
3019
  request = {
3020
3020
  # 'instrument_id': market['id'],
@@ -3233,9 +3233,9 @@ class okcoin(Exchange, ImplicitAPI):
3233
3233
  def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
3234
3234
  """
3235
3235
  fetch all open positions
3236
- :param [str]|None symbols: not used by okcoin fetchPositions
3236
+ :param str[]|None symbols: not used by okcoin fetchPositions
3237
3237
  :param dict params: extra parameters specific to the okcoin api endpoint
3238
- :returns [dict]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
3238
+ :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
3239
3239
  """
3240
3240
  self.load_markets()
3241
3241
  method = None
ccxt/okx.py CHANGED
@@ -1082,7 +1082,7 @@ class okx(Exchange, ImplicitAPI):
1082
1082
  """
1083
1083
  retrieves data on all markets for okx
1084
1084
  :param dict params: extra parameters specific to the exchange api endpoint
1085
- :returns [dict]: an array of objects representing market data
1085
+ :returns dict[]: an array of objects representing market data
1086
1086
  """
1087
1087
  types = self.safe_value(self.options, 'fetchMarkets')
1088
1088
  promises = []
@@ -1618,7 +1618,7 @@ class okx(Exchange, ImplicitAPI):
1618
1618
  def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
1619
1619
  """
1620
1620
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1621
- :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1621
+ :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1622
1622
  :param dict params: extra parameters specific to the okx api endpoint
1623
1623
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
1624
1624
  """
@@ -1730,7 +1730,7 @@ class okx(Exchange, ImplicitAPI):
1730
1730
  :param int|None since: timestamp in ms of the earliest trade to fetch
1731
1731
  :param int|None limit: the maximum amount of trades to fetch
1732
1732
  :param dict params: extra parameters specific to the okx api endpoint
1733
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1733
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1734
1734
  """
1735
1735
  self.load_markets()
1736
1736
  market = self.market(symbol)
@@ -1823,7 +1823,7 @@ class okx(Exchange, ImplicitAPI):
1823
1823
  :param dict params: extra parameters specific to the okx api endpoint
1824
1824
  :param str|None params['price']: "mark" or "index" for mark price and index price candles
1825
1825
  :param int|None params['until']: timestamp in ms of the latest candle to fetch
1826
- :returns [[int]]: A list of candles ordered, open, high, low, close, volume
1826
+ :returns int[][]: A list of candles ordered, open, high, low, close, volume
1827
1827
  """
1828
1828
  self.load_markets()
1829
1829
  market = self.market(symbol)
@@ -1890,7 +1890,7 @@ class okx(Exchange, ImplicitAPI):
1890
1890
  :param int|None since: timestamp in ms of the earliest funding rate to fetch
1891
1891
  :param int|None limit: the maximum amount of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>` to fetch
1892
1892
  :param dict params: extra parameters specific to the okx api endpoint
1893
- :returns [dict]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
1893
+ :returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
1894
1894
  """
1895
1895
  if symbol is None:
1896
1896
  raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
@@ -2502,8 +2502,8 @@ class okx(Exchange, ImplicitAPI):
2502
2502
  def parse_ids(self, ids):
2503
2503
  """
2504
2504
  * @ignore
2505
- :param [str]|str ids: order ids
2506
- :returns [str]: list of order ids
2505
+ :param string[]|str ids: order ids
2506
+ :returns str[]: list of order ids
2507
2507
  """
2508
2508
  if isinstance(ids, str):
2509
2509
  return ids.split(',')
@@ -2513,7 +2513,7 @@ class okx(Exchange, ImplicitAPI):
2513
2513
  def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
2514
2514
  """
2515
2515
  cancel multiple orders
2516
- :param [str] ids: order ids
2516
+ :param str[] ids: order ids
2517
2517
  :param str symbol: unified market symbol
2518
2518
  :param dict params: extra parameters specific to the okx api endpoint
2519
2519
  :returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2940,7 +2940,7 @@ class okx(Exchange, ImplicitAPI):
2940
2940
  :param bool params['stop']: True if fetching trigger or conditional orders
2941
2941
  :param str params['ordType']: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
2942
2942
  :param str|None params['algoId']: Algo ID "'433845797218942976'"
2943
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2943
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2944
2944
  """
2945
2945
  self.load_markets()
2946
2946
  request = {
@@ -3244,7 +3244,7 @@ class okx(Exchange, ImplicitAPI):
3244
3244
  :param str params['ordType']: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3245
3245
  :param str|None params['algoId']: Algo ID "'433845797218942976'"
3246
3246
  :param int|None params['until']: timestamp in ms to fetch orders for
3247
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
3247
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
3248
3248
  """
3249
3249
  self.load_markets()
3250
3250
  request = {
@@ -3395,7 +3395,7 @@ class okx(Exchange, ImplicitAPI):
3395
3395
  :param int|None since: the earliest time in ms to fetch trades for
3396
3396
  :param int|None limit: the maximum number of trades structures to retrieve
3397
3397
  :param dict params: extra parameters specific to the okx api endpoint
3398
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3398
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3399
3399
  """
3400
3400
  self.load_markets()
3401
3401
  request = {
@@ -3452,7 +3452,7 @@ class okx(Exchange, ImplicitAPI):
3452
3452
  :param int|None since: the earliest time in ms to fetch trades for
3453
3453
  :param int|None limit: the maximum number of trades to retrieve
3454
3454
  :param dict params: extra parameters specific to the okx api endpoint
3455
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3455
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
3456
3456
  """
3457
3457
  request = {
3458
3458
  # 'instrument_id': market['id'],
@@ -3892,7 +3892,7 @@ class okx(Exchange, ImplicitAPI):
3892
3892
  :param int|None since: the earliest time in ms to fetch deposits for
3893
3893
  :param int|None limit: the maximum number of deposits structures to retrieve
3894
3894
  :param dict params: extra parameters specific to the okx api endpoint
3895
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
3895
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
3896
3896
  """
3897
3897
  self.load_markets()
3898
3898
  request = {
@@ -3982,7 +3982,7 @@ class okx(Exchange, ImplicitAPI):
3982
3982
  :param int|None since: the earliest time in ms to fetch withdrawals for
3983
3983
  :param int|None limit: the maximum number of withdrawals structures to retrieve
3984
3984
  :param dict params: extra parameters specific to the okx api endpoint
3985
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
3985
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
3986
3986
  """
3987
3987
  self.load_markets()
3988
3988
  request = {
@@ -4319,10 +4319,10 @@ class okx(Exchange, ImplicitAPI):
4319
4319
  """
4320
4320
  see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
4321
4321
  fetch all open positions
4322
- :param [str]|None symbols: list of unified market symbols
4322
+ :param str[]|None symbols: list of unified market symbols
4323
4323
  :param dict params: extra parameters specific to the okx api endpoint
4324
4324
  :param str|None params['instType']: MARGIN, SWAP, FUTURES, OPTION
4325
- :returns [dict]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
4325
+ :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
4326
4326
  """
4327
4327
  self.load_markets()
4328
4328
  request = {
@@ -4701,7 +4701,7 @@ class okx(Exchange, ImplicitAPI):
4701
4701
  :param int|None since: the earliest time in ms to fetch transfers for
4702
4702
  :param int|None limit: the maximum number of transfers structures to retrieve
4703
4703
  :param dict params: extra parameters specific to the okx api endpoint
4704
- :returns [dict]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
4704
+ :returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
4705
4705
  """
4706
4706
  self.load_markets()
4707
4707
  currency = None
@@ -5277,7 +5277,7 @@ class okx(Exchange, ImplicitAPI):
5277
5277
  def fetch_borrow_rate_histories(self, codes=None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
5278
5278
  """
5279
5279
  retrieves a history of a multiple currencies borrow interest rate at specific time slots, returns all currencies if no symbols passed, default is None
5280
- :param [str]|None codes: list of unified currency codes, default is None
5280
+ :param str[]|None codes: list of unified currency codes, default is None
5281
5281
  :param int|None since: timestamp in ms of the earliest borrowRate, default is None
5282
5282
  :param int|None limit: max number of borrow rate prices to return, default is None
5283
5283
  :param dict params: extra parameters specific to the okx api endpoint
@@ -5319,7 +5319,7 @@ class okx(Exchange, ImplicitAPI):
5319
5319
  :param int|None since: timestamp for the earliest borrow rate
5320
5320
  :param int|None limit: the maximum number of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>` to retrieve
5321
5321
  :param dict params: extra parameters specific to the exchange api endpoint
5322
- :returns [dict]: an array of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
5322
+ :returns dict[]: an array of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
5323
5323
  """
5324
5324
  self.load_markets()
5325
5325
  currency = self.currency(code)
@@ -5520,7 +5520,7 @@ class okx(Exchange, ImplicitAPI):
5520
5520
  :param dict params: exchange specific parameters
5521
5521
  :param int|None params['type']: Loan type 1 - VIP loans 2 - Market loans *Default is Market loans*
5522
5522
  :param str params['marginMode']: 'cross' or 'isolated'
5523
- :returns [dict]: An list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
5523
+ :returns dict[]: An list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
5524
5524
  """
5525
5525
  self.load_markets()
5526
5526
  marginMode = None
@@ -5852,9 +5852,9 @@ class okx(Exchange, ImplicitAPI):
5852
5852
  """
5853
5853
  fetch deposit and withdraw fees
5854
5854
  see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
5855
- :param [str]|None codes: list of unified currency codes
5855
+ :param str[]|None codes: list of unified currency codes
5856
5856
  :param dict params: extra parameters specific to the okx api endpoint
5857
- :returns [dict]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
5857
+ :returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
5858
5858
  """
5859
5859
  self.load_markets()
5860
5860
  response = self.privateGetAssetCurrencies(params)
@@ -5969,7 +5969,7 @@ class okx(Exchange, ImplicitAPI):
5969
5969
  :param int since: timestamp in ms
5970
5970
  :param int limit: number of records
5971
5971
  :param dict params: exchange specific params
5972
- :returns [dict]: a list of [settlement history objects]
5972
+ :returns dict[]: a list of [settlement history objects]
5973
5973
  """
5974
5974
  self.check_required_symbol('fetchSettlementHistory', symbol)
5975
5975
  self.load_markets()
ccxt/paymium.py CHANGED
@@ -272,7 +272,7 @@ class paymium(Exchange, ImplicitAPI):
272
272
  :param int|None since: timestamp in ms of the earliest trade to fetch
273
273
  :param int|None limit: the maximum amount of trades to fetch
274
274
  :param dict params: extra parameters specific to the paymium api endpoint
275
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
275
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
276
276
  """
277
277
  self.load_markets()
278
278
  market = self.market(symbol)
@@ -329,7 +329,7 @@ class paymium(Exchange, ImplicitAPI):
329
329
  """
330
330
  fetch deposit addresses for multiple currencies and chain types
331
331
  see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/get
332
- :param [str]|None codes: list of unified currency codes, default is None
332
+ :param str[]|None codes: list of unified currency codes, default is None
333
333
  :param dict params: extra parameters specific to the paymium api endpoint
334
334
  :returns dict: a list of `address structures <https://docs.ccxt.com/#/?id=address-structure>`
335
335
  """
ccxt/phemex.py CHANGED
@@ -707,7 +707,7 @@ class phemex(Exchange, ImplicitAPI):
707
707
  """
708
708
  retrieves data on all markets for phemex
709
709
  :param dict params: extra parameters specific to the exchange api endpoint
710
- :returns [dict]: an array of objects representing market data
710
+ :returns dict[]: an array of objects representing market data
711
711
  """
712
712
  v2Products = self.publicGetCfgV2Products(params)
713
713
  #
@@ -1084,7 +1084,7 @@ class phemex(Exchange, ImplicitAPI):
1084
1084
  :param int|None since: *emulated not supported by the exchange* timestamp in ms of the earliest candle to fetch
1085
1085
  :param int|None limit: the maximum amount of candles to fetch
1086
1086
  :param dict params: extra parameters specific to the phemex api endpoint
1087
- :returns [[int]]: A list of candles ordered, open, high, low, close, volume
1087
+ :returns int[][]: A list of candles ordered, open, high, low, close, volume
1088
1088
  """
1089
1089
  self.load_markets()
1090
1090
  market = self.market(symbol)
@@ -1192,7 +1192,7 @@ class phemex(Exchange, ImplicitAPI):
1192
1192
  symbol = market['symbol']
1193
1193
  timestamp = self.safe_integer_product(ticker, 'timestamp', 0.000001)
1194
1194
  last = self.from_ep(self.safe_string_2(ticker, 'lastEp', 'closeRp'), market)
1195
- quoteVolume = self.from_ev(self.safe_string_2(ticker, 'turnoverEv', 'turnoverRv'), market)
1195
+ quoteVolume = self.from_er(self.safe_string_2(ticker, 'turnoverEv', 'turnoverRv'), market)
1196
1196
  baseVolume = self.safe_string(ticker, 'volume')
1197
1197
  if baseVolume is None:
1198
1198
  baseVolume = self.from_ev(self.safe_string_2(ticker, 'volumeEv', 'volumeRq'), market)
@@ -1294,7 +1294,7 @@ class phemex(Exchange, ImplicitAPI):
1294
1294
  see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols-2 # spot
1295
1295
  see https://phemex-docs.github.io/#query-24-ticker-for-all-symbols # linear
1296
1296
  see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols # inverse
1297
- :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1297
+ :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1298
1298
  :param dict params: extra parameters specific to the phemex api endpoint
1299
1299
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
1300
1300
  """
@@ -1328,7 +1328,7 @@ class phemex(Exchange, ImplicitAPI):
1328
1328
  :param int|None since: timestamp in ms of the earliest trade to fetch
1329
1329
  :param int|None limit: the maximum amount of trades to fetch
1330
1330
  :param dict params: extra parameters specific to the phemex api endpoint
1331
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1331
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
1332
1332
  """
1333
1333
  self.load_markets()
1334
1334
  market = self.market(symbol)
@@ -2542,7 +2542,7 @@ class phemex(Exchange, ImplicitAPI):
2542
2542
  see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
2543
2543
  :param str symbol: unified market symbol of the market to cancel orders in
2544
2544
  :param dict params: extra parameters specific to the phemex api endpoint
2545
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2545
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2546
2546
  """
2547
2547
  if symbol is None:
2548
2548
  raise ArgumentsRequired(self.id + ' cancelAllOrders() requires a symbol argument')
@@ -2605,7 +2605,7 @@ class phemex(Exchange, ImplicitAPI):
2605
2605
  :param int|None since: the earliest time in ms to fetch orders for
2606
2606
  :param int|None limit: the maximum number of orde structures to retrieve
2607
2607
  :param dict params: extra parameters specific to the phemex api endpoint
2608
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2608
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2609
2609
  """
2610
2610
  if symbol is None:
2611
2611
  raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
@@ -2638,7 +2638,7 @@ class phemex(Exchange, ImplicitAPI):
2638
2638
  :param int|None since: the earliest time in ms to fetch open orders for
2639
2639
  :param int|None limit: the maximum number of open orders structures to retrieve
2640
2640
  :param dict params: extra parameters specific to the phemex api endpoint
2641
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2641
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2642
2642
  """
2643
2643
  if symbol is None:
2644
2644
  raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
@@ -2674,7 +2674,7 @@ class phemex(Exchange, ImplicitAPI):
2674
2674
  :param int|None since: the earliest time in ms to fetch orders for
2675
2675
  :param int|None limit: the maximum number of orde structures to retrieve
2676
2676
  :param dict params: extra parameters specific to the phemex api endpoint
2677
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2677
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
2678
2678
  """
2679
2679
  if symbol is None:
2680
2680
  raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires a symbol argument')
@@ -2746,7 +2746,7 @@ class phemex(Exchange, ImplicitAPI):
2746
2746
  :param int|None since: the earliest time in ms to fetch trades for
2747
2747
  :param int|None limit: the maximum number of trades structures to retrieve
2748
2748
  :param dict params: extra parameters specific to the phemex api endpoint
2749
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
2749
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
2750
2750
  """
2751
2751
  if symbol is None:
2752
2752
  raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
@@ -2934,7 +2934,7 @@ class phemex(Exchange, ImplicitAPI):
2934
2934
  :param int|None since: the earliest time in ms to fetch deposits for
2935
2935
  :param int|None limit: the maximum number of deposits structures to retrieve
2936
2936
  :param dict params: extra parameters specific to the phemex api endpoint
2937
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2937
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2938
2938
  """
2939
2939
  self.load_markets()
2940
2940
  currency = None
@@ -2971,7 +2971,7 @@ class phemex(Exchange, ImplicitAPI):
2971
2971
  :param int|None since: the earliest time in ms to fetch withdrawals for
2972
2972
  :param int|None limit: the maximum number of withdrawals structures to retrieve
2973
2973
  :param dict params: extra parameters specific to the phemex api endpoint
2974
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2974
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
2975
2975
  """
2976
2976
  self.load_markets()
2977
2977
  currency = None
@@ -3089,9 +3089,9 @@ class phemex(Exchange, ImplicitAPI):
3089
3089
  fetch all open positions
3090
3090
  see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#query-trading-account-and-positions
3091
3091
  see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
3092
- :param [str]|None symbols: list of unified market symbols
3092
+ :param str[]|None symbols: list of unified market symbols
3093
3093
  :param dict params: extra parameters specific to the phemex api endpoint
3094
- :returns [dict]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
3094
+ :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
3095
3095
  """
3096
3096
  self.load_markets()
3097
3097
  symbols = self.market_symbols(symbols)
@@ -3618,7 +3618,7 @@ class phemex(Exchange, ImplicitAPI):
3618
3618
  def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
3619
3619
  """
3620
3620
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
3621
- :param [str]|None symbols: list of unified market symbols
3621
+ :param str[]|None symbols: list of unified market symbols
3622
3622
  :param dict params: extra parameters specific to the phemex api endpoint
3623
3623
  :returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
3624
3624
  """
@@ -3894,7 +3894,7 @@ class phemex(Exchange, ImplicitAPI):
3894
3894
  :param int|None since: the earliest time in ms to fetch transfers for
3895
3895
  :param int|None limit: the maximum number of transfers structures to retrieve
3896
3896
  :param dict params: extra parameters specific to the phemex api endpoint
3897
- :returns [dict]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
3897
+ :returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
3898
3898
  """
3899
3899
  self.load_markets()
3900
3900
  if code is None:
ccxt/poloniex.py CHANGED
@@ -421,7 +421,7 @@ class poloniex(Exchange, ImplicitAPI):
421
421
  :param int|None since: timestamp in ms of the earliest candle to fetch
422
422
  :param int|None limit: the maximum amount of candles to fetch
423
423
  :param dict params: extra parameters specific to the poloniex api endpoint
424
- :returns [[int]]: A list of candles ordered, open, high, low, close, volume
424
+ :returns int[][]: A list of candles ordered, open, high, low, close, volume
425
425
  """
426
426
  self.load_markets()
427
427
  market = self.market(symbol)
@@ -469,7 +469,7 @@ class poloniex(Exchange, ImplicitAPI):
469
469
  retrieves data on all markets for poloniex
470
470
  see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
471
471
  :param dict params: extra parameters specific to the exchange api endpoint
472
- :returns [dict]: an array of objects representing market data
472
+ :returns dict[]: an array of objects representing market data
473
473
  """
474
474
  markets = self.publicGetMarkets(params)
475
475
  #
@@ -615,7 +615,7 @@ class poloniex(Exchange, ImplicitAPI):
615
615
  """
616
616
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
617
617
  see https://docs.poloniex.com/#public-endpoints-market-data-ticker
618
- :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
618
+ :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
619
619
  :param dict params: extra parameters specific to the poloniex api endpoint
620
620
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
621
621
  """
@@ -901,7 +901,7 @@ class poloniex(Exchange, ImplicitAPI):
901
901
  :param int|None since: timestamp in ms of the earliest trade to fetch
902
902
  :param int|None limit: the maximum amount of trades to fetch
903
903
  :param dict params: extra parameters specific to the poloniex api endpoint
904
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
904
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
905
905
  """
906
906
  self.load_markets()
907
907
  market = self.market(symbol)
@@ -934,7 +934,7 @@ class poloniex(Exchange, ImplicitAPI):
934
934
  :param int|None since: the earliest time in ms to fetch trades for
935
935
  :param int|None limit: the maximum number of trades structures to retrieve
936
936
  :param dict params: extra parameters specific to the poloniex api endpoint
937
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
937
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
938
938
  """
939
939
  self.load_markets()
940
940
  market = None
@@ -1125,7 +1125,7 @@ class poloniex(Exchange, ImplicitAPI):
1125
1125
  :param int|None since: the earliest time in ms to fetch open orders for
1126
1126
  :param int|None limit: the maximum number of open orders structures to retrieve
1127
1127
  :param dict params: extra parameters specific to the poloniex api endpoint
1128
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1128
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1129
1129
  """
1130
1130
  self.load_markets()
1131
1131
  market = None
@@ -1282,7 +1282,7 @@ class poloniex(Exchange, ImplicitAPI):
1282
1282
  see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1283
1283
  :param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1284
1284
  :param dict params: extra parameters specific to the poloniex api endpoint
1285
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1285
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1286
1286
  """
1287
1287
  self.load_markets()
1288
1288
  request = {
@@ -1368,7 +1368,7 @@ class poloniex(Exchange, ImplicitAPI):
1368
1368
  :param int|None since: the earliest time in ms to fetch trades for
1369
1369
  :param int|None limit: the maximum number of trades to retrieve
1370
1370
  :param dict params: extra parameters specific to the poloniex api endpoint
1371
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1371
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1372
1372
  """
1373
1373
  self.load_markets()
1374
1374
  request = {
@@ -1815,7 +1815,7 @@ class poloniex(Exchange, ImplicitAPI):
1815
1815
  :param int|None since: the earliest time in ms to fetch withdrawals for
1816
1816
  :param int|None limit: the maximum number of withdrawals structures to retrieve
1817
1817
  :param dict params: extra parameters specific to the poloniex api endpoint
1818
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
1818
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
1819
1819
  """
1820
1820
  response = self.fetch_transactions_helper(code, since, limit, params)
1821
1821
  currency = None
@@ -1829,9 +1829,9 @@ class poloniex(Exchange, ImplicitAPI):
1829
1829
  """
1830
1830
  fetch deposit and withdraw fees
1831
1831
  see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
1832
- :param [str]|None codes: list of unified currency codes
1832
+ :param str[]|None codes: list of unified currency codes
1833
1833
  :param dict params: extra parameters specific to the poloniex api endpoint
1834
- :returns [dict]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
1834
+ :returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
1835
1835
  """
1836
1836
  self.load_markets()
1837
1837
  response = self.publicGetCurrencies(self.extend(params, {'includeMultiChainCurrencies': True}))
@@ -1950,7 +1950,7 @@ class poloniex(Exchange, ImplicitAPI):
1950
1950
  :param int|None since: the earliest time in ms to fetch deposits for
1951
1951
  :param int|None limit: the maximum number of deposits structures to retrieve
1952
1952
  :param dict params: extra parameters specific to the poloniex api endpoint
1953
- :returns [dict]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
1953
+ :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
1954
1954
  """
1955
1955
  response = self.fetch_transactions_helper(code, since, limit, params)
1956
1956
  currency = None
ccxt/poloniexfutures.py CHANGED
@@ -213,7 +213,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
213
213
  retrieves data on all markets for poloniexfutures
214
214
  see https://futures-docs.poloniex.com/#symbol-2
215
215
  :param dict params: extra parameters specific to the exchange api endpoint
216
- :returns [dict]: an array of objects representing market data
216
+ :returns dict[]: an array of objects representing market data
217
217
  """
218
218
  response = self.publicGetContractsActive(params)
219
219
  #
@@ -440,7 +440,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
440
440
  """
441
441
  fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
442
442
  see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
443
- :param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
443
+ :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
444
444
  :param dict params: extra parameters specific to the poloniexfutures api endpoint
445
445
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
446
446
  """
@@ -635,7 +635,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
635
635
  :param int|None since: timestamp in ms of the earliest trade to fetch
636
636
  :param int|None limit: the maximum amount of trades to fetch
637
637
  :param dict params: extra parameters specific to the poloniexfutures api endpoint
638
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
638
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
639
639
  """
640
640
  self.load_markets()
641
641
  market = self.market(symbol)
@@ -688,7 +688,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
688
688
  :param int|None since: timestamp in ms of the earliest candle to fetch
689
689
  :param int|None limit: the maximum amount of candles to fetch
690
690
  :param dict params: extra parameters specific to the poloniexfutures api endpoint
691
- :returns [[int]]: A list of candles ordered, open, high, low, close, volume
691
+ :returns int[][]: A list of candles ordered, open, high, low, close, volume
692
692
  """
693
693
  self.load_markets()
694
694
  market = self.market(symbol)
@@ -912,9 +912,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
912
912
  """
913
913
  fetch all open positions
914
914
  see https://futures-docs.poloniex.com/#get-position-list
915
- :param [str]|None symbols: list of unified market symbols
915
+ :param str[]|None symbols: list of unified market symbols
916
916
  :param dict params: extra parameters specific to the poloniexfutures api endpoint
917
- :returns [dict]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
917
+ :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
918
918
  """
919
919
  self.load_markets()
920
920
  response = self.privateGetPositions(params)
@@ -1129,7 +1129,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1129
1129
  :param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1130
1130
  :param dict params: extra parameters specific to the poloniexfutures api endpoint
1131
1131
  :param dict params['stop']: When True, all the trigger orders will be cancelled
1132
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1132
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1133
1133
  """
1134
1134
  self.load_markets()
1135
1135
  request = {}
@@ -1286,7 +1286,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1286
1286
  :param int|None params['till']: end time in ms
1287
1287
  :param str|None params['side']: buy or sell
1288
1288
  :param str|None params['type']: limit, or market
1289
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1289
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1290
1290
  """
1291
1291
  return self.fetch_orders_by_status('open', symbol, since, limit, params)
1292
1292
 
@@ -1302,7 +1302,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1302
1302
  :param int|None params['till']: end time in ms
1303
1303
  :param str|None params['side']: buy or sell
1304
1304
  :param str|None params['type']: limit, or market
1305
- :returns [dict]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1305
+ :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
1306
1306
  """
1307
1307
  return self.fetch_orders_by_status('closed', symbol, since, limit, params)
1308
1308
 
@@ -1555,7 +1555,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1555
1555
  :param str|None side: buy or sell
1556
1556
  :param str|None type: limit, market, limit_stop or market_stop
1557
1557
  :param int|None endAt: end time(milisecond)
1558
- :returns [dict]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1558
+ :returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
1559
1559
  """
1560
1560
  self.load_markets()
1561
1561
  request = {
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '3.1.59'
7
+ __version__ = '4.0.3'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10