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/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bitget.py +2 -0
- ccxt/async_support/bybit.py +99 -45
- ccxt/async_support/novadax.py +3 -0
- ccxt/async_support/okx.py +5 -1
- ccxt/base/exchange.py +1 -1
- ccxt/bitget.py +2 -0
- ccxt/bybit.py +99 -45
- ccxt/novadax.py +3 -0
- ccxt/okx.py +5 -1
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/base/exchange.py +1 -1
- ccxt/pro/binance.py +2 -2
- ccxt/pro/bitfinex2.py +5 -3
- ccxt/pro/bybit.py +505 -502
- {ccxt-2.9.10.dist-info → ccxt-2.9.12.dist-info}/METADATA +4 -4
- {ccxt-2.9.10.dist-info → ccxt-2.9.12.dist-info}/RECORD +21 -21
- {ccxt-2.9.10.dist-info → ccxt-2.9.12.dist-info}/WHEEL +0 -0
- {ccxt-2.9.10.dist-info → ccxt-2.9.12.dist-info}/top_level.txt +0 -0
ccxt/pro/base/exchange.py
CHANGED
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.
|
1295
|
-
if (feeCost is not None) and (feeCost
|
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 = '
|
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.
|
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(
|
955
|
+
market = self.safe_market(marketId)
|
954
956
|
amount = self.safe_number(order, 7)
|
955
957
|
side = 'buy'
|
956
958
|
if amount < 0:
|