ccxt 4.2.84__py2.py3-none-any.whl → 4.2.86__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/abstract/coinex.py +232 -123
- ccxt/ace.py +5 -5
- ccxt/ascendex.py +8 -8
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +5 -5
- ccxt/async_support/ascendex.py +8 -8
- ccxt/async_support/base/exchange.py +3 -27
- ccxt/async_support/bigone.py +12 -12
- ccxt/async_support/binance.py +20 -32
- ccxt/async_support/bingx.py +45 -28
- ccxt/async_support/bit2c.py +1 -1
- ccxt/async_support/bitbank.py +27 -29
- ccxt/async_support/bitbns.py +5 -5
- ccxt/async_support/bitfinex.py +1 -1
- ccxt/async_support/bitfinex2.py +1 -1
- ccxt/async_support/bitget.py +29 -24
- ccxt/async_support/bithumb.py +5 -5
- ccxt/async_support/bitmart.py +16 -16
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitrue.py +4 -4
- ccxt/async_support/bitso.py +5 -5
- ccxt/async_support/bitstamp.py +1 -1
- ccxt/async_support/bitteam.py +8 -8
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcturk.py +6 -6
- ccxt/async_support/bybit.py +30 -83
- ccxt/async_support/coincheck.py +4 -4
- ccxt/async_support/coinex.py +404 -262
- ccxt/async_support/coinlist.py +7 -7
- ccxt/async_support/coinmate.py +4 -4
- ccxt/async_support/coinmetro.py +3 -3
- ccxt/async_support/coinone.py +5 -5
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +17 -17
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +0 -8
- ccxt/async_support/deribit.py +16 -80
- ccxt/async_support/digifinex.py +8 -8
- ccxt/async_support/exmo.py +8 -8
- ccxt/async_support/gate.py +0 -8
- ccxt/async_support/hitbtc.py +5 -4
- ccxt/async_support/hollaex.py +7 -7
- ccxt/async_support/htx.py +7 -7
- ccxt/async_support/huobijp.py +3 -3
- ccxt/async_support/idex.py +12 -12
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/indodax.py +2 -2
- ccxt/async_support/kraken.py +8 -8
- ccxt/async_support/krakenfutures.py +6 -6
- ccxt/async_support/kucoin.py +4 -1
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/kuna.py +16 -16
- ccxt/async_support/latoken.py +2 -2
- ccxt/async_support/lbank.py +10 -10
- ccxt/async_support/luno.py +4 -4
- ccxt/async_support/mercado.py +5 -5
- ccxt/async_support/mexc.py +6 -6
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +9 -9
- ccxt/async_support/oceanex.py +7 -7
- ccxt/async_support/okcoin.py +15 -14
- ccxt/async_support/okx.py +23 -31
- ccxt/async_support/onetrading.py +4 -4
- ccxt/async_support/p2b.py +7 -7
- ccxt/async_support/phemex.py +12 -12
- ccxt/async_support/poloniexfutures.py +5 -5
- ccxt/async_support/probit.py +11 -11
- ccxt/async_support/timex.py +7 -7
- ccxt/async_support/tokocrypto.py +9 -9
- ccxt/async_support/wavesexchange.py +3 -3
- ccxt/async_support/whitebit.py +5 -5
- ccxt/async_support/woo.py +1 -1
- ccxt/async_support/zaif.py +1 -1
- ccxt/async_support/zonda.py +7 -7
- ccxt/base/exchange.py +66 -23
- ccxt/bigone.py +12 -12
- ccxt/binance.py +20 -32
- ccxt/bingx.py +45 -28
- ccxt/bit2c.py +1 -1
- ccxt/bitbank.py +27 -29
- ccxt/bitbns.py +5 -5
- ccxt/bitfinex.py +1 -1
- ccxt/bitfinex2.py +1 -1
- ccxt/bitget.py +29 -24
- ccxt/bithumb.py +5 -5
- ccxt/bitmart.py +16 -16
- ccxt/bitopro.py +1 -1
- ccxt/bitrue.py +4 -4
- ccxt/bitso.py +5 -5
- ccxt/bitstamp.py +1 -1
- ccxt/bitteam.py +8 -8
- ccxt/bl3p.py +1 -1
- ccxt/btcturk.py +6 -6
- ccxt/bybit.py +30 -83
- ccxt/coincheck.py +4 -4
- ccxt/coinex.py +404 -262
- ccxt/coinlist.py +7 -7
- ccxt/coinmate.py +4 -4
- ccxt/coinmetro.py +3 -3
- ccxt/coinone.py +5 -5
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +17 -17
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +0 -8
- ccxt/deribit.py +16 -80
- ccxt/digifinex.py +8 -8
- ccxt/exmo.py +8 -8
- ccxt/gate.py +0 -8
- ccxt/hitbtc.py +5 -4
- ccxt/hollaex.py +7 -7
- ccxt/htx.py +7 -7
- ccxt/huobijp.py +3 -3
- ccxt/idex.py +12 -12
- ccxt/independentreserve.py +2 -2
- ccxt/indodax.py +2 -2
- ccxt/kraken.py +8 -8
- ccxt/krakenfutures.py +6 -6
- ccxt/kucoin.py +4 -1
- ccxt/kucoinfutures.py +8 -8
- ccxt/kuna.py +16 -16
- ccxt/latoken.py +2 -2
- ccxt/lbank.py +10 -10
- ccxt/luno.py +4 -4
- ccxt/mercado.py +5 -5
- ccxt/mexc.py +6 -6
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +9 -9
- ccxt/oceanex.py +7 -7
- ccxt/okcoin.py +15 -14
- ccxt/okx.py +23 -31
- ccxt/onetrading.py +4 -4
- ccxt/p2b.py +7 -7
- ccxt/phemex.py +12 -12
- ccxt/poloniexfutures.py +5 -5
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/binance.py +150 -112
- ccxt/pro/bitget.py +1 -0
- ccxt/pro/kucoin.py +6 -7
- ccxt/pro/okx.py +12 -1
- ccxt/probit.py +11 -11
- ccxt/timex.py +7 -7
- ccxt/tokocrypto.py +9 -9
- ccxt/wavesexchange.py +3 -3
- ccxt/whitebit.py +5 -5
- ccxt/woo.py +1 -1
- ccxt/zaif.py +1 -1
- ccxt/zonda.py +7 -7
- {ccxt-4.2.84.dist-info → ccxt-4.2.86.dist-info}/METADATA +6 -6
- {ccxt-4.2.84.dist-info → ccxt-4.2.86.dist-info}/RECORD +152 -152
- {ccxt-4.2.84.dist-info → ccxt-4.2.86.dist-info}/WHEEL +0 -0
- {ccxt-4.2.84.dist-info → ccxt-4.2.86.dist-info}/top_level.txt +0 -0
ccxt/wavesexchange.py
CHANGED
@@ -860,7 +860,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
860
860
|
#
|
861
861
|
data = self.safe_value(response, 'data', [])
|
862
862
|
ticker = self.safe_value(data, 0, {})
|
863
|
-
dataTicker = self.
|
863
|
+
dataTicker = self.safe_dict(ticker, 'data', {})
|
864
864
|
return self.parse_ticker(dataTicker, market)
|
865
865
|
|
866
866
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
@@ -1385,11 +1385,11 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1385
1385
|
#
|
1386
1386
|
if isMarketOrder:
|
1387
1387
|
response = self.matcherPostMatcherOrderbookMarket(body)
|
1388
|
-
value = self.
|
1388
|
+
value = self.safe_dict(response, 'message')
|
1389
1389
|
return self.parse_order(value, market)
|
1390
1390
|
else:
|
1391
1391
|
response = self.matcherPostMatcherOrderbook(body)
|
1392
|
-
value = self.
|
1392
|
+
value = self.safe_dict(response, 'message')
|
1393
1393
|
return self.parse_order(value, market)
|
1394
1394
|
|
1395
1395
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
ccxt/whitebit.py
CHANGED
@@ -728,7 +728,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
728
728
|
# },
|
729
729
|
# }
|
730
730
|
#
|
731
|
-
ticker = self.
|
731
|
+
ticker = self.safe_dict(response, 'result', {})
|
732
732
|
return self.parse_ticker(ticker, market)
|
733
733
|
|
734
734
|
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
@@ -1069,7 +1069,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1069
1069
|
# ]
|
1070
1070
|
# }
|
1071
1071
|
#
|
1072
|
-
result = self.
|
1072
|
+
result = self.safe_list(response, 'result', [])
|
1073
1073
|
return self.parse_ohlcvs(result, market, timeframe, since, limit)
|
1074
1074
|
|
1075
1075
|
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
@@ -1523,7 +1523,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1523
1523
|
# "limit": 100
|
1524
1524
|
# }
|
1525
1525
|
#
|
1526
|
-
data = self.
|
1526
|
+
data = self.safe_list(response, 'records', [])
|
1527
1527
|
return self.parse_trades(data, market)
|
1528
1528
|
|
1529
1529
|
def fetch_deposit_address(self, code: str, params={}):
|
@@ -1842,7 +1842,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1842
1842
|
# }
|
1843
1843
|
#
|
1844
1844
|
records = self.safe_value(response, 'records', [])
|
1845
|
-
first = self.
|
1845
|
+
first = self.safe_dict(records, 0, {})
|
1846
1846
|
return self.parse_transaction(first, currency)
|
1847
1847
|
|
1848
1848
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
@@ -1905,7 +1905,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1905
1905
|
# "total": 300 # total number of transactions, use self for calculating ‘limit’ and ‘offset'
|
1906
1906
|
# }
|
1907
1907
|
#
|
1908
|
-
records = self.
|
1908
|
+
records = self.safe_list(response, 'records', [])
|
1909
1909
|
return self.parse_transactions(records, currency, since, limit)
|
1910
1910
|
|
1911
1911
|
def fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
ccxt/woo.py
CHANGED
@@ -1258,7 +1258,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1258
1258
|
# ]
|
1259
1259
|
# }
|
1260
1260
|
#
|
1261
|
-
orders = self.
|
1261
|
+
orders = self.safe_dict(response, 'data', response)
|
1262
1262
|
return self.parse_order(orders, market)
|
1263
1263
|
|
1264
1264
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
ccxt/zaif.py
CHANGED
@@ -600,7 +600,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
600
600
|
# }
|
601
601
|
# }
|
602
602
|
#
|
603
|
-
returnData = self.
|
603
|
+
returnData = self.safe_dict(result, 'return')
|
604
604
|
return self.parse_transaction(returnData, currency)
|
605
605
|
|
606
606
|
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
ccxt/zonda.py
CHANGED
@@ -421,7 +421,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
421
421
|
self.load_markets()
|
422
422
|
request = {}
|
423
423
|
response = self.v1_01PrivateGetTradingOffer(self.extend(request, params))
|
424
|
-
items = self.
|
424
|
+
items = self.safe_list(response, 'items', [])
|
425
425
|
return self.parse_orders(items, None, since, limit, {'status': 'open'})
|
426
426
|
|
427
427
|
def parse_order(self, order, market: Market = None) -> Order:
|
@@ -788,7 +788,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
788
788
|
#
|
789
789
|
else:
|
790
790
|
raise BadRequest(self.id + ' fetchTickers params["method"] must be "v1_01PublicGetTradingTicker" or "v1_01PublicGetTradingStats"')
|
791
|
-
items = self.
|
791
|
+
items = self.safe_dict(response, 'items')
|
792
792
|
return self.parse_tickers(items, symbols)
|
793
793
|
|
794
794
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
@@ -1200,7 +1200,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1200
1200
|
# ]
|
1201
1201
|
# }
|
1202
1202
|
#
|
1203
|
-
items = self.
|
1203
|
+
items = self.safe_list(response, 'items', [])
|
1204
1204
|
return self.parse_ohlcvs(items, market, timeframe, since, limit)
|
1205
1205
|
|
1206
1206
|
def parse_trade(self, trade, market: Market = None) -> Trade:
|
@@ -1298,7 +1298,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1298
1298
|
if limit is not None:
|
1299
1299
|
request['limit'] = limit # default - 10, max - 300
|
1300
1300
|
response = self.v1_01PublicGetTradingTransactionsSymbol(self.extend(request, params))
|
1301
|
-
items = self.
|
1301
|
+
items = self.safe_list(response, 'items')
|
1302
1302
|
return self.parse_trades(items, market, since, limit)
|
1303
1303
|
|
1304
1304
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
@@ -1509,7 +1509,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1509
1509
|
# }
|
1510
1510
|
#
|
1511
1511
|
data = self.safe_value(response, 'data')
|
1512
|
-
first = self.
|
1512
|
+
first = self.safe_dict(data, 0)
|
1513
1513
|
return self.parse_deposit_address(first, currency)
|
1514
1514
|
|
1515
1515
|
def fetch_deposit_addresses(self, codes: List[str] = None, params={}):
|
@@ -1535,7 +1535,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1535
1535
|
# ]
|
1536
1536
|
# }
|
1537
1537
|
#
|
1538
|
-
data = self.
|
1538
|
+
data = self.safe_list(response, 'data')
|
1539
1539
|
return self.parse_deposit_addresses(data, codes)
|
1540
1540
|
|
1541
1541
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
@@ -1684,7 +1684,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1684
1684
|
# }
|
1685
1685
|
# }
|
1686
1686
|
#
|
1687
|
-
data = self.
|
1687
|
+
data = self.safe_dict(response, 'data')
|
1688
1688
|
return self.parse_transaction(data, currency)
|
1689
1689
|
|
1690
1690
|
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.2.
|
3
|
+
Version: 4.2.86
|
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
|
@@ -92,7 +92,7 @@ Current feature list:
|
|
92
92
|
| [](https://www.bitmex.com/app/register/NZTR1q) | bitmex | [BitMEX](https://www.bitmex.com/app/register/NZTR1q) | [](https://www.bitmex.com/app/apiOverview) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | [](https://www.bitmex.com/app/register/NZTR1q) |
|
93
93
|
| [](https://www.bybit.com/register?affiliate_id=35953) | bybit | [Bybit](https://www.bybit.com/register?affiliate_id=35953) | [](https://bybit-exchange.github.io/docs/inverse/) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | |
|
94
94
|
| [](https://international.coinbase.com) | coinbaseinternational | [Coinbase International](https://international.coinbase.com) | [](https://docs.cloud.coinbase.com/intx/docs) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | |
|
95
|
-
| [](https://www.coinex.com/register?refer_code=yw5fz) | coinex | [CoinEx](https://www.coinex.com/register?refer_code=yw5fz) | [](https://
|
95
|
+
| [](https://www.coinex.com/register?refer_code=yw5fz) | coinex | [CoinEx](https://www.coinex.com/register?refer_code=yw5fz) | [](https://docs.coinex.com/api/v2) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | |
|
96
96
|
| [](https://crypto.com/exch/kdacthrnxt) | cryptocom | [Crypto.com](https://crypto.com/exch/kdacthrnxt) | [](https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | [](https://crypto.com/exch/kdacthrnxt) |
|
97
97
|
| [](https://www.gate.io/signup/2436035) | gate | [Gate.io](https://www.gate.io/signup/2436035) | [](https://www.gate.io/docs/developers/apiv4/en/) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | [](https://www.gate.io/signup/2436035) |
|
98
98
|
| [](https://www.huobi.com/en-us/v/register/double-invite/?inviter_id=11343840&invite_code=6rmm2223) | htx | [HTX](https://www.huobi.com/en-us/v/register/double-invite/?inviter_id=11343840&invite_code=6rmm2223) | [](https://huobiapi.github.io/docs/spot/v1/en/) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | [](https://www.huobi.com/en-us/v/register/double-invite/?inviter_id=11343840&invite_code=6rmm2223) |
|
@@ -147,7 +147,7 @@ The CCXT library currently supports the following 97 cryptocurrency exchange mar
|
|
147
147
|
| [](https://international.coinbase.com) | coinbaseinternational | [Coinbase International](https://international.coinbase.com) | [](https://docs.cloud.coinbase.com/intx/docs) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) |
|
148
148
|
| [](https://pro.coinbase.com/) | coinbasepro | [Coinbase Pro](https://pro.coinbase.com/) | [](https://docs.pro.coinbase.com) | | [](https://ccxt.pro) |
|
149
149
|
| [](https://coincheck.com) | coincheck | [coincheck](https://coincheck.com) | [](https://coincheck.com/documents/exchange/api) | | |
|
150
|
-
| [](https://www.coinex.com/register?refer_code=yw5fz) | coinex | [CoinEx](https://www.coinex.com/register?refer_code=yw5fz) | [](https://
|
150
|
+
| [](https://www.coinex.com/register?refer_code=yw5fz) | coinex | [CoinEx](https://www.coinex.com/register?refer_code=yw5fz) | [](https://docs.coinex.com/api/v2) | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) |
|
151
151
|
| [](https://coinlist.co) | coinlist | [Coinlist](https://coinlist.co) | [](https://trade-docs.coinlist.co) | | |
|
152
152
|
| [](https://coinmate.io?referral=YTFkM1RsOWFObVpmY1ZjMGREQmpTRnBsWjJJNVp3PT0) | coinmate | [CoinMate](https://coinmate.io?referral=YTFkM1RsOWFObVpmY1ZjMGREQmpTRnBsWjJJNVp3PT0) | [](https://coinmate.docs.apiary.io) | | |
|
153
153
|
| [](https://go.coinmetro.com/?ref=crypto24) | coinmetro | [Coinmetro](https://go.coinmetro.com/?ref=crypto24) | [](https://documenter.getpostman.com/view/3653795/SVfWN6KS) | | |
|
@@ -262,13 +262,13 @@ console.log(version, Object.keys(exchanges));
|
|
262
262
|
|
263
263
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
264
264
|
|
265
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
266
|
-
* unpkg: https://unpkg.com/ccxt@4.2.
|
265
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.86/dist/ccxt.browser.js
|
266
|
+
* unpkg: https://unpkg.com/ccxt@4.2.86/dist/ccxt.browser.js
|
267
267
|
|
268
268
|
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.
|
269
269
|
|
270
270
|
```HTML
|
271
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
271
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.86/dist/ccxt.browser.js"></script>
|
272
272
|
```
|
273
273
|
|
274
274
|
Creates a global `ccxt` object:
|