ccxt 2.8.71__py2.py3-none-any.whl → 2.8.73__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.
ccxt/__init__.py CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # ----------------------------------------------------------------------------
24
24
 
25
- __version__ = '2.8.71'
25
+ __version__ = '2.8.73'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '2.8.71'
7
+ __version__ = '2.8.73'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '2.8.71'
5
+ __version__ = '2.8.73'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -57,6 +57,7 @@ class bybit(Exchange):
57
57
  'fetchBorrowRateHistories': False,
58
58
  'fetchBorrowRateHistory': False,
59
59
  'fetchBorrowRates': False,
60
+ 'fetchCanceledOrders': True,
60
61
  'fetchClosedOrders': True,
61
62
  'fetchCurrencies': True,
62
63
  'fetchDeposit': False,
@@ -4735,6 +4736,29 @@ class bybit(Exchange):
4735
4736
  request = {}
4736
4737
  if (type == 'spot') and not enableUnified[1]:
4737
4738
  return await self.fetch_spot_closed_orders(symbol, since, limit, params)
4739
+ else:
4740
+ request['orderStatus'] = 'Filled'
4741
+ return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
4742
+
4743
+ async def fetch_canceled_orders(self, symbol=None, since=None, limit=None, params={}):
4744
+ """
4745
+ fetches information on multiple canceled orders made by the user
4746
+ :param str symbol: unified market symbol of the market orders were made in
4747
+ :param int|None since: timestamp in ms of the earliest order, default is None
4748
+ :param int|None limit: max number of orders to return, default is None
4749
+ :param dict params: extra parameters specific to the bybit api endpoint
4750
+ :returns dict: a list of `order structures <https://docs.ccxt.com/en/latest/manual.html#order-structure>`
4751
+ """
4752
+ await self.load_markets()
4753
+ market = None
4754
+ if symbol is not None:
4755
+ market = self.market(symbol)
4756
+ type = None
4757
+ type, params = self.handle_market_type_and_params('fetchCanceledOrders', market, params)
4758
+ enableUnified = await self.is_unified_enabled()
4759
+ request = {}
4760
+ if (type == 'spot') and not enableUnified[1]:
4761
+ raise NotSupported(self.id + ' fetchCanceledOrders() only allow spot market orders for unified trade account, use exchange.fetch_open_orders() and exchange.fetchClosedOrders() instead')
4738
4762
  else:
4739
4763
  request['orderStatus'] = 'Cancelled'
4740
4764
  return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '2.8.71'
7
+ __version__ = '2.8.73'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
ccxt/bybit.py CHANGED
@@ -56,6 +56,7 @@ class bybit(Exchange):
56
56
  'fetchBorrowRateHistories': False,
57
57
  'fetchBorrowRateHistory': False,
58
58
  'fetchBorrowRates': False,
59
+ 'fetchCanceledOrders': True,
59
60
  'fetchClosedOrders': True,
60
61
  'fetchCurrencies': True,
61
62
  'fetchDeposit': False,
@@ -4733,6 +4734,29 @@ class bybit(Exchange):
4733
4734
  request = {}
4734
4735
  if (type == 'spot') and not enableUnified[1]:
4735
4736
  return self.fetch_spot_closed_orders(symbol, since, limit, params)
4737
+ else:
4738
+ request['orderStatus'] = 'Filled'
4739
+ return self.fetch_orders(symbol, since, limit, self.extend(request, params))
4740
+
4741
+ def fetch_canceled_orders(self, symbol=None, since=None, limit=None, params={}):
4742
+ """
4743
+ fetches information on multiple canceled orders made by the user
4744
+ :param str symbol: unified market symbol of the market orders were made in
4745
+ :param int|None since: timestamp in ms of the earliest order, default is None
4746
+ :param int|None limit: max number of orders to return, default is None
4747
+ :param dict params: extra parameters specific to the bybit api endpoint
4748
+ :returns dict: a list of `order structures <https://docs.ccxt.com/en/latest/manual.html#order-structure>`
4749
+ """
4750
+ self.load_markets()
4751
+ market = None
4752
+ if symbol is not None:
4753
+ market = self.market(symbol)
4754
+ type = None
4755
+ type, params = self.handle_market_type_and_params('fetchCanceledOrders', market, params)
4756
+ enableUnified = self.is_unified_enabled()
4757
+ request = {}
4758
+ if (type == 'spot') and not enableUnified[1]:
4759
+ raise NotSupported(self.id + ' fetchCanceledOrders() only allow spot market orders for unified trade account, use exchange.fetch_open_orders() and exchange.fetchClosedOrders() instead')
4736
4760
  else:
4737
4761
  request['orderStatus'] = 'Cancelled'
4738
4762
  return self.fetch_orders(symbol, since, limit, self.extend(request, params))
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '2.8.71'
7
+ __version__ = '2.8.73'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
ccxt/pro/ascendex.py CHANGED
@@ -444,6 +444,7 @@ class ascendex(Exchange, ccxt.async_support.ascendex):
444
444
 
445
445
  async def watch_orders(self, symbol=None, since=None, limit=None, params={}):
446
446
  """
447
+ see https://ascendex.github.io/ascendex-pro-api/#channel-order-and-balance
447
448
  watches information on multiple orders made by the user
448
449
  :param str|None symbol: unified market symbol of the market orders were made in
449
450
  :param int|None since: the earliest time in ms to fetch orders for
@@ -459,7 +460,7 @@ class ascendex(Exchange, ccxt.async_support.ascendex):
459
460
  type, query = self.handle_market_type_and_params('watchOrders', market, params)
460
461
  messageHash = None
461
462
  channel = None
462
- if type != 'spot':
463
+ if type != 'spot' and type != 'margin':
463
464
  channel = 'futures-order'
464
465
  messageHash = 'order:FUTURES'
465
466
  else:
@@ -880,7 +881,7 @@ class ascendex(Exchange, ccxt.async_support.ascendex):
880
881
  self.check_required_credentials()
881
882
  messageHash = 'authenticated'
882
883
  client = self.client(url)
883
- future = self.safe_value(client.futures, messageHash)
884
+ future = self.safe_value(client.subscriptions, messageHash)
884
885
  if future is None:
885
886
  timestamp = str(self.milliseconds())
886
887
  urlParts = url.split('/')
ccxt/pro/base/exchange.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '2.8.71'
5
+ __version__ = '2.8.73'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 2.8.71
3
+ Version: 2.8.73
4
4
  Summary: A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges
5
5
  Home-page: https://ccxt.com
6
6
  Author: Igor Kroitor
@@ -258,13 +258,13 @@ console.log (ccxt.exchanges) // print all available exchanges
258
258
 
259
259
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
260
260
 
261
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.71/dist/ccxt.browser.js
262
- * unpkg: https://unpkg.com/ccxt@2.8.71/dist/ccxt.browser.js
261
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.73/dist/ccxt.browser.js
262
+ * unpkg: https://unpkg.com/ccxt@2.8.73/dist/ccxt.browser.js
263
263
 
264
264
  CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
265
265
 
266
266
  ```HTML
267
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.71/dist/ccxt.browser.js"></script>
267
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.73/dist/ccxt.browser.js"></script>
268
268
  ```
269
269
 
270
270
  Creates a global `ccxt` object:
@@ -1,4 +1,4 @@
1
- ccxt/__init__.py,sha256=daXIsz_uDgpFY1AkpNM2Lr4s41ydbPV8eMOMbkZXD0I,15913
1
+ ccxt/__init__.py,sha256=2kiQKFpUsNPBBNOAa9fZZaIFIVoS9lk7fxLIQDYUDfI,15913
2
2
  ccxt/ace.py,sha256=LHJs8ki3q_vhTf67M2dY5PhdhlNe3iYdWpI8Ac2rtB8,41009
3
3
  ccxt/alpaca.py,sha256=dd8lDHGg24qRhOyfvXgyjiLZ6YgnJ5ODpW4t4GFR8d8,32910
4
4
  ccxt/ascendex.py,sha256=lmBXXBJxSnfQP_Yl2e8djgx1v1aKPdMEFHNRXKv_f1o,125846
@@ -39,7 +39,7 @@ ccxt/btcmarkets.py,sha256=trlczer8FfF-G8goHx7JGL69t4dKEicqN1s3vTPkLNc,48035
39
39
  ccxt/btctradeua.py,sha256=eyflzEU3iWPLTnc2Rlpwztj3mrhfl4CeMB4kDpvCnfk,21661
40
40
  ccxt/btcturk.py,sha256=nCpy58mPkvJexbFgYpBVTK42r0KbBPzMVYDR4LQMujY,34977
41
41
  ccxt/buda.py,sha256=HIpIBjMN50t_PUfp8LA5YzA62WawZKkkH5NdJnfGUyU,45286
42
- ccxt/bybit.py,sha256=gQGZJTDkuzibyH5LZfZpOcBeA5rnbjI87O1iFbdS4eE,382372
42
+ ccxt/bybit.py,sha256=PjOiw2WGNZwtceNhQZ8dvF_J0Syyk_odZ8L8LXWeuA0,383749
43
43
  ccxt/cex.py,sha256=qxO3CZhOYPC_CVZIjeAaZsed9GKwDMBkdcdjHysOcng,64493
44
44
  ccxt/coinbase.py,sha256=Z55ziczlCLoLbvGEMRv-mOdyVz5aJZ0TW_zMQSUVgSM,123514
45
45
  ccxt/coinbaseprime.py,sha256=R4S5GPob14ELGeKZHtn1yCAdWO8Z48DCqA1tU6dHa1w,1154
@@ -110,7 +110,7 @@ ccxt/yobit.py,sha256=XSwUxMPj7615KMSJ0uO_6r_XC86PVI9JmoFW7Sa5rhQ,50480
110
110
  ccxt/zaif.py,sha256=amUZYqnOc_YQHoEHYmXQDAuprZX9IiLwIVQELrM4EdY,27619
111
111
  ccxt/zb.py,sha256=ET77-_n6472ce0w2rEvmm9yaxTaH3fsXHoVn58i-tEA,183164
112
112
  ccxt/zonda.py,sha256=BgryogRDDWndzXIhzUCVmDp-Z-4NStgUQ52KveQ3F_k,72727
113
- ccxt/async_support/__init__.py,sha256=DbHlRNoEFps2uve1gpqyl2vv2U-Z2pk_nOtWy9bmo8Y,15746
113
+ ccxt/async_support/__init__.py,sha256=UIfhJBhc72LSydqtkxr10o5XNkZmbiYynds8RmgEkzE,15746
114
114
  ccxt/async_support/ace.py,sha256=KBkF9jOtfuexziucqdz9hVQ8EQDYEaHAnF7qpb3sUT8,41239
115
115
  ccxt/async_support/alpaca.py,sha256=4vMmD34LgVuwoWN4AK_2Wt12dL5KA3uwGJKQuzG6sAg,33056
116
116
  ccxt/async_support/ascendex.py,sha256=epuquvLlW0vwcjs46tlMTuRf2kAP3rqzCqUMg9IDppw,126460
@@ -151,7 +151,7 @@ ccxt/async_support/btcmarkets.py,sha256=mqB-YZnh_ZRK9PwpvAcp579Cj6Ul_A3d3AIEOtGm
151
151
  ccxt/async_support/btctradeua.py,sha256=B5OlisST-2mpE_r8svLfxqj4LWZ1EMyaAMcOb971cg0,21807
152
152
  ccxt/async_support/btcturk.py,sha256=jhTw3LqZNdkfnBcF-3nJubvMKdr_nICJ_-u2qFy9UyM,35195
153
153
  ccxt/async_support/buda.py,sha256=I0l06fNVF5SW8lIQ1l5V1wEWK67j3lw-E-8giUt9XE0,45654
154
- ccxt/async_support/bybit.py,sha256=2rEKd0ZitdzHU3mtfUWc93moGz8SuKRCUWFduYx1g98,384330
154
+ ccxt/async_support/bybit.py,sha256=NlgrCb0_hjN7IQImZ3r43DMOIyz7VcMplbfOZEGSz9A,385731
155
155
  ccxt/async_support/cex.py,sha256=Woavpr_Sw_AQnxsPrQsM4_WG9SgsEE2rphi6jsWoXD4,64819
156
156
  ccxt/async_support/coinbase.py,sha256=vOXow_M1c5vwUOoV7RyDqCbG0P5s3tPt_hbDi2UKpAQ,124158
157
157
  ccxt/async_support/coinbaseprime.py,sha256=u9CmGA9iAq5eSsFzyn4vDSwEBxt5iFTKQOYy-9ZTnJ0,1168
@@ -223,16 +223,16 @@ ccxt/async_support/zaif.py,sha256=pU8VIbfzoal-aYYOwXjCJom1wv39QQHp2QWVmf7v5uI,27
223
223
  ccxt/async_support/zb.py,sha256=f91YoThqWGOyYl_ywW2x6pw_LQABGS8_4DczWAQKLpU,183868
224
224
  ccxt/async_support/zonda.py,sha256=9pqglR6VBN-iqEYj7CBIZC-96tl05WFrkLf_5csxPVk,73017
225
225
  ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
226
- ccxt/async_support/base/exchange.py,sha256=ELXmfh43NsAR2CXrjgyG9NHHBGDjjbNRtgTjLZs8NKc,108099
226
+ ccxt/async_support/base/exchange.py,sha256=0IpQ0EqMiNXfDqjq2NpQ0Y5SXH9adVub4lCZrfP8bM0,108099
227
227
  ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
228
228
  ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
229
229
  ccxt/base/decimal_to_precision.py,sha256=FG3IBmZKwWPg7Kj2mgCX7txELUEhfgfmnxrbKwVVtok,6531
230
230
  ccxt/base/errors.py,sha256=-LVeTNyXvu3QEgb-p-KzMpcBgzHlvFTwDzmZK7Gfc14,3401
231
- ccxt/base/exchange.py,sha256=XeVjej9F7FAa-W3oyqh5R10Jfq2P5XPFBYXFcjx8-Dw,163551
231
+ ccxt/base/exchange.py,sha256=4yZ-LEMGVuuMy0oR3WnB9-PdHscwuxihShTxv4JOnAo,163551
232
232
  ccxt/base/precise.py,sha256=_xfu54sV0vWNnOfGTKRFykeuWP8mn4K1m9lk1tcllX4,8565
233
- ccxt/pro/__init__.py,sha256=7PT7xWso0rFnSGPcFaHSbegeVjkqDLnjPWHMCxKh230,5947
233
+ ccxt/pro/__init__.py,sha256=D36lB64FDMgtRkdfioOMLS8TsMq1l_6pu9HJFdTweQU,5947
234
234
  ccxt/pro/alpaca.py,sha256=7o59h7qBbF9U1_jVBFVlGvstywQOh_dkfV4yqXuspgo,26426
235
- ccxt/pro/ascendex.py,sha256=03zsxfX2clG0bNUMT0c0XQJiw2dVvIC0miZX4ywJMAs,34201
235
+ ccxt/pro/ascendex.py,sha256=UikwO6-yiSfIV-OImOOIZ2xO_zanAB49VDQsoDN6Q5M,34311
236
236
  ccxt/pro/bequant.py,sha256=qz8JjnpkAQY_CFiFSKGqrjjgZ2167_TBKjSJOb9NeDw,1081
237
237
  ccxt/pro/binance.py,sha256=afju2B-YRBlTG73oxBd8O9Ijh7QoP_ZB_sEM6MqaHBQ,76806
238
238
  ccxt/pro/binancecoinm.py,sha256=vu5SUgP70T1Dax-Am3rch7ZldGrmUwxr_rI51Y38xjw,724
@@ -289,7 +289,7 @@ ccxt/pro/base/__init__.py,sha256=XscxcHui5I8za8dAzz0O3J-UeyxGkUEXlErAaBWHCjY,184
289
289
  ccxt/pro/base/aiohttp_client.py,sha256=wd0ae_KYgQ3gqYgj7uYeJcDPfJWzxMKUQsxs8ZZcTr4,4961
290
290
  ccxt/pro/base/cache.py,sha256=r9l1tEvR3sfN4Joqj6bPBRS0Xrg7mjAFjTDW4QBMozY,6085
291
291
  ccxt/pro/base/client.py,sha256=XvQt-puPiGBXYw1s9nFXj_xXRNkDxc8hF5kvQBVwBnk,7270
292
- ccxt/pro/base/exchange.py,sha256=pgbVPJI8hKl0ilO2vlKpskQxPhOqY8qaJnnHdi1DWkg,8213
292
+ ccxt/pro/base/exchange.py,sha256=xABsaxuKvf1zPYeDSDypiYYgzMOFv2hCLNifTZFc-T0,8213
293
293
  ccxt/pro/base/fast_client.py,sha256=NCAHUS35OzhsPve2owVLzM9BmM7cTsYcNFEJBw1UESU,3245
294
294
  ccxt/pro/base/functions.py,sha256=vf2FUrlCak5Tf5a6-vbTtmtzHzbXi0nECRygTmNhxFw,1495
295
295
  ccxt/pro/base/future.py,sha256=hcvcH5rUP4Jn7qbQwx19P4ItM1DWZU2vvRS8Ob6MIDU,249
@@ -326,7 +326,7 @@ ccxt/test/test_sync.py,sha256=omZA0xK_2nl58Gwoz65Oi4xRN4uLyuZ0AWZwf2Eqa9w,22795
326
326
  ccxt/test/test_throttle.py,sha256=GvLQWtA4fAk_yJrxeisek-wAz7eJdHj0DDKR4_V1beg,3123
327
327
  ccxt/test/test_trade.py,sha256=-pw3gxe26wozFeN_Vy4zWNUQr0fSXOg3FRu-gVvOrqE,3243
328
328
  ccxt/test/test_transaction.py,sha256=IlyTFDWDwGUGzk94yx6vLaJy9zyCRlhEVigXE6hDd40,1514
329
- ccxt-2.8.71.dist-info/METADATA,sha256=1WTzCfCNB14Em5tiZKwr7RXyLrOLgoMPgGYblGAZ1cA,109916
330
- ccxt-2.8.71.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
331
- ccxt-2.8.71.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
332
- ccxt-2.8.71.dist-info/RECORD,,
329
+ ccxt-2.8.73.dist-info/METADATA,sha256=ft3Ky_UFlj1LaDNfipn0UH7jj1b_xy7Bz2bGoJ-um8w,109916
330
+ ccxt-2.8.73.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
331
+ ccxt-2.8.73.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
332
+ ccxt-2.8.73.dist-info/RECORD,,
File without changes