ccxt 4.3.43__py2.py3-none-any.whl → 4.3.45__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 +5 -1
- ccxt/abstract/bitstamp.py +18 -2
- ccxt/abstract/kucoin.py +14 -0
- ccxt/abstract/kucoinfutures.py +14 -0
- ccxt/abstract/oxfun.py +34 -0
- ccxt/abstract/xt.py +152 -0
- ccxt/async_support/__init__.py +5 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bitstamp.py +18 -2
- ccxt/async_support/kucoin.py +27 -1
- ccxt/async_support/luno.py +9 -1
- ccxt/async_support/lykke.py +10 -2
- ccxt/async_support/ndax.py +5 -1
- ccxt/async_support/oxfun.py +2773 -0
- ccxt/async_support/poloniexfutures.py +2 -2
- ccxt/async_support/wavesexchange.py +118 -105
- ccxt/async_support/xt.py +4454 -0
- ccxt/base/exchange.py +1 -1
- ccxt/bitstamp.py +18 -2
- ccxt/kucoin.py +27 -1
- ccxt/luno.py +9 -1
- ccxt/lykke.py +10 -2
- ccxt/ndax.py +5 -1
- ccxt/oxfun.py +2772 -0
- ccxt/poloniexfutures.py +2 -2
- ccxt/pro/__init__.py +3 -1
- ccxt/pro/bitmex.py +6 -0
- ccxt/pro/oxfun.py +950 -0
- ccxt/pro/woo.py +1 -1
- ccxt/test/test_async.py +37 -1
- ccxt/test/test_sync.py +37 -1
- ccxt/wavesexchange.py +118 -105
- ccxt/xt.py +4453 -0
- {ccxt-4.3.43.dist-info → ccxt-4.3.45.dist-info}/METADATA +8 -6
- {ccxt-4.3.43.dist-info → ccxt-4.3.45.dist-info}/RECORD +37 -30
- {ccxt-4.3.43.dist-info → ccxt-4.3.45.dist-info}/WHEEL +0 -0
- {ccxt-4.3.43.dist-info → ccxt-4.3.45.dist-info}/top_level.txt +0 -0
ccxt/poloniexfutures.py
CHANGED
@@ -1180,7 +1180,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1180
1180
|
cancelledOrderIdsLength = len(cancelledOrderIds)
|
1181
1181
|
for i in range(0, cancelledOrderIdsLength):
|
1182
1182
|
cancelledOrderId = self.safe_string(cancelledOrderIds, i)
|
1183
|
-
result.append({
|
1183
|
+
result.append(self.safe_order({
|
1184
1184
|
'id': cancelledOrderId,
|
1185
1185
|
'clientOrderId': None,
|
1186
1186
|
'timestamp': None,
|
@@ -1202,7 +1202,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1202
1202
|
'postOnly': None,
|
1203
1203
|
'stopPrice': None,
|
1204
1204
|
'info': response,
|
1205
|
-
})
|
1205
|
+
}))
|
1206
1206
|
return result
|
1207
1207
|
|
1208
1208
|
def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
ccxt/pro/__init__.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
# ----------------------------------------------------------------------------
|
6
6
|
|
7
|
-
__version__ = '4.3.
|
7
|
+
__version__ = '4.3.45'
|
8
8
|
|
9
9
|
# ----------------------------------------------------------------------------
|
10
10
|
|
@@ -67,6 +67,7 @@ from ccxt.pro.ndax import ndax # noqa
|
|
67
67
|
from ccxt.pro.okcoin import okcoin # noqa: F401
|
68
68
|
from ccxt.pro.okx import okx # noqa: F401
|
69
69
|
from ccxt.pro.onetrading import onetrading # noqa: F401
|
70
|
+
from ccxt.pro.oxfun import oxfun # noqa: F401
|
70
71
|
from ccxt.pro.p2b import p2b # noqa: F401
|
71
72
|
from ccxt.pro.phemex import phemex # noqa: F401
|
72
73
|
from ccxt.pro.poloniex import poloniex # noqa: F401
|
@@ -134,6 +135,7 @@ exchanges = [
|
|
134
135
|
'okcoin',
|
135
136
|
'okx',
|
136
137
|
'onetrading',
|
138
|
+
'oxfun',
|
137
139
|
'p2b',
|
138
140
|
'phemex',
|
139
141
|
'poloniex',
|
ccxt/pro/bitmex.py
CHANGED
@@ -1469,11 +1469,15 @@ class bitmex(ccxt.async_support.bitmex):
|
|
1469
1469
|
#
|
1470
1470
|
action = self.safe_string(message, 'action')
|
1471
1471
|
table = self.safe_string(message, 'table')
|
1472
|
+
if table is None:
|
1473
|
+
return # protecting from weird updates
|
1472
1474
|
data = self.safe_value(message, 'data', [])
|
1473
1475
|
# if it's an initial snapshot
|
1474
1476
|
if action == 'partial':
|
1475
1477
|
filter = self.safe_dict(message, 'filter', {})
|
1476
1478
|
marketId = self.safe_value(filter, 'symbol')
|
1479
|
+
if marketId is None:
|
1480
|
+
return # protecting from weird update
|
1477
1481
|
market = self.safe_market(marketId)
|
1478
1482
|
symbol = market['symbol']
|
1479
1483
|
if table == 'orderBookL2':
|
@@ -1501,6 +1505,8 @@ class bitmex(ccxt.async_support.bitmex):
|
|
1501
1505
|
numUpdatesByMarketId: dict = {}
|
1502
1506
|
for i in range(0, len(data)):
|
1503
1507
|
marketId = self.safe_value(data[i], 'symbol')
|
1508
|
+
if marketId is None:
|
1509
|
+
return # protecting from weird update
|
1504
1510
|
if not (marketId in numUpdatesByMarketId):
|
1505
1511
|
numUpdatesByMarketId[marketId] = 0
|
1506
1512
|
numUpdatesByMarketId[marketId] = self.sum(numUpdatesByMarketId, 1)
|