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/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.43'
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)