ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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 (268) 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/base/ws/aiohttp_client.py +25 -3
  11. ccxt/async_support/bigone.py +71 -27
  12. ccxt/async_support/binance.py +555 -323
  13. ccxt/async_support/bingx.py +208 -108
  14. ccxt/async_support/bit2c.py +34 -12
  15. ccxt/async_support/bitbank.py +42 -14
  16. ccxt/async_support/bitbns.py +17 -9
  17. ccxt/async_support/bitfinex.py +68 -24
  18. ccxt/async_support/bitfinex2.py +116 -44
  19. ccxt/async_support/bitflyer.py +54 -18
  20. ccxt/async_support/bitget.py +277 -145
  21. ccxt/async_support/bithumb.py +39 -14
  22. ccxt/async_support/bitmart.py +145 -79
  23. ccxt/async_support/bitmex.py +90 -30
  24. ccxt/async_support/bitopro.py +66 -22
  25. ccxt/async_support/bitrue.py +109 -57
  26. ccxt/async_support/bitso.py +55 -19
  27. ccxt/async_support/bitstamp.py +84 -36
  28. ccxt/async_support/bitteam.py +51 -17
  29. ccxt/async_support/bitvavo.py +57 -22
  30. ccxt/async_support/bl3p.py +26 -10
  31. ccxt/async_support/blockchaincom.py +63 -21
  32. ccxt/async_support/blofin.py +95 -38
  33. ccxt/async_support/btcalpha.py +48 -16
  34. ccxt/async_support/btcbox.py +27 -9
  35. ccxt/async_support/btcmarkets.py +57 -19
  36. ccxt/async_support/btcturk.py +36 -12
  37. ccxt/async_support/bybit.py +251 -95
  38. ccxt/async_support/cex.py +65 -22
  39. ccxt/async_support/coinbase.py +138 -56
  40. ccxt/async_support/coinbaseexchange.py +76 -28
  41. ccxt/async_support/coinbaseinternational.py +75 -27
  42. ccxt/async_support/coincatch.py +191 -97
  43. ccxt/async_support/coincheck.py +33 -11
  44. ccxt/async_support/coinex.py +212 -101
  45. ccxt/async_support/coinlist.py +87 -30
  46. ccxt/async_support/coinmate.py +55 -24
  47. ccxt/async_support/coinmetro.py +52 -18
  48. ccxt/async_support/coinone.py +27 -10
  49. ccxt/async_support/coinsph.py +73 -27
  50. ccxt/async_support/coinspot.py +25 -9
  51. ccxt/async_support/cryptocom.py +103 -38
  52. ccxt/async_support/currencycom.py +70 -23
  53. ccxt/async_support/delta.py +90 -30
  54. ccxt/async_support/deribit.py +131 -50
  55. ccxt/async_support/digifinex.py +114 -51
  56. ccxt/async_support/exmo.py +104 -45
  57. ccxt/async_support/gate.py +313 -157
  58. ccxt/async_support/gemini.py +57 -20
  59. ccxt/async_support/hashkey.py +151 -66
  60. ccxt/async_support/hitbtc.py +157 -74
  61. ccxt/async_support/hollaex.py +76 -25
  62. ccxt/async_support/htx.py +297 -240
  63. ccxt/async_support/huobijp.py +1 -0
  64. ccxt/async_support/hyperliquid.py +94 -38
  65. ccxt/async_support/idex.py +73 -24
  66. ccxt/async_support/independentreserve.py +12 -5
  67. ccxt/async_support/indodax.py +54 -17
  68. ccxt/async_support/kraken.py +108 -36
  69. ccxt/async_support/krakenfutures.py +88 -34
  70. ccxt/async_support/kucoin.py +214 -110
  71. ccxt/async_support/kucoinfutures.py +209 -64
  72. ccxt/async_support/kuna.py +80 -39
  73. ccxt/async_support/latoken.py +70 -33
  74. ccxt/async_support/lbank.py +89 -38
  75. ccxt/async_support/luno.py +54 -19
  76. ccxt/async_support/lykke.py +54 -19
  77. ccxt/async_support/mercado.py +1 -0
  78. ccxt/async_support/mexc.py +226 -108
  79. ccxt/async_support/ndax.py +58 -19
  80. ccxt/async_support/novadax.py +67 -22
  81. ccxt/async_support/oceanex.py +58 -19
  82. ccxt/async_support/okcoin.py +81 -38
  83. ccxt/async_support/okx.py +270 -109
  84. ccxt/async_support/onetrading.py +3 -1
  85. ccxt/async_support/oxfun.py +95 -36
  86. ccxt/async_support/p2b.py +49 -23
  87. ccxt/async_support/paradex.py +75 -27
  88. ccxt/async_support/paymium.py +31 -11
  89. ccxt/async_support/phemex.py +108 -56
  90. ccxt/async_support/poloniex.py +80 -30
  91. ccxt/async_support/poloniexfutures.py +72 -30
  92. ccxt/async_support/probit.py +64 -22
  93. ccxt/async_support/timex.py +58 -19
  94. ccxt/async_support/tokocrypto.py +63 -22
  95. ccxt/async_support/tradeogre.py +7 -2
  96. ccxt/async_support/upbit.py +72 -25
  97. ccxt/async_support/vertex.py +74 -28
  98. ccxt/async_support/wavesexchange.py +32 -8
  99. ccxt/async_support/wazirx.py +51 -17
  100. ccxt/async_support/whitebit.py +105 -41
  101. ccxt/async_support/woo.py +162 -65
  102. ccxt/async_support/woofipro.py +119 -50
  103. ccxt/async_support/xt.py +150 -73
  104. ccxt/async_support/yobit.py +49 -16
  105. ccxt/async_support/zaif.py +30 -10
  106. ccxt/async_support/zonda.py +46 -16
  107. ccxt/base/exchange.py +47 -35
  108. ccxt/base/types.py +1 -0
  109. ccxt/bigone.py +71 -27
  110. ccxt/binance.py +555 -323
  111. ccxt/bingx.py +208 -108
  112. ccxt/bit2c.py +34 -12
  113. ccxt/bitbank.py +42 -14
  114. ccxt/bitbns.py +17 -9
  115. ccxt/bitfinex.py +68 -24
  116. ccxt/bitfinex2.py +116 -44
  117. ccxt/bitflyer.py +54 -18
  118. ccxt/bitget.py +277 -145
  119. ccxt/bithumb.py +39 -14
  120. ccxt/bitmart.py +145 -79
  121. ccxt/bitmex.py +90 -30
  122. ccxt/bitopro.py +66 -22
  123. ccxt/bitrue.py +109 -57
  124. ccxt/bitso.py +55 -19
  125. ccxt/bitstamp.py +84 -36
  126. ccxt/bitteam.py +51 -17
  127. ccxt/bitvavo.py +57 -22
  128. ccxt/bl3p.py +26 -10
  129. ccxt/blockchaincom.py +63 -21
  130. ccxt/blofin.py +95 -38
  131. ccxt/btcalpha.py +48 -16
  132. ccxt/btcbox.py +27 -9
  133. ccxt/btcmarkets.py +57 -19
  134. ccxt/btcturk.py +36 -12
  135. ccxt/bybit.py +251 -95
  136. ccxt/cex.py +65 -22
  137. ccxt/coinbase.py +138 -56
  138. ccxt/coinbaseexchange.py +76 -28
  139. ccxt/coinbaseinternational.py +75 -27
  140. ccxt/coincatch.py +191 -97
  141. ccxt/coincheck.py +33 -11
  142. ccxt/coinex.py +212 -101
  143. ccxt/coinlist.py +87 -30
  144. ccxt/coinmate.py +55 -24
  145. ccxt/coinmetro.py +52 -18
  146. ccxt/coinone.py +27 -10
  147. ccxt/coinsph.py +73 -27
  148. ccxt/coinspot.py +25 -9
  149. ccxt/cryptocom.py +103 -38
  150. ccxt/currencycom.py +70 -23
  151. ccxt/delta.py +90 -30
  152. ccxt/deribit.py +131 -50
  153. ccxt/digifinex.py +114 -51
  154. ccxt/exmo.py +104 -45
  155. ccxt/gate.py +313 -157
  156. ccxt/gemini.py +57 -20
  157. ccxt/hashkey.py +151 -66
  158. ccxt/hitbtc.py +157 -74
  159. ccxt/hollaex.py +76 -25
  160. ccxt/htx.py +297 -240
  161. ccxt/huobijp.py +1 -0
  162. ccxt/hyperliquid.py +94 -38
  163. ccxt/idex.py +73 -24
  164. ccxt/independentreserve.py +12 -5
  165. ccxt/indodax.py +54 -17
  166. ccxt/kraken.py +108 -36
  167. ccxt/krakenfutures.py +88 -34
  168. ccxt/kucoin.py +214 -110
  169. ccxt/kucoinfutures.py +209 -64
  170. ccxt/kuna.py +80 -39
  171. ccxt/latoken.py +70 -33
  172. ccxt/lbank.py +89 -38
  173. ccxt/luno.py +54 -19
  174. ccxt/lykke.py +54 -19
  175. ccxt/mercado.py +1 -0
  176. ccxt/mexc.py +226 -108
  177. ccxt/ndax.py +58 -19
  178. ccxt/novadax.py +67 -22
  179. ccxt/oceanex.py +58 -19
  180. ccxt/okcoin.py +81 -38
  181. ccxt/okx.py +270 -109
  182. ccxt/onetrading.py +3 -1
  183. ccxt/oxfun.py +95 -36
  184. ccxt/p2b.py +49 -23
  185. ccxt/paradex.py +75 -27
  186. ccxt/paymium.py +31 -11
  187. ccxt/phemex.py +108 -56
  188. ccxt/poloniex.py +80 -30
  189. ccxt/poloniexfutures.py +72 -30
  190. ccxt/pro/__init__.py +1 -1
  191. ccxt/pro/alpaca.py +15 -5
  192. ccxt/pro/ascendex.py +18 -6
  193. ccxt/pro/binance.py +204 -123
  194. ccxt/pro/bingx.py +44 -24
  195. ccxt/pro/bitfinex.py +13 -5
  196. ccxt/pro/bitget.py +76 -37
  197. ccxt/pro/bithumb.py +12 -4
  198. ccxt/pro/bitmart.py +44 -20
  199. ccxt/pro/bitmex.py +42 -14
  200. ccxt/pro/bitopro.py +15 -5
  201. ccxt/pro/bitrue.py +7 -3
  202. ccxt/pro/bitvavo.py +97 -62
  203. ccxt/pro/blockchaincom.py +18 -6
  204. ccxt/pro/blofin.py +36 -12
  205. ccxt/pro/bybit.py +100 -42
  206. ccxt/pro/cex.py +48 -16
  207. ccxt/pro/coinbase.py +32 -12
  208. ccxt/pro/coinbaseexchange.py +1 -1
  209. ccxt/pro/coinbaseinternational.py +34 -14
  210. ccxt/pro/coincatch.py +54 -19
  211. ccxt/pro/coincheck.py +6 -2
  212. ccxt/pro/coinex.py +40 -20
  213. ccxt/pro/coinone.py +9 -3
  214. ccxt/pro/cryptocom.py +71 -27
  215. ccxt/pro/deribit.py +36 -12
  216. ccxt/pro/exmo.py +10 -4
  217. ccxt/pro/gate.py +65 -31
  218. ccxt/pro/gemini.py +21 -7
  219. ccxt/pro/hashkey.py +27 -9
  220. ccxt/pro/hitbtc.py +61 -37
  221. ccxt/pro/hollaex.py +15 -5
  222. ccxt/pro/htx.py +39 -21
  223. ccxt/pro/hyperliquid.py +41 -14
  224. ccxt/pro/kraken.py +49 -17
  225. ccxt/pro/krakenfutures.py +47 -24
  226. ccxt/pro/kucoin.py +60 -31
  227. ccxt/pro/kucoinfutures.py +41 -19
  228. ccxt/pro/lbank.py +27 -9
  229. ccxt/pro/luno.py +3 -1
  230. ccxt/pro/mexc.py +36 -19
  231. ccxt/pro/ndax.py +12 -4
  232. ccxt/pro/okcoin.py +18 -6
  233. ccxt/pro/okx.py +76 -28
  234. ccxt/pro/onetrading.py +21 -7
  235. ccxt/pro/oxfun.py +54 -20
  236. ccxt/pro/p2b.py +23 -11
  237. ccxt/pro/paradex.py +12 -4
  238. ccxt/pro/phemex.py +31 -19
  239. ccxt/pro/poloniex.py +50 -22
  240. ccxt/pro/poloniexfutures.py +17 -7
  241. ccxt/pro/probit.py +18 -6
  242. ccxt/pro/upbit.py +25 -9
  243. ccxt/pro/vertex.py +20 -6
  244. ccxt/pro/wazirx.py +21 -7
  245. ccxt/pro/whitebit.py +25 -9
  246. ccxt/pro/woo.py +32 -12
  247. ccxt/pro/woofipro.py +35 -13
  248. ccxt/pro/xt.py +46 -26
  249. ccxt/probit.py +64 -22
  250. ccxt/timex.py +58 -19
  251. ccxt/tokocrypto.py +63 -22
  252. ccxt/tradeogre.py +7 -2
  253. ccxt/upbit.py +72 -25
  254. ccxt/vertex.py +74 -28
  255. ccxt/wavesexchange.py +32 -8
  256. ccxt/wazirx.py +51 -17
  257. ccxt/whitebit.py +105 -41
  258. ccxt/woo.py +162 -65
  259. ccxt/woofipro.py +119 -50
  260. ccxt/xt.py +150 -73
  261. ccxt/yobit.py +49 -16
  262. ccxt/zaif.py +30 -10
  263. ccxt/zonda.py +46 -16
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
  268. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/pro/blockchaincom.py CHANGED
@@ -61,7 +61,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
61
61
  async def watch_balance(self, params={}) -> Balances:
62
62
  """
63
63
  watch balance and get the amount of funds available for trading or funds locked in orders
64
- :see: https://exchange.blockchain.com/api/#balances
64
+
65
+ https://exchange.blockchain.com/api/#balances
66
+
65
67
  :param dict [params]: extra parameters specific to the exchange API endpoint
66
68
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
67
69
  """
@@ -125,7 +127,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
125
127
  async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
126
128
  """
127
129
  watches historical candlestick data containing the open, high, low, and close price, and the volume of a market.
128
- :see: https://exchange.blockchain.com/api/#prices
130
+
131
+ https://exchange.blockchain.com/api/#prices
132
+
129
133
  :param str symbol: unified symbol of the market to fetch OHLCV data for
130
134
  :param str timeframe: the length of time each candle represents. Allows '1m', '5m', '15m', '1h', '6h' '1d'. Can only watch one timeframe per symbol.
131
135
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -197,7 +201,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
197
201
  async def watch_ticker(self, symbol: str, params={}) -> Ticker:
198
202
  """
199
203
  watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
200
- :see: https://exchange.blockchain.com/api/#ticker
204
+
205
+ https://exchange.blockchain.com/api/#ticker
206
+
201
207
  :param str symbol: unified symbol of the market to fetch the ticker for
202
208
  :param dict [params]: extra parameters specific to the exchange API endpoint
203
209
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -299,7 +305,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
299
305
  async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
300
306
  """
301
307
  get the list of most recent trades for a particular symbol
302
- :see: https://exchange.blockchain.com/api/#trades
308
+
309
+ https://exchange.blockchain.com/api/#trades
310
+
303
311
  :param str symbol: unified symbol of the market to fetch trades for
304
312
  :param int [since]: timestamp in ms of the earliest trade to fetch
305
313
  :param int [limit]: the maximum amount of trades to fetch
@@ -394,7 +402,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
394
402
  async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
395
403
  """
396
404
  watches information on multiple orders made by the user
397
- :see: https://exchange.blockchain.com/api/#mass-order-status-request-ordermassstatusrequest
405
+
406
+ https://exchange.blockchain.com/api/#mass-order-status-request-ordermassstatusrequest
407
+
398
408
  :param str symbol: unified market symbol of the market orders were made in
399
409
  :param int [since]: the earliest time in ms to fetch orders for
400
410
  :param int [limit]: the maximum number of order structures to retrieve
@@ -597,7 +607,9 @@ class blockchaincom(ccxt.async_support.blockchaincom):
597
607
  async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
598
608
  """
599
609
  watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
600
- :see: https://exchange.blockchain.com/api/#l2-order-book
610
+
611
+ https://exchange.blockchain.com/api/#l2-order-book
612
+
601
613
  :param str symbol: unified symbol of the market to fetch the order book for
602
614
  :param int [limit]: the maximum amount of order book entries to return
603
615
  :param dictConstructor [params]: extra parameters specific to the exchange API endpoint
ccxt/pro/blofin.py CHANGED
@@ -74,7 +74,9 @@ class blofin(ccxt.async_support.blofin):
74
74
  async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
75
75
  """
76
76
  get the list of most recent trades for a particular symbol
77
- :see: https://docs.blofin.com/index.html#ws-trades-channel
77
+
78
+ https://docs.blofin.com/index.html#ws-trades-channel
79
+
78
80
  :param str symbol: unified symbol of the market to fetch trades for
79
81
  :param int [since]: timestamp in ms of the earliest trade to fetch
80
82
  :param int [limit]: the maximum amount of trades to fetch
@@ -87,7 +89,9 @@ class blofin(ccxt.async_support.blofin):
87
89
  async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
88
90
  """
89
91
  get the list of most recent trades for a list of symbols
90
- :see: https://docs.blofin.com/index.html#ws-trades-channel
92
+
93
+ https://docs.blofin.com/index.html#ws-trades-channel
94
+
91
95
  :param str[] symbols: unified symbol of the market to fetch trades for
92
96
  :param int [since]: timestamp in ms of the earliest trade to fetch
93
97
  :param int [limit]: the maximum amount of trades to fetch
@@ -139,7 +143,9 @@ class blofin(ccxt.async_support.blofin):
139
143
  async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
140
144
  """
141
145
  watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
142
- :see: https://docs.blofin.com/index.html#ws-order-book-channel
146
+
147
+ https://docs.blofin.com/index.html#ws-order-book-channel
148
+
143
149
  :param str symbol: unified symbol of the market to fetch the order book for
144
150
  :param int [limit]: the maximum amount of order book entries to return
145
151
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -151,7 +157,9 @@ class blofin(ccxt.async_support.blofin):
151
157
  async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
152
158
  """
153
159
  watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
154
- :see: https://docs.blofin.com/index.html#ws-order-book-channel
160
+
161
+ https://docs.blofin.com/index.html#ws-order-book-channel
162
+
155
163
  :param str[] symbols: unified array of symbols
156
164
  :param int [limit]: the maximum amount of order book entries to return
157
165
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -215,7 +223,9 @@ class blofin(ccxt.async_support.blofin):
215
223
  async def watch_ticker(self, symbol: str, params={}) -> Ticker:
216
224
  """
217
225
  watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
218
- :see: https://docs.blofin.com/index.html#ws-tickers-channel
226
+
227
+ https://docs.blofin.com/index.html#ws-tickers-channel
228
+
219
229
  :param str symbol: unified symbol of the market to fetch the ticker for
220
230
  :param dict [params]: extra parameters specific to the exchange API endpoint
221
231
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -229,7 +239,9 @@ class blofin(ccxt.async_support.blofin):
229
239
  async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
230
240
  """
231
241
  watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
232
- :see: https://docs.blofin.com/index.html#ws-tickers-channel
242
+
243
+ https://docs.blofin.com/index.html#ws-tickers-channel
244
+
233
245
  :param str[] symbols: unified symbol of the market to fetch the ticker for
234
246
  :param dict [params]: extra parameters specific to the exchange API endpoint
235
247
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -274,7 +286,9 @@ class blofin(ccxt.async_support.blofin):
274
286
  async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
275
287
  """
276
288
  watches best bid & ask for symbols
277
- :see: https://docs.blofin.com/index.html#ws-tickers-channel
289
+
290
+ https://docs.blofin.com/index.html#ws-tickers-channel
291
+
278
292
  :param str[] symbols: unified symbol of the market to fetch the ticker for
279
293
  :param dict [params]: extra parameters specific to the exchange API endpoint
280
294
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -345,7 +359,9 @@ class blofin(ccxt.async_support.blofin):
345
359
  async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
346
360
  """
347
361
  watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
348
- :see: https://docs.blofin.com/index.html#ws-candlesticks-channel
362
+
363
+ https://docs.blofin.com/index.html#ws-candlesticks-channel
364
+
349
365
  :param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
350
366
  :param int [since]: timestamp in ms of the earliest candle to fetch
351
367
  :param int [limit]: the maximum amount of candles to fetch
@@ -401,7 +417,9 @@ class blofin(ccxt.async_support.blofin):
401
417
  async def watch_balance(self, params={}) -> Balances:
402
418
  """
403
419
  query for balance and get the amount of funds available for trading or funds locked in orders
404
- :see: https://docs.blofin.com/index.html#ws-account-channel
420
+
421
+ https://docs.blofin.com/index.html#ws-account-channel
422
+
405
423
  :param dict [params]: extra parameters specific to the exchange API endpoint
406
424
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
407
425
  """
@@ -454,8 +472,10 @@ class blofin(ccxt.async_support.blofin):
454
472
  async def watch_orders_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Order]:
455
473
  """
456
474
  watches information on multiple orders made by the user across multiple symbols
457
- :see: https://docs.blofin.com/index.html#ws-order-channel
458
- :param str symbol: unified market symbol of the market orders were made in
475
+
476
+ https://docs.blofin.com/index.html#ws-order-channel
477
+
478
+ :param str[] symbols:
459
479
  :param int [since]: the earliest time in ms to fetch orders for
460
480
  :param int [limit]: the maximum number of order structures to retrieve
461
481
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -500,9 +520,13 @@ class blofin(ccxt.async_support.blofin):
500
520
 
501
521
  async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
502
522
  """
503
- :see: https://docs.blofin.com/index.html#ws-positions-channel
523
+
524
+ https://docs.blofin.com/index.html#ws-positions-channel
525
+
504
526
  watch all open positions
505
527
  :param str[]|None symbols: list of unified market symbols
528
+ :param int [since]: the earliest time in ms to fetch positions for
529
+ :param int [limit]: the maximum number of positions to retrieve
506
530
  :param dict params: extra parameters specific to the exchange API endpoint
507
531
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
508
532
  """
ccxt/pro/bybit.py CHANGED
@@ -208,8 +208,10 @@ class bybit(ccxt.async_support.bybit):
208
208
  async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
209
209
  """
210
210
  create a trade order
211
- :see: https://bybit-exchange.github.io/docs/v5/order/create-order
212
- :see: https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
211
+
212
+ https://bybit-exchange.github.io/docs/v5/order/create-order
213
+ https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
214
+
213
215
  :param str symbol: unified symbol of the market to create an order in
214
216
  :param str type: 'market' or 'limit'
215
217
  :param str side: 'buy' or 'sell'
@@ -256,8 +258,10 @@ class bybit(ccxt.async_support.bybit):
256
258
  async def edit_order_ws(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
257
259
  """
258
260
  edit a trade order
259
- :see: https://bybit-exchange.github.io/docs/v5/order/amend-order
260
- :see: https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
261
+
262
+ https://bybit-exchange.github.io/docs/v5/order/amend-order
263
+ https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
264
+
261
265
  :param str id: cancel order id
262
266
  :param str symbol: unified symbol of the market to create an order in
263
267
  :param str type: 'market' or 'limit'
@@ -298,8 +302,10 @@ class bybit(ccxt.async_support.bybit):
298
302
  async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
299
303
  """
300
304
  cancels an open order
301
- :see: https://bybit-exchange.github.io/docs/v5/order/cancel-order
302
- :see: https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
305
+
306
+ https://bybit-exchange.github.io/docs/v5/order/cancel-order
307
+ https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline#createamendcancel-order
308
+
303
309
  :param str id: order id
304
310
  :param str symbol: unified symbol of the market the order was made in
305
311
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -330,8 +336,10 @@ class bybit(ccxt.async_support.bybit):
330
336
  async def watch_ticker(self, symbol: str, params={}) -> Ticker:
331
337
  """
332
338
  watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
333
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
334
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
339
+
340
+ https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
341
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
342
+
335
343
  :param str symbol: unified symbol of the market to fetch the ticker for
336
344
  :param dict [params]: extra parameters specific to the exchange API endpoint
337
345
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -353,8 +361,10 @@ class bybit(ccxt.async_support.bybit):
353
361
  async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
354
362
  """
355
363
  watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
356
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
357
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
364
+
365
+ https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
366
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
367
+
358
368
  :param str[] symbols: unified symbol of the market to fetch the ticker for
359
369
  :param dict [params]: extra parameters specific to the exchange API endpoint
360
370
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -382,8 +392,10 @@ class bybit(ccxt.async_support.bybit):
382
392
  async def un_watch_tickers(self, symbols: Strings = None, params={}) -> Any:
383
393
  """
384
394
  unWatches a price ticker
385
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
386
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
395
+
396
+ https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
397
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
398
+
387
399
  :param str[] symbols: unified symbol of the market to fetch the ticker for
388
400
  :param dict [params]: extra parameters specific to the exchange API endpoint
389
401
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -408,9 +420,11 @@ class bybit(ccxt.async_support.bybit):
408
420
  async def un_watch_ticker(self, symbols: str, params={}) -> Any:
409
421
  """
410
422
  unWatches a price ticker
411
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
412
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
413
- :param str symbol: unified symbol of the market to fetch the ticker for
423
+
424
+ https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
425
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
426
+
427
+ :param str[] symbols: unified symbol of the market to fetch the ticker for
414
428
  :param dict [params]: extra parameters specific to the exchange API endpoint
415
429
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
416
430
  """
@@ -563,7 +577,9 @@ class bybit(ccxt.async_support.bybit):
563
577
  async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
564
578
  """
565
579
  watches best bid & ask for symbols
566
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
580
+
581
+ https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
582
+
567
583
  :param str[] symbols: unified symbol of the market to fetch the ticker for
568
584
  :param dict [params]: extra parameters specific to the exchange API endpoint
569
585
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -605,8 +621,10 @@ class bybit(ccxt.async_support.bybit):
605
621
  async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
606
622
  """
607
623
  watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
608
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/kline
609
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
624
+
625
+ https://bybit-exchange.github.io/docs/v5/websocket/public/kline
626
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
627
+
610
628
  :param str symbol: unified symbol of the market to fetch OHLCV data for
611
629
  :param str timeframe: the length of time each candle represents
612
630
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -621,8 +639,10 @@ class bybit(ccxt.async_support.bybit):
621
639
  async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
622
640
  """
623
641
  watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
624
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/kline
625
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
642
+
643
+ https://bybit-exchange.github.io/docs/v5/websocket/public/kline
644
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
645
+
626
646
  :param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
627
647
  :param int [since]: timestamp in ms of the earliest candle to fetch
628
648
  :param int [limit]: the maximum amount of candles to fetch
@@ -654,8 +674,10 @@ class bybit(ccxt.async_support.bybit):
654
674
  async def un_watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], params={}) -> Any:
655
675
  """
656
676
  unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
657
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/kline
658
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
677
+
678
+ https://bybit-exchange.github.io/docs/v5/websocket/public/kline
679
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
680
+
659
681
  :param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
660
682
  :param dict [params]: extra parameters specific to the exchange API endpoint
661
683
  :returns dict: A list of candles ordered, open, high, low, close, volume
@@ -686,12 +708,12 @@ class bybit(ccxt.async_support.bybit):
686
708
  async def un_watch_ohlcv(self, symbol: str, timeframe='1m', params={}) -> Any:
687
709
  """
688
710
  unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
689
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/kline
690
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
711
+
712
+ https://bybit-exchange.github.io/docs/v5/websocket/public/kline
713
+ https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
714
+
691
715
  :param str symbol: unified symbol of the market to fetch OHLCV data for
692
716
  :param str timeframe: the length of time each candle represents
693
- :param int [since]: timestamp in ms of the earliest candle to fetch
694
- :param int [limit]: the maximum amount of candles to fetch
695
717
  :param dict [params]: extra parameters specific to the exchange API endpoint
696
718
  :returns int[][]: A list of candles ordered, open, high, low, close, volume
697
719
  """
@@ -774,7 +796,9 @@ class bybit(ccxt.async_support.bybit):
774
796
  async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
775
797
  """
776
798
  watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
777
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
799
+
800
+ https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
801
+
778
802
  :param str symbol: unified symbol of the market to fetch the order book for
779
803
  :param int [limit]: the maximum amount of order book entries to return.
780
804
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -785,7 +809,9 @@ class bybit(ccxt.async_support.bybit):
785
809
  async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
786
810
  """
787
811
  watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
788
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
812
+
813
+ https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
814
+
789
815
  :param str[] symbols: unified array of symbols
790
816
  :param int [limit]: the maximum amount of order book entries to return.
791
817
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -821,8 +847,11 @@ class bybit(ccxt.async_support.bybit):
821
847
  async def un_watch_order_book_for_symbols(self, symbols: Strings, params={}) -> Any:
822
848
  """
823
849
  unsubscribe from the orderbook channel
824
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
850
+
851
+ https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
852
+
825
853
  :param str[] symbols: unified symbol of the market to unwatch the trades for
854
+ :param dict [params]: extra parameters specific to the exchange API endpoint
826
855
  :param int [params.limit]: orderbook limit, default is None
827
856
  :returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
828
857
  """
@@ -853,8 +882,11 @@ class bybit(ccxt.async_support.bybit):
853
882
  async def un_watch_order_book(self, symbol: str, params={}) -> Any:
854
883
  """
855
884
  unsubscribe from the orderbook channel
856
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
857
- :param str[] symbols: unified symbol of the market to unwatch the trades for
885
+
886
+ https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
887
+
888
+ :param str symbol: symbol of the market to unwatch the trades for
889
+ :param dict [params]: extra parameters specific to the exchange API endpoint
858
890
  :param int [params.limit]: orderbook limit, default is None
859
891
  :returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
860
892
  """
@@ -940,7 +972,9 @@ class bybit(ccxt.async_support.bybit):
940
972
  async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
941
973
  """
942
974
  watches information on multiple trades made in a market
943
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/trade
975
+
976
+ https://bybit-exchange.github.io/docs/v5/websocket/public/trade
977
+
944
978
  :param str symbol: unified market symbol of the market trades were made in
945
979
  :param int [since]: the earliest time in ms to fetch trades for
946
980
  :param int [limit]: the maximum number of trade structures to retrieve
@@ -952,7 +986,9 @@ class bybit(ccxt.async_support.bybit):
952
986
  async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
953
987
  """
954
988
  get the list of most recent trades for a list of symbols
955
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/trade
989
+
990
+ https://bybit-exchange.github.io/docs/v5/websocket/public/trade
991
+
956
992
  :param str[] symbols: unified symbol of the market to fetch trades for
957
993
  :param int [since]: timestamp in ms of the earliest trade to fetch
958
994
  :param int [limit]: the maximum amount of trades to fetch
@@ -985,8 +1021,11 @@ class bybit(ccxt.async_support.bybit):
985
1021
  async def un_watch_trades_for_symbols(self, symbols: Strings, params={}) -> Any:
986
1022
  """
987
1023
  unsubscribe from the trades channel
988
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/trade
1024
+
1025
+ https://bybit-exchange.github.io/docs/v5/websocket/public/trade
1026
+
989
1027
  :param str[] symbols: unified symbol of the market to unwatch the trades for
1028
+ :param dict [params]: extra parameters specific to the exchange API endpoint
990
1029
  :returns any: status of the unwatch request
991
1030
  """
992
1031
  await self.load_markets()
@@ -1008,8 +1047,11 @@ class bybit(ccxt.async_support.bybit):
1008
1047
  async def un_watch_trades(self, symbol: str, params={}) -> Any:
1009
1048
  """
1010
1049
  unsubscribe from the trades channel
1011
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/trade
1050
+
1051
+ https://bybit-exchange.github.io/docs/v5/websocket/public/trade
1052
+
1012
1053
  :param str symbol: unified symbol of the market to unwatch the trades for
1054
+ :param dict [params]: extra parameters specific to the exchange API endpoint
1013
1055
  :returns any: status of the unwatch request
1014
1056
  """
1015
1057
  await self.load_markets()
@@ -1134,7 +1176,9 @@ class bybit(ccxt.async_support.bybit):
1134
1176
  async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1135
1177
  """
1136
1178
  watches information on multiple trades made by the user
1137
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/execution
1179
+
1180
+ https://bybit-exchange.github.io/docs/v5/websocket/private/execution
1181
+
1138
1182
  :param str symbol: unified market symbol of the market orders were made in
1139
1183
  :param int [since]: the earliest time in ms to fetch orders for
1140
1184
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1164,7 +1208,9 @@ class bybit(ccxt.async_support.bybit):
1164
1208
  async def un_watch_my_trades(self, symbol: Str = None, params={}) -> Any:
1165
1209
  """
1166
1210
  unWatches information on multiple trades made by the user
1167
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/execution
1211
+
1212
+ https://bybit-exchange.github.io/docs/v5/websocket/private/execution
1213
+
1168
1214
  :param str symbol: unified market symbol of the market orders were made in
1169
1215
  :param dict [params]: extra parameters specific to the exchange API endpoint
1170
1216
  :param boolean [params.unifiedMargin]: use unified margin account
@@ -1280,9 +1326,13 @@ class bybit(ccxt.async_support.bybit):
1280
1326
 
1281
1327
  async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
1282
1328
  """
1283
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/position
1329
+
1330
+ https://bybit-exchange.github.io/docs/v5/websocket/private/position
1331
+
1284
1332
  watch all open positions
1285
1333
  :param str[] [symbols]: list of unified market symbols
1334
+ :param int [since]: the earliest time in ms to fetch positions for
1335
+ :param int [limit]: the maximum number of positions to retrieve
1286
1336
  :param dict params: extra parameters specific to the exchange API endpoint
1287
1337
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
1288
1338
  """
@@ -1418,7 +1468,9 @@ class bybit(ccxt.async_support.bybit):
1418
1468
  async def watch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
1419
1469
  """
1420
1470
  watch the public liquidations of a trading pair
1421
- :see: https://bybit-exchange.github.io/docs/v5/websocket/public/liquidation
1471
+
1472
+ https://bybit-exchange.github.io/docs/v5/websocket/public/liquidation
1473
+
1422
1474
  :param str symbol: unified CCXT market symbol
1423
1475
  :param int [since]: the earliest time in ms to fetch liquidations for
1424
1476
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -1494,7 +1546,9 @@ class bybit(ccxt.async_support.bybit):
1494
1546
  async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1495
1547
  """
1496
1548
  watches information on multiple orders made by the user
1497
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/order
1549
+
1550
+ https://bybit-exchange.github.io/docs/v5/websocket/private/order
1551
+
1498
1552
  :param str symbol: unified market symbol of the market orders were made in
1499
1553
  :param int [since]: the earliest time in ms to fetch orders for
1500
1554
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1523,7 +1577,9 @@ class bybit(ccxt.async_support.bybit):
1523
1577
  async def un_watch_orders(self, symbol: Str = None, params={}) -> Any:
1524
1578
  """
1525
1579
  unWatches information on multiple orders made by the user
1526
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/order
1580
+
1581
+ https://bybit-exchange.github.io/docs/v5/websocket/private/order
1582
+
1527
1583
  :param str symbol: unified market symbol of the market orders were made in
1528
1584
  :param dict [params]: extra parameters specific to the exchange API endpoint
1529
1585
  :param boolean [params.unifiedMargin]: use unified margin account
@@ -1817,7 +1873,9 @@ class bybit(ccxt.async_support.bybit):
1817
1873
  async def watch_balance(self, params={}) -> Balances:
1818
1874
  """
1819
1875
  watch balance and get the amount of funds available for trading or funds locked in orders
1820
- :see: https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
1876
+
1877
+ https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
1878
+
1821
1879
  :param dict [params]: extra parameters specific to the exchange API endpoint
1822
1880
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1823
1881
  """