ccxt 4.3.32__py2.py3-none-any.whl → 4.3.34__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/abstract/binance.py +1 -0
- ccxt/abstract/binancecoinm.py +1 -0
- ccxt/abstract/binanceus.py +1 -0
- ccxt/abstract/binanceusdm.py +1 -0
- ccxt/abstract/bitget.py +1 -1
- ccxt/ace.py +2 -2
- ccxt/alpaca.py +1 -1
- ccxt/ascendex.py +2 -2
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +2 -2
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/ascendex.py +2 -2
- ccxt/async_support/base/exchange.py +17 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +4 -3
- ccxt/async_support/bingx.py +2 -2
- ccxt/async_support/bit2c.py +1 -1
- ccxt/async_support/bitbank.py +1 -1
- ccxt/async_support/bitbns.py +1 -1
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +1 -1
- ccxt/async_support/bitflyer.py +1 -1
- ccxt/async_support/bitget.py +4 -4
- ccxt/async_support/bithumb.py +1 -1
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +3 -3
- ccxt/async_support/bitopro.py +3 -3
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +2 -2
- ccxt/async_support/bitteam.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/blofin.py +3 -3
- ccxt/async_support/btcalpha.py +3 -3
- ccxt/async_support/btcbox.py +1 -1
- ccxt/async_support/btcmarkets.py +3 -3
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +2 -2
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +96 -55
- ccxt/async_support/coinbaseexchange.py +1 -1
- ccxt/async_support/coinbaseinternational.py +3 -3
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +2 -2
- ccxt/async_support/coinlist.py +2 -2
- ccxt/async_support/coinmate.py +2 -2
- ccxt/async_support/coinmetro.py +2 -2
- ccxt/async_support/coinone.py +1 -1
- ccxt/async_support/coinsph.py +2 -2
- ccxt/async_support/cryptocom.py +1 -1
- ccxt/async_support/currencycom.py +2 -2
- ccxt/async_support/delta.py +1 -1
- ccxt/async_support/deribit.py +2 -2
- ccxt/async_support/digifinex.py +2 -2
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/gate.py +2 -2
- ccxt/async_support/gemini.py +2 -2
- ccxt/async_support/hitbtc.py +2 -2
- ccxt/async_support/hollaex.py +1 -1
- ccxt/async_support/htx.py +2 -2
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/hyperliquid.py +2 -2
- ccxt/async_support/idex.py +2 -2
- ccxt/async_support/indodax.py +2 -2
- ccxt/async_support/kraken.py +2 -2
- ccxt/async_support/krakenfutures.py +1 -1
- ccxt/async_support/kucoin.py +2 -2
- ccxt/async_support/kuna.py +2 -2
- ccxt/async_support/latoken.py +2 -2
- ccxt/async_support/lbank.py +1 -1
- ccxt/async_support/luno.py +1 -1
- ccxt/async_support/lykke.py +1 -1
- ccxt/async_support/mercado.py +1 -1
- ccxt/async_support/mexc.py +1 -1
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/novadax.py +3 -3
- ccxt/async_support/oceanex.py +2 -2
- ccxt/async_support/okcoin.py +3 -3
- ccxt/async_support/okx.py +3 -3
- ccxt/async_support/onetrading.py +2 -2
- ccxt/async_support/p2b.py +2 -2
- ccxt/async_support/paymium.py +1 -1
- ccxt/async_support/phemex.py +4 -4
- ccxt/async_support/poloniex.py +3 -3
- ccxt/async_support/poloniexfutures.py +2 -2
- ccxt/async_support/probit.py +3 -3
- ccxt/async_support/timex.py +2 -2
- ccxt/async_support/tokocrypto.py +1 -1
- ccxt/async_support/tradeogre.py +1 -1
- ccxt/async_support/upbit.py +3 -3
- ccxt/async_support/wavesexchange.py +1 -1
- ccxt/async_support/wazirx.py +3 -3
- ccxt/async_support/whitebit.py +3 -3
- ccxt/async_support/woo.py +3 -3
- ccxt/async_support/woofipro.py +3 -3
- ccxt/async_support/yobit.py +1 -1
- ccxt/async_support/zaif.py +2 -2
- ccxt/async_support/zonda.py +1 -1
- ccxt/base/exchange.py +25 -3
- ccxt/base/types.py +0 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +4 -3
- ccxt/bingx.py +2 -2
- ccxt/bit2c.py +1 -1
- ccxt/bitbank.py +1 -1
- ccxt/bitbns.py +1 -1
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +1 -1
- ccxt/bitflyer.py +1 -1
- ccxt/bitget.py +4 -4
- ccxt/bithumb.py +1 -1
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +3 -3
- ccxt/bitopro.py +3 -3
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +2 -2
- ccxt/bitteam.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/blockchaincom.py +1 -1
- ccxt/blofin.py +3 -3
- ccxt/btcalpha.py +3 -3
- ccxt/btcbox.py +1 -1
- ccxt/btcmarkets.py +3 -3
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +2 -2
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +96 -55
- ccxt/coinbaseexchange.py +1 -1
- ccxt/coinbaseinternational.py +3 -3
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +2 -2
- ccxt/coinlist.py +2 -2
- ccxt/coinmate.py +2 -2
- ccxt/coinmetro.py +2 -2
- ccxt/coinone.py +1 -1
- ccxt/coinsph.py +2 -2
- ccxt/cryptocom.py +1 -1
- ccxt/currencycom.py +2 -2
- ccxt/delta.py +1 -1
- ccxt/deribit.py +2 -2
- ccxt/digifinex.py +2 -2
- ccxt/exmo.py +2 -2
- ccxt/gate.py +2 -2
- ccxt/gemini.py +2 -2
- ccxt/hitbtc.py +2 -2
- ccxt/hollaex.py +1 -1
- ccxt/htx.py +2 -2
- ccxt/huobijp.py +2 -2
- ccxt/hyperliquid.py +2 -2
- ccxt/idex.py +2 -2
- ccxt/indodax.py +2 -2
- ccxt/kraken.py +2 -2
- ccxt/krakenfutures.py +1 -1
- ccxt/kucoin.py +2 -2
- ccxt/kuna.py +2 -2
- ccxt/latoken.py +2 -2
- ccxt/lbank.py +1 -1
- ccxt/luno.py +1 -1
- ccxt/lykke.py +1 -1
- ccxt/mercado.py +1 -1
- ccxt/mexc.py +1 -1
- ccxt/ndax.py +2 -2
- ccxt/novadax.py +3 -3
- ccxt/oceanex.py +2 -2
- ccxt/okcoin.py +3 -3
- ccxt/okx.py +3 -3
- ccxt/onetrading.py +2 -2
- ccxt/p2b.py +2 -2
- ccxt/paymium.py +1 -1
- ccxt/phemex.py +4 -4
- ccxt/poloniex.py +3 -3
- ccxt/poloniexfutures.py +2 -2
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/binance.py +331 -2
- ccxt/pro/bitmex.py +98 -1
- ccxt/pro/bybit.py +82 -1
- ccxt/pro/gate.py +173 -1
- ccxt/pro/kucoinfutures.py +4 -0
- ccxt/pro/okx.py +245 -2
- ccxt/probit.py +3 -3
- ccxt/test/base/__init__.py +1 -0
- ccxt/test/base/test_liquidation.py +50 -0
- ccxt/timex.py +2 -2
- ccxt/tokocrypto.py +1 -1
- ccxt/tradeogre.py +1 -1
- ccxt/upbit.py +3 -3
- ccxt/wavesexchange.py +1 -1
- ccxt/wazirx.py +3 -3
- ccxt/whitebit.py +3 -3
- ccxt/woo.py +3 -3
- ccxt/woofipro.py +3 -3
- ccxt/yobit.py +1 -1
- ccxt/zaif.py +2 -2
- ccxt/zonda.py +1 -1
- {ccxt-4.3.32.dist-info → ccxt-4.3.34.dist-info}/METADATA +4 -4
- {ccxt-4.3.32.dist-info → ccxt-4.3.34.dist-info}/RECORD +201 -200
- {ccxt-4.3.32.dist-info → ccxt-4.3.34.dist-info}/WHEEL +0 -0
- {ccxt-4.3.32.dist-info → ccxt-4.3.34.dist-info}/top_level.txt +0 -0
ccxt/wavesexchange.py
CHANGED
@@ -2279,7 +2279,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
2279
2279
|
data = self.array_concat(data, items)
|
2280
2280
|
return self.parse_deposit_withdraw_fees(data, codes, 'id')
|
2281
2281
|
|
2282
|
-
def handle_errors(self, code, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
2282
|
+
def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
2283
2283
|
errorCode = self.safe_string(response, 'error')
|
2284
2284
|
success = self.safe_bool(response, 'success', True)
|
2285
2285
|
Exception = self.safe_value(self.exceptions, errorCode)
|
ccxt/wazirx.py
CHANGED
@@ -236,7 +236,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
236
236
|
markets = self.safe_value(response, 'symbols', [])
|
237
237
|
return self.parse_markets(markets)
|
238
238
|
|
239
|
-
def parse_market(self, market) -> Market:
|
239
|
+
def parse_market(self, market: dict) -> Market:
|
240
240
|
id = self.safe_string(market, 'symbol')
|
241
241
|
baseId = self.safe_string(market, 'baseAsset')
|
242
242
|
quoteId = self.safe_string(market, 'quoteAsset')
|
@@ -1107,7 +1107,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
1107
1107
|
#
|
1108
1108
|
return self.parse_transactions(response, currency, since, limit)
|
1109
1109
|
|
1110
|
-
def parse_transaction_status(self, status):
|
1110
|
+
def parse_transaction_status(self, status: Str):
|
1111
1111
|
statuses: dict = {
|
1112
1112
|
'0': 'ok',
|
1113
1113
|
'1': 'fail',
|
@@ -1187,7 +1187,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
1187
1187
|
}
|
1188
1188
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
1189
1189
|
|
1190
|
-
def handle_errors(self, code, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
1190
|
+
def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
1191
1191
|
#
|
1192
1192
|
# {"code":2098,"message":"Request out of receiving window."}
|
1193
1193
|
#
|
ccxt/whitebit.py
CHANGED
@@ -349,7 +349,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
349
349
|
#
|
350
350
|
return self.parse_markets(markets)
|
351
351
|
|
352
|
-
def parse_market(self, market) -> Market:
|
352
|
+
def parse_market(self, market: dict) -> Market:
|
353
353
|
id = self.safe_string(market, 'name')
|
354
354
|
baseId = self.safe_string(market, 'stock')
|
355
355
|
quoteId = self.safe_string(market, 'money')
|
@@ -1961,7 +1961,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1961
1961
|
'info': transaction,
|
1962
1962
|
}
|
1963
1963
|
|
1964
|
-
def parse_transaction_status(self, status):
|
1964
|
+
def parse_transaction_status(self, status: Str):
|
1965
1965
|
statuses: dict = {
|
1966
1966
|
'1': 'pending',
|
1967
1967
|
'2': 'pending',
|
@@ -2415,7 +2415,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
2415
2415
|
}
|
2416
2416
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
2417
2417
|
|
2418
|
-
def handle_errors(self, code, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
2418
|
+
def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
2419
2419
|
if (code == 418) or (code == 429):
|
2420
2420
|
raise DDoSProtection(self.id + ' ' + str(code) + ' ' + reason + ' ' + body)
|
2421
2421
|
if code == 404:
|
ccxt/woo.py
CHANGED
@@ -431,7 +431,7 @@ class woo(Exchange, ImplicitAPI):
|
|
431
431
|
data = self.safe_list(response, 'rows', [])
|
432
432
|
return self.parse_markets(data)
|
433
433
|
|
434
|
-
def parse_market(self, market) -> Market:
|
434
|
+
def parse_market(self, market: dict) -> Market:
|
435
435
|
marketId = self.safe_string(market, 'symbol')
|
436
436
|
parts = marketId.split('_')
|
437
437
|
first = self.safe_string(parts, 0)
|
@@ -2110,7 +2110,7 @@ class woo(Exchange, ImplicitAPI):
|
|
2110
2110
|
'network': None,
|
2111
2111
|
}
|
2112
2112
|
|
2113
|
-
def parse_transaction_status(self, status):
|
2113
|
+
def parse_transaction_status(self, status: Str):
|
2114
2114
|
statuses: dict = {
|
2115
2115
|
'NEW': 'pending',
|
2116
2116
|
'CONFIRMING': 'pending',
|
@@ -2400,7 +2400,7 @@ class woo(Exchange, ImplicitAPI):
|
|
2400
2400
|
headers['x-api-signature'] = self.hmac(self.encode(auth), self.encode(self.secret), hashlib.sha256)
|
2401
2401
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
2402
2402
|
|
2403
|
-
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
2403
|
+
def handle_errors(self, httpCode: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
2404
2404
|
if not response:
|
2405
2405
|
return None # fallback to default error handler
|
2406
2406
|
#
|
ccxt/woofipro.py
CHANGED
@@ -397,7 +397,7 @@ class woofipro(Exchange, ImplicitAPI):
|
|
397
397
|
#
|
398
398
|
return self.safe_integer(response, 'timestamp')
|
399
399
|
|
400
|
-
def parse_market(self, market) -> Market:
|
400
|
+
def parse_market(self, market: dict) -> Market:
|
401
401
|
#
|
402
402
|
# {
|
403
403
|
# "symbol": "PERP_BTC_USDC",
|
@@ -2054,7 +2054,7 @@ class woofipro(Exchange, ImplicitAPI):
|
|
2054
2054
|
'network': None,
|
2055
2055
|
}
|
2056
2056
|
|
2057
|
-
def parse_transaction_status(self, status):
|
2057
|
+
def parse_transaction_status(self, status: Str):
|
2058
2058
|
statuses: dict = {
|
2059
2059
|
'NEW': 'pending',
|
2060
2060
|
'CONFIRMING': 'pending',
|
@@ -2507,7 +2507,7 @@ class woofipro(Exchange, ImplicitAPI):
|
|
2507
2507
|
headers['orderly-signature'] = self.urlencode_base64(self.base64_to_binary(signature))
|
2508
2508
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
2509
2509
|
|
2510
|
-
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
2510
|
+
def handle_errors(self, httpCode: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
2511
2511
|
if not response:
|
2512
2512
|
return None # fallback to default error handler
|
2513
2513
|
#
|
ccxt/yobit.py
CHANGED
@@ -1236,7 +1236,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
1236
1236
|
}
|
1237
1237
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
1238
1238
|
|
1239
|
-
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
1239
|
+
def handle_errors(self, httpCode: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
1240
1240
|
if response is None:
|
1241
1241
|
return None # fallback to default error handler
|
1242
1242
|
if 'success' in response:
|
ccxt/zaif.py
CHANGED
@@ -174,7 +174,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
174
174
|
#
|
175
175
|
return self.parse_markets(markets)
|
176
176
|
|
177
|
-
def parse_market(self, market) -> Market:
|
177
|
+
def parse_market(self, market: dict) -> Market:
|
178
178
|
id = self.safe_string(market, 'currency_pair')
|
179
179
|
name = self.safe_string(market, 'name')
|
180
180
|
baseId, quoteId = name.split('/')
|
@@ -679,7 +679,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
679
679
|
}
|
680
680
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
681
681
|
|
682
|
-
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
682
|
+
def handle_errors(self, httpCode: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
683
683
|
if response is None:
|
684
684
|
return None
|
685
685
|
#
|
ccxt/zonda.py
CHANGED
@@ -1766,7 +1766,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1766
1766
|
}
|
1767
1767
|
return {'url': url, 'method': method, 'body': body, 'headers': headers}
|
1768
1768
|
|
1769
|
-
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
|
1769
|
+
def handle_errors(self, httpCode: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
|
1770
1770
|
if response is None:
|
1771
1771
|
return None # fallback to default error handler
|
1772
1772
|
if 'code' in response:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.3.34
|
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
|
@@ -264,13 +264,13 @@ console.log(version, Object.keys(exchanges));
|
|
264
264
|
|
265
265
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
266
266
|
|
267
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
268
|
-
* unpkg: https://unpkg.com/ccxt@4.3.
|
267
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.34/dist/ccxt.browser.min.js
|
268
|
+
* unpkg: https://unpkg.com/ccxt@4.3.34/dist/ccxt.browser.min.js
|
269
269
|
|
270
270
|
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.
|
271
271
|
|
272
272
|
```HTML
|
273
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
273
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.34/dist/ccxt.browser.min.js"></script>
|
274
274
|
```
|
275
275
|
|
276
276
|
Creates a global `ccxt` object:
|