ccxt-ir 4.9.0__py2.py3-none-any.whl → 4.9.1__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 +1 -1
- ccxt/arzplus.py +12 -3
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/arzplus.py +12 -3
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/base/exchange.py +1 -1
- ccxt/pro/__init__.py +1 -1
- {ccxt_ir-4.9.0.dist-info → ccxt_ir-4.9.1.dist-info}/METADATA +7 -7
- {ccxt_ir-4.9.0.dist-info → ccxt_ir-4.9.1.dist-info}/RECORD +12 -12
- {ccxt_ir-4.9.0.dist-info → ccxt_ir-4.9.1.dist-info}/WHEEL +0 -0
- {ccxt_ir-4.9.0.dist-info → ccxt_ir-4.9.1.dist-info}/licenses/LICENSE.txt +0 -0
- {ccxt_ir-4.9.0.dist-info → ccxt_ir-4.9.1.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/arzplus.py
CHANGED
|
@@ -247,6 +247,8 @@ class arzplus(Exchange, ImplicitAPI):
|
|
|
247
247
|
request = {
|
|
248
248
|
'symbol': response[i]['name'],
|
|
249
249
|
}
|
|
250
|
+
if i == 10:
|
|
251
|
+
self.delay(3000)
|
|
250
252
|
assetDetails = self.publicGetApiV1MarketSymbols(request)
|
|
251
253
|
ticker = self.parse_ticker(assetDetails)
|
|
252
254
|
symbol = ticker['symbol']
|
|
@@ -399,14 +401,21 @@ class arzplus(Exchange, ImplicitAPI):
|
|
|
399
401
|
timestamp = Date.now()
|
|
400
402
|
return self.parse_order_book(orderBook, symbol, timestamp, 'bids', 'asks', 'price', 'amount')
|
|
401
403
|
|
|
404
|
+
def delay(self, ms: float):
|
|
405
|
+
start = Date.now()
|
|
406
|
+
while(Date.now() - start < ms):
|
|
407
|
+
continue
|
|
408
|
+
|
|
402
409
|
def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
|
|
403
410
|
query = self.omit(params, self.extract_params(path))
|
|
404
411
|
url = self.urls['api']['public'] + '/' + path
|
|
405
|
-
|
|
412
|
+
symbol = self.safe_string(params, 'symbol')
|
|
413
|
+
stats = self.safe_value(params, 'stats')
|
|
414
|
+
if stats is not None:
|
|
406
415
|
url = url + '?' + self.urlencode(query)
|
|
407
416
|
if path == 'api/v1/market/tradingview/ohlcv':
|
|
408
417
|
url = url + '?' + self.urlencode(query)
|
|
409
|
-
elif
|
|
410
|
-
url = url + '/' +
|
|
418
|
+
elif symbol is not None:
|
|
419
|
+
url = url + '/' + symbol
|
|
411
420
|
headers = {'Content-Type': 'application/json'}
|
|
412
421
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/arzplus.py
CHANGED
|
@@ -247,6 +247,8 @@ class arzplus(Exchange, ImplicitAPI):
|
|
|
247
247
|
request = {
|
|
248
248
|
'symbol': response[i]['name'],
|
|
249
249
|
}
|
|
250
|
+
if i == 10:
|
|
251
|
+
await self.delay(3000)
|
|
250
252
|
assetDetails = await self.publicGetApiV1MarketSymbols(request)
|
|
251
253
|
ticker = self.parse_ticker(assetDetails)
|
|
252
254
|
symbol = ticker['symbol']
|
|
@@ -399,14 +401,21 @@ class arzplus(Exchange, ImplicitAPI):
|
|
|
399
401
|
timestamp = Date.now()
|
|
400
402
|
return self.parse_order_book(orderBook, symbol, timestamp, 'bids', 'asks', 'price', 'amount')
|
|
401
403
|
|
|
404
|
+
def delay(self, ms: float):
|
|
405
|
+
start = Date.now()
|
|
406
|
+
while(Date.now() - start < ms):
|
|
407
|
+
continue
|
|
408
|
+
|
|
402
409
|
def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
|
|
403
410
|
query = self.omit(params, self.extract_params(path))
|
|
404
411
|
url = self.urls['api']['public'] + '/' + path
|
|
405
|
-
|
|
412
|
+
symbol = self.safe_string(params, 'symbol')
|
|
413
|
+
stats = self.safe_value(params, 'stats')
|
|
414
|
+
if stats is not None:
|
|
406
415
|
url = url + '?' + self.urlencode(query)
|
|
407
416
|
if path == 'api/v1/market/tradingview/ohlcv':
|
|
408
417
|
url = url + '?' + self.urlencode(query)
|
|
409
|
-
elif
|
|
410
|
-
url = url + '/' +
|
|
418
|
+
elif symbol is not None:
|
|
419
|
+
url = url + '/' + symbol
|
|
411
420
|
headers = {'Content-Type': 'application/json'}
|
|
412
421
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
ccxt/base/exchange.py
CHANGED
ccxt/pro/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ccxt-ir
|
|
3
|
-
Version: 4.9.
|
|
3
|
+
Version: 4.9.1
|
|
4
4
|
Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
|
|
5
5
|
Home-page: https://ccxt.com
|
|
6
6
|
Author: Igor Kroitor
|
|
@@ -305,20 +305,20 @@ console.log(version, Object.keys(exchanges));
|
|
|
305
305
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
306
306
|
|
|
307
307
|
<<<<<<< HEAD
|
|
308
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.
|
|
309
|
-
* unpkg: https://unpkg.com/ccxt@4.9.
|
|
308
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.1/dist/ccxt.browser.min.js
|
|
309
|
+
* unpkg: https://unpkg.com/ccxt@4.9.1/dist/ccxt.browser.min.js
|
|
310
310
|
=======
|
|
311
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.
|
|
312
|
-
* unpkg: https://unpkg.com/ccxt@4.9.
|
|
311
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.1/dist/ccxt.browser.min.js
|
|
312
|
+
* unpkg: https://unpkg.com/ccxt@4.9.1/dist/ccxt.browser.min.js
|
|
313
313
|
>>>>>>> master
|
|
314
314
|
|
|
315
315
|
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.
|
|
316
316
|
|
|
317
317
|
```HTML
|
|
318
318
|
<<<<<<< HEAD
|
|
319
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.
|
|
319
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.1/dist/ccxt.browser.min.js"></script>
|
|
320
320
|
=======
|
|
321
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.
|
|
321
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.1/dist/ccxt.browser.min.js"></script>
|
|
322
322
|
>>>>>>> master
|
|
323
323
|
console.log (ccxt.exchanges) // print all available exchanges
|
|
324
324
|
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
ccxt/__init__.py,sha256=
|
|
1
|
+
ccxt/__init__.py,sha256=5N1TQZeuB3Q_GMR0gBjnsgJ70BXA04afblymnefsSAc,19308
|
|
2
2
|
ccxt/abantether.py,sha256=like8inDYyPpE3d3_93KulDhwmYwdOqZxRvoTC1-Nd0,12008
|
|
3
3
|
ccxt/afratether.py,sha256=NeSpFf0zWIM5ejGgn5G9hz1-sefAv_ae7j9241WcdDk,10801
|
|
4
4
|
ccxt/alpaca.py,sha256=oO0YJHxo5_1iYyGVRMbxfGyPahqzuMlE7LZ3TMYgPGo,80694
|
|
5
5
|
ccxt/apex.py,sha256=TuOp4vnCczdRG__9thnb3RIidoVeUDZbOSGbusjJG78,82740
|
|
6
6
|
ccxt/arzinja.py,sha256=WWyJIG9aKJzeMRCTI77e5Ipu_aSeJMTFcUMPDUDtnnU,10380
|
|
7
|
-
ccxt/arzplus.py,sha256=
|
|
7
|
+
ccxt/arzplus.py,sha256=VZ_kZAV0R_2u8X8bhzXRQ6sr7U_OU9rCxdG1U4zM2oQ,16546
|
|
8
8
|
ccxt/ascendex.py,sha256=unk7MeeQkmgT2YxCXKXG81z2ylcS_r6a7IuvnxnlOT8,158696
|
|
9
9
|
ccxt/bequant.py,sha256=9rBVB2Wg9YMmgYiCqS1NSxiftPWmL97FdaNLVPb3Zpo,1218
|
|
10
10
|
ccxt/bigone.py,sha256=npNA3D64dxi8JBG26lb3HI644ysSN-MNcIF3ZqAg_VI,95652
|
|
@@ -272,13 +272,13 @@ ccxt/abstract/xt.py,sha256=n3eX1cItL_J0j8prOViV-C_tRwIFv_GO8JTvZZw8jv8,27837
|
|
|
272
272
|
ccxt/abstract/yobit.py,sha256=8ycfCO8ORFly9hc0Aa47sZyX4_ZKPXS9h9yJzI-uQ7Q,1339
|
|
273
273
|
ccxt/abstract/zaif.py,sha256=m15WHdl3gYy0GOXNZ8NEH8eE7sVh8c0T_ITNuU8vXeU,3935
|
|
274
274
|
ccxt/abstract/zonda.py,sha256=X-hCW0SdX3YKZWixDyW-O2211M58Rno8kKJ6quY7rw4,7183
|
|
275
|
-
ccxt/async_support/__init__.py,sha256=
|
|
275
|
+
ccxt/async_support/__init__.py,sha256=QSnK3uBjPOX3LBGLGb7aMeMGJEgMk7YXYxxF3LNsj_w,19391
|
|
276
276
|
ccxt/async_support/abantether.py,sha256=uLWn1i6gE8dtZr9BXmXfyT0Y-MzYYZU1DDeXGjFngAM,12064
|
|
277
277
|
ccxt/async_support/afratether.py,sha256=JC9ro3QrE8vE4YUm51xqwciSQhHfTPb98Mw1r6cJyvg,10869
|
|
278
278
|
ccxt/async_support/alpaca.py,sha256=oFpSnAjX-faRgTN4d5rwHa08WRaCkwiAbHGZ7JBe6Ww,81140
|
|
279
279
|
ccxt/async_support/apex.py,sha256=ouj8uyC4f8Ar3IowHxbrPTBp-g2ctheo5ir_YLsg-Gg,83228
|
|
280
280
|
ccxt/async_support/arzinja.py,sha256=0hYBzTWdYFQLediwhzqsffSgT2-D8z3lQUfeLa3TYig,10442
|
|
281
|
-
ccxt/async_support/arzplus.py,sha256=
|
|
281
|
+
ccxt/async_support/arzplus.py,sha256=WadtKCg9e57CzKUxMGF2Nfidw6kxkI56cMAn3UB7CtE,16656
|
|
282
282
|
ccxt/async_support/ascendex.py,sha256=Nrivs8jnl5lN2IYpGG_Z23QDqUOAqDd0C_0Nv10bnm8,159533
|
|
283
283
|
ccxt/async_support/bequant.py,sha256=-O1NDzEwsG1L2H17ZzcJw7ZHvDt8s-47bgqzjixYkjc,1232
|
|
284
284
|
ccxt/async_support/bigone.py,sha256=DHFeRhLG4itPK0hSuL-MofawQ6-abN0LVVtiGeQXgCQ,96106
|
|
@@ -410,7 +410,7 @@ ccxt/async_support/yobit.py,sha256=FBI7ajvxprTYUqX8zosd7-LntDft8vIEjRTHng5ry8Y,5
|
|
|
410
410
|
ccxt/async_support/zaif.py,sha256=mh0PETLMTJV509zhT7jukddg6S7YhvwhCT7zqxC6YLA,31364
|
|
411
411
|
ccxt/async_support/zonda.py,sha256=7hmHotE5JBd8034d1ZbX3oIeWIpQFrQb8aK-dP3Btx0,85327
|
|
412
412
|
ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
|
413
|
-
ccxt/async_support/base/exchange.py,sha256=
|
|
413
|
+
ccxt/async_support/base/exchange.py,sha256=R1slWOKqyP-QQKk19qcFeisW6z9bKv2cz1m60pDx3SQ,121268
|
|
414
414
|
ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
|
415
415
|
ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
|
416
416
|
ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
|
|
@@ -422,10 +422,10 @@ ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmB
|
|
|
422
422
|
ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
|
423
423
|
ccxt/base/decimal_to_precision.py,sha256=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
|
|
424
424
|
ccxt/base/errors.py,sha256=OGhWNvNtRlJOzFx-n1x3ZjTnaPpfWH0Vc0xACS-MeDw,5012
|
|
425
|
-
ccxt/base/exchange.py,sha256=
|
|
425
|
+
ccxt/base/exchange.py,sha256=t_YL3mi-wu_4lnabXSRI2BApyQp6CYmqpYysm2VIDdk,334337
|
|
426
426
|
ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
|
427
427
|
ccxt/base/types.py,sha256=Gvbogh9i7pPH7Z18xesYeDPribqqwq8uKpOv-YODFBs,11505
|
|
428
|
-
ccxt/pro/__init__.py,sha256=
|
|
428
|
+
ccxt/pro/__init__.py,sha256=bcsp_CDUTFTiITgtD09055gJj047zewu2PPbVKKVZuU,11463
|
|
429
429
|
ccxt/pro/alpaca.py,sha256=REAEZxdv2pY8xjxBGCBca3nPKpIdleVqr-IVpuVmADg,27637
|
|
430
430
|
ccxt/pro/apex.py,sha256=FLBaLN2FESIh9gqHPVwf0IkkIHpxGHHUcFwgBGBEkrA,42018
|
|
431
431
|
ccxt/pro/ascendex.py,sha256=P0DnIMIA-BIGxyoEQBLGtjH-whRhkPbhe8gU2s5V238,37526
|
|
@@ -748,8 +748,8 @@ ccxt/test/tests_async.py,sha256=D5ZDYYW635E2LFEhJt7HfIjbFVCQl3WSBEFnR-QEQzM,9549
|
|
|
748
748
|
ccxt/test/tests_helpers.py,sha256=egM69A2ZFYeVF5hwC1Qt-c5DOeClY5bv4jowmceeFV8,9736
|
|
749
749
|
ccxt/test/tests_init.py,sha256=qM0-Gb0h0p6CANWTkyYZI7wl-iYOcrPur7aj_OKh7m0,1212
|
|
750
750
|
ccxt/test/tests_sync.py,sha256=Rr72cGmoKqbUIIEJJAGh2_QhBc4rIZlBxVtGCQVd4BE,94440
|
|
751
|
-
ccxt_ir-4.9.
|
|
752
|
-
ccxt_ir-4.9.
|
|
753
|
-
ccxt_ir-4.9.
|
|
754
|
-
ccxt_ir-4.9.
|
|
755
|
-
ccxt_ir-4.9.
|
|
751
|
+
ccxt_ir-4.9.1.dist-info/licenses/LICENSE.txt,sha256=EIb9221AhMHV7xF1_55STFdKTFsnJVJYkRpY2Lnvo5w,1068
|
|
752
|
+
ccxt_ir-4.9.1.dist-info/METADATA,sha256=g1nSxDrch8XHXd7i08QcS5oCj_qMTZQnvVYidRRz41U,139254
|
|
753
|
+
ccxt_ir-4.9.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
754
|
+
ccxt_ir-4.9.1.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
|
|
755
|
+
ccxt_ir-4.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|