ccxt 2.9.10__py2.py3-none-any.whl → 2.9.12__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

ccxt/pro/base/exchange.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '2.9.10'
5
+ __version__ = '2.9.12'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
ccxt/pro/binance.py CHANGED
@@ -1291,8 +1291,8 @@ class binance(Exchange, ccxt.async_support.binance):
1291
1291
  elif executionType == 'TRADE':
1292
1292
  lastTradeTimestamp = T
1293
1293
  fee = None
1294
- feeCost = self.safe_float(order, 'n')
1295
- if (feeCost is not None) and (feeCost > 0):
1294
+ feeCost = self.safe_string(order, 'n')
1295
+ if (feeCost is not None) and (Precise.string_gt(feeCost, '0')):
1296
1296
  feeCurrencyId = self.safe_string(order, 'N')
1297
1297
  feeCurrency = self.safe_currency_code(feeCurrencyId)
1298
1298
  fee = {
ccxt/pro/bitfinex2.py CHANGED
@@ -779,7 +779,7 @@ class bitfinex2(Exchange, ccxt.async_support.bitfinex2):
779
779
  def authenticate(self, params={}):
780
780
  url = self.urls['api']['ws']['private']
781
781
  client = self.client(url)
782
- messageHash = 'authenticate'
782
+ messageHash = 'authenticated'
783
783
  future = self.safe_value(client.subscriptions, messageHash)
784
784
  if future is None:
785
785
  nonce = self.milliseconds()
@@ -891,12 +891,14 @@ class bitfinex2(Exchange, ccxt.async_support.bitfinex2):
891
891
  else:
892
892
  parsed = self.parse_ws_order(data)
893
893
  orders.append(parsed)
894
+ symbol = parsed['symbol']
895
+ symbolIds[symbol] = True
894
896
  name = 'orders'
895
897
  client.resolve(self.orders, name)
896
898
  keys = list(symbolIds.keys())
897
899
  for i in range(0, len(keys)):
898
900
  symbol = keys[i]
899
- market = self.safe_market(symbol)
901
+ market = self.market(symbol)
900
902
  messageHash = name + ':' + market['id']
901
903
  client.resolve(self.orders, messageHash)
902
904
 
@@ -950,7 +952,7 @@ class bitfinex2(Exchange, ccxt.async_support.bitfinex2):
950
952
  clientOrderId = self.safe_string(order, 1)
951
953
  marketId = self.safe_string(order, 3)
952
954
  symbol = self.safe_symbol(marketId)
953
- market = self.safe_market(symbol)
955
+ market = self.safe_market(marketId)
954
956
  amount = self.safe_number(order, 7)
955
957
  side = 'buy'
956
958
  if amount < 0: