ccxt 4.3.30__py2.py3-none-any.whl → 4.3.31__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 +2 -0
- ccxt/abstract/binancecoinm.py +2 -0
- ccxt/abstract/binanceus.py +2 -0
- ccxt/abstract/binanceusdm.py +2 -0
- ccxt/ace.py +14 -14
- ccxt/alpaca.py +16 -16
- ccxt/ascendex.py +46 -46
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +14 -14
- ccxt/async_support/alpaca.py +16 -16
- ccxt/async_support/ascendex.py +46 -46
- ccxt/async_support/base/exchange.py +23 -23
- ccxt/async_support/bigone.py +32 -32
- ccxt/async_support/binance.py +105 -96
- ccxt/async_support/bingx.py +21 -21
- ccxt/async_support/bit2c.py +13 -13
- ccxt/async_support/bitbank.py +19 -19
- ccxt/async_support/bitbns.py +17 -17
- ccxt/async_support/bitfinex.py +24 -24
- ccxt/async_support/bitfinex2.py +142 -109
- ccxt/async_support/bitflyer.py +23 -23
- ccxt/async_support/bitget.py +76 -76
- ccxt/async_support/bithumb.py +20 -20
- ccxt/async_support/bitmart.py +55 -55
- ccxt/async_support/bitmex.py +41 -41
- ccxt/async_support/bitopro.py +30 -30
- ccxt/async_support/bitrue.py +37 -37
- ccxt/async_support/bitso.py +30 -30
- ccxt/async_support/bitstamp.py +31 -31
- ccxt/async_support/bitteam.py +26 -26
- ccxt/async_support/bitvavo.py +27 -27
- ccxt/async_support/bl3p.py +8 -8
- ccxt/async_support/blockchaincom.py +24 -24
- ccxt/async_support/blofin.py +37 -37
- ccxt/async_support/btcalpha.py +19 -19
- ccxt/async_support/btcbox.py +11 -11
- ccxt/async_support/btcmarkets.py +22 -22
- ccxt/async_support/btcturk.py +13 -13
- ccxt/async_support/bybit.py +96 -96
- ccxt/async_support/cex.py +21 -21
- ccxt/async_support/coinbase.py +53 -53
- ccxt/async_support/coinbaseexchange.py +29 -29
- ccxt/async_support/coinbaseinternational.py +32 -32
- ccxt/async_support/coincheck.py +14 -14
- ccxt/async_support/coinex.py +168 -139
- ccxt/async_support/coinlist.py +35 -35
- ccxt/async_support/coinmate.py +22 -22
- ccxt/async_support/coinmetro.py +22 -22
- ccxt/async_support/coinone.py +18 -18
- ccxt/async_support/coinsph.py +32 -32
- ccxt/async_support/coinspot.py +8 -8
- ccxt/async_support/cryptocom.py +43 -43
- ccxt/async_support/currencycom.py +33 -33
- ccxt/async_support/delta.py +35 -35
- ccxt/async_support/deribit.py +54 -54
- ccxt/async_support/digifinex.py +56 -56
- ccxt/async_support/exmo.py +34 -34
- ccxt/async_support/gate.py +60 -60
- ccxt/async_support/gemini.py +24 -24
- ccxt/async_support/hitbtc.py +51 -51
- ccxt/async_support/hollaex.py +29 -29
- ccxt/async_support/htx.py +73 -73
- ccxt/async_support/huobijp.py +30 -30
- ccxt/async_support/hyperliquid.py +58 -58
- ccxt/async_support/idex.py +33 -33
- ccxt/async_support/independentreserve.py +12 -12
- ccxt/async_support/indodax.py +21 -21
- ccxt/async_support/kraken.py +46 -51
- ccxt/async_support/krakenfutures.py +29 -29
- ccxt/async_support/kucoin.py +51 -51
- ccxt/async_support/kucoinfutures.py +33 -33
- ccxt/async_support/kuna.py +27 -27
- ccxt/async_support/latoken.py +27 -27
- ccxt/async_support/lbank.py +35 -35
- ccxt/async_support/luno.py +19 -19
- ccxt/async_support/lykke.py +20 -20
- ccxt/async_support/mercado.py +17 -17
- ccxt/async_support/mexc.py +64 -64
- ccxt/async_support/ndax.py +38 -38
- ccxt/async_support/novadax.py +26 -26
- ccxt/async_support/oceanex.py +21 -21
- ccxt/async_support/okcoin.py +35 -35
- ccxt/async_support/okx.py +85 -85
- ccxt/async_support/onetrading.py +32 -32
- ccxt/async_support/p2b.py +14 -14
- ccxt/async_support/paymium.py +12 -12
- ccxt/async_support/phemex.py +50 -50
- ccxt/async_support/poloniex.py +35 -35
- ccxt/async_support/poloniexfutures.py +25 -21
- ccxt/async_support/probit.py +30 -30
- ccxt/async_support/timex.py +22 -22
- ccxt/async_support/tokocrypto.py +26 -26
- ccxt/async_support/tradeogre.py +12 -12
- ccxt/async_support/upbit.py +28 -28
- ccxt/async_support/wavesexchange.py +33 -33
- ccxt/async_support/wazirx.py +21 -21
- ccxt/async_support/whitebit.py +37 -37
- ccxt/async_support/woo.py +51 -51
- ccxt/async_support/woofipro.py +46 -46
- ccxt/async_support/yobit.py +20 -20
- ccxt/async_support/zaif.py +12 -12
- ccxt/async_support/zonda.py +22 -22
- ccxt/base/exchange.py +35 -35
- ccxt/base/types.py +13 -0
- ccxt/bigone.py +32 -32
- ccxt/binance.py +105 -96
- ccxt/bingx.py +21 -21
- ccxt/bit2c.py +13 -13
- ccxt/bitbank.py +19 -19
- ccxt/bitbns.py +17 -17
- ccxt/bitfinex.py +24 -24
- ccxt/bitfinex2.py +142 -109
- ccxt/bitflyer.py +23 -23
- ccxt/bitget.py +76 -76
- ccxt/bithumb.py +20 -20
- ccxt/bitmart.py +55 -55
- ccxt/bitmex.py +41 -41
- ccxt/bitopro.py +30 -30
- ccxt/bitrue.py +37 -37
- ccxt/bitso.py +30 -30
- ccxt/bitstamp.py +31 -31
- ccxt/bitteam.py +26 -26
- ccxt/bitvavo.py +27 -27
- ccxt/bl3p.py +8 -8
- ccxt/blockchaincom.py +24 -24
- ccxt/blofin.py +37 -37
- ccxt/btcalpha.py +19 -19
- ccxt/btcbox.py +11 -11
- ccxt/btcmarkets.py +22 -22
- ccxt/btcturk.py +13 -13
- ccxt/bybit.py +96 -96
- ccxt/cex.py +21 -21
- ccxt/coinbase.py +53 -53
- ccxt/coinbaseexchange.py +29 -29
- ccxt/coinbaseinternational.py +32 -32
- ccxt/coincheck.py +14 -14
- ccxt/coinex.py +168 -139
- ccxt/coinlist.py +35 -35
- ccxt/coinmate.py +22 -22
- ccxt/coinmetro.py +22 -22
- ccxt/coinone.py +18 -18
- ccxt/coinsph.py +32 -32
- ccxt/coinspot.py +8 -8
- ccxt/cryptocom.py +43 -43
- ccxt/currencycom.py +33 -33
- ccxt/delta.py +35 -35
- ccxt/deribit.py +54 -54
- ccxt/digifinex.py +56 -56
- ccxt/exmo.py +34 -34
- ccxt/gate.py +60 -60
- ccxt/gemini.py +24 -24
- ccxt/hitbtc.py +51 -51
- ccxt/hollaex.py +29 -29
- ccxt/htx.py +73 -73
- ccxt/huobijp.py +30 -30
- ccxt/hyperliquid.py +58 -58
- ccxt/idex.py +33 -33
- ccxt/independentreserve.py +12 -12
- ccxt/indodax.py +21 -21
- ccxt/kraken.py +46 -51
- ccxt/krakenfutures.py +29 -29
- ccxt/kucoin.py +51 -51
- ccxt/kucoinfutures.py +33 -33
- ccxt/kuna.py +27 -27
- ccxt/latoken.py +27 -27
- ccxt/lbank.py +35 -35
- ccxt/luno.py +19 -19
- ccxt/lykke.py +20 -20
- ccxt/mercado.py +17 -17
- ccxt/mexc.py +64 -64
- ccxt/ndax.py +38 -38
- ccxt/novadax.py +26 -26
- ccxt/oceanex.py +21 -21
- ccxt/okcoin.py +35 -35
- ccxt/okx.py +85 -85
- ccxt/onetrading.py +32 -32
- ccxt/p2b.py +14 -14
- ccxt/paymium.py +12 -12
- ccxt/phemex.py +50 -50
- ccxt/poloniex.py +35 -35
- ccxt/poloniexfutures.py +25 -21
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +8 -8
- ccxt/pro/ascendex.py +4 -4
- ccxt/pro/binance.py +56 -56
- ccxt/pro/bingx.py +5 -5
- ccxt/pro/bitfinex.py +6 -6
- ccxt/pro/bitfinex2.py +10 -10
- ccxt/pro/bitget.py +17 -17
- ccxt/pro/bithumb.py +6 -6
- ccxt/pro/bitmart.py +8 -8
- ccxt/pro/bitmex.py +16 -16
- ccxt/pro/bitopro.py +4 -4
- ccxt/pro/bitrue.py +8 -8
- ccxt/pro/bitstamp.py +5 -5
- ccxt/pro/bitvavo.py +14 -14
- ccxt/pro/blockchaincom.py +7 -7
- ccxt/pro/bybit.py +12 -12
- ccxt/pro/cex.py +19 -19
- ccxt/pro/coinbase.py +2 -2
- ccxt/pro/coinbaseexchange.py +10 -10
- ccxt/pro/coinbaseinternational.py +4 -4
- ccxt/pro/coincheck.py +2 -2
- ccxt/pro/coinex.py +15 -15
- ccxt/pro/coinone.py +4 -4
- ccxt/pro/cryptocom.py +11 -11
- ccxt/pro/currencycom.py +4 -4
- ccxt/pro/deribit.py +9 -9
- ccxt/pro/exmo.py +9 -9
- ccxt/pro/gate.py +12 -12
- ccxt/pro/gemini.py +11 -11
- ccxt/pro/hitbtc.py +13 -13
- ccxt/pro/hollaex.py +6 -6
- ccxt/pro/htx.py +15 -15
- ccxt/pro/huobijp.py +16 -16
- ccxt/pro/hyperliquid.py +9 -9
- ccxt/pro/idex.py +12 -12
- ccxt/pro/independentreserve.py +2 -2
- ccxt/pro/kraken.py +14 -14
- ccxt/pro/krakenfutures.py +12 -12
- ccxt/pro/kucoin.py +12 -12
- ccxt/pro/kucoinfutures.py +16 -16
- ccxt/pro/lbank.py +12 -12
- ccxt/pro/luno.py +4 -4
- ccxt/pro/mexc.py +14 -14
- ccxt/pro/ndax.py +12 -12
- ccxt/pro/okcoin.py +6 -6
- ccxt/pro/okx.py +30 -30
- ccxt/pro/onetrading.py +13 -13
- ccxt/pro/p2b.py +2 -2
- ccxt/pro/phemex.py +9 -9
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +10 -10
- ccxt/pro/probit.py +8 -8
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +10 -10
- ccxt/pro/whitebit.py +8 -8
- ccxt/pro/woo.py +14 -14
- ccxt/pro/woofipro.py +14 -14
- ccxt/probit.py +30 -30
- ccxt/test/base/test_shared_methods.py +1 -0
- ccxt/timex.py +22 -22
- ccxt/tokocrypto.py +26 -26
- ccxt/tradeogre.py +12 -12
- ccxt/upbit.py +28 -28
- ccxt/wavesexchange.py +33 -33
- ccxt/wazirx.py +21 -21
- ccxt/whitebit.py +37 -37
- ccxt/woo.py +51 -51
- ccxt/woofipro.py +46 -46
- ccxt/yobit.py +20 -20
- ccxt/zaif.py +12 -12
- ccxt/zonda.py +22 -22
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/METADATA +4 -4
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/RECORD +258 -258
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/WHEEL +0 -0
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/top_level.txt +0 -0
ccxt/bitflyer.py
CHANGED
@@ -130,7 +130,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
130
130
|
day = expiry[0:2]
|
131
131
|
monthName = expiry[2:5]
|
132
132
|
year = expiry[5:9]
|
133
|
-
months = {
|
133
|
+
months: dict = {
|
134
134
|
'JAN': '01',
|
135
135
|
'FEB': '02',
|
136
136
|
'MAR': '03',
|
@@ -300,7 +300,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
300
300
|
return result
|
301
301
|
|
302
302
|
def parse_balance(self, response) -> Balances:
|
303
|
-
result = {'info': response}
|
303
|
+
result: dict = {'info': response}
|
304
304
|
for i in range(0, len(response)):
|
305
305
|
balance = response[i]
|
306
306
|
currencyId = self.safe_string(balance, 'currency_code')
|
@@ -352,7 +352,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
352
352
|
"""
|
353
353
|
self.load_markets()
|
354
354
|
market = self.market(symbol)
|
355
|
-
request = {
|
355
|
+
request: dict = {
|
356
356
|
'product_code': market['id'],
|
357
357
|
}
|
358
358
|
orderbook = self.publicGetGetboard(self.extend(request, params))
|
@@ -395,13 +395,13 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
395
395
|
"""
|
396
396
|
self.load_markets()
|
397
397
|
market = self.market(symbol)
|
398
|
-
request = {
|
398
|
+
request: dict = {
|
399
399
|
'product_code': market['id'],
|
400
400
|
}
|
401
401
|
response = self.publicGetGetticker(self.extend(request, params))
|
402
402
|
return self.parse_ticker(response, market)
|
403
403
|
|
404
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
404
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
405
405
|
#
|
406
406
|
# fetchTrades(public) v1
|
407
407
|
#
|
@@ -472,7 +472,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
472
472
|
"""
|
473
473
|
self.load_markets()
|
474
474
|
market = self.market(symbol)
|
475
|
-
request = {
|
475
|
+
request: dict = {
|
476
476
|
'product_code': market['id'],
|
477
477
|
}
|
478
478
|
if limit is not None:
|
@@ -503,7 +503,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
503
503
|
"""
|
504
504
|
self.load_markets()
|
505
505
|
market = self.market(symbol)
|
506
|
-
request = {
|
506
|
+
request: dict = {
|
507
507
|
'product_code': market['id'],
|
508
508
|
}
|
509
509
|
response = self.privateGetGettradingcommission(self.extend(request, params))
|
@@ -535,7 +535,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
535
535
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
536
536
|
"""
|
537
537
|
self.load_markets()
|
538
|
-
request = {
|
538
|
+
request: dict = {
|
539
539
|
'product_code': self.market_id(symbol),
|
540
540
|
'child_order_type': type.upper(),
|
541
541
|
'side': side.upper(),
|
@@ -562,14 +562,14 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
562
562
|
if symbol is None:
|
563
563
|
raise ArgumentsRequired(self.id + ' cancelOrder() requires a symbol argument')
|
564
564
|
self.load_markets()
|
565
|
-
request = {
|
565
|
+
request: dict = {
|
566
566
|
'product_code': self.market_id(symbol),
|
567
567
|
'child_order_acceptance_id': id,
|
568
568
|
}
|
569
569
|
return self.privatePostCancelchildorder(self.extend(request, params))
|
570
570
|
|
571
|
-
def parse_order_status(self, status):
|
572
|
-
statuses = {
|
571
|
+
def parse_order_status(self, status: Str):
|
572
|
+
statuses: dict = {
|
573
573
|
'ACTIVE': 'open',
|
574
574
|
'COMPLETED': 'closed',
|
575
575
|
'CANCELED': 'canceled',
|
@@ -578,7 +578,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
578
578
|
}
|
579
579
|
return self.safe_string(statuses, status, status)
|
580
580
|
|
581
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
581
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
582
582
|
timestamp = self.parse8601(self.safe_string(order, 'child_order_date'))
|
583
583
|
price = self.safe_string(order, 'price')
|
584
584
|
amount = self.safe_string(order, 'size')
|
@@ -637,7 +637,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
637
637
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
638
638
|
self.load_markets()
|
639
639
|
market = self.market(symbol)
|
640
|
-
request = {
|
640
|
+
request: dict = {
|
641
641
|
'product_code': market['id'],
|
642
642
|
'count': limit,
|
643
643
|
}
|
@@ -657,7 +657,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
657
657
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
658
658
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
659
659
|
"""
|
660
|
-
request = {
|
660
|
+
request: dict = {
|
661
661
|
'child_order_state': 'ACTIVE',
|
662
662
|
}
|
663
663
|
return self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
@@ -672,7 +672,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
672
672
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
673
673
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
674
674
|
"""
|
675
|
-
request = {
|
675
|
+
request: dict = {
|
676
676
|
'child_order_state': 'COMPLETED',
|
677
677
|
}
|
678
678
|
return self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
@@ -707,7 +707,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
707
707
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
708
708
|
self.load_markets()
|
709
709
|
market = self.market(symbol)
|
710
|
-
request = {
|
710
|
+
request: dict = {
|
711
711
|
'product_code': market['id'],
|
712
712
|
}
|
713
713
|
if limit is not None:
|
@@ -740,7 +740,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
740
740
|
if symbols is None:
|
741
741
|
raise ArgumentsRequired(self.id + ' fetchPositions() requires a `symbols` argument, exactly one symbol in an array')
|
742
742
|
self.load_markets()
|
743
|
-
request = {
|
743
|
+
request: dict = {
|
744
744
|
'product_code': self.market_ids(symbols),
|
745
745
|
}
|
746
746
|
response = self.privateGetGetpositions(self.extend(request, params))
|
@@ -780,7 +780,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
780
780
|
if code != 'JPY' and code != 'USD' and code != 'EUR':
|
781
781
|
raise ExchangeError(self.id + ' allows withdrawing JPY, USD, EUR only, ' + code + ' is not supported')
|
782
782
|
currency = self.currency(code)
|
783
|
-
request = {
|
783
|
+
request: dict = {
|
784
784
|
'currency_code': currency['id'],
|
785
785
|
'amount': amount,
|
786
786
|
# 'bank_account_id': 1234,
|
@@ -805,7 +805,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
805
805
|
"""
|
806
806
|
self.load_markets()
|
807
807
|
currency = None
|
808
|
-
request = {}
|
808
|
+
request: dict = {}
|
809
809
|
if code is not None:
|
810
810
|
currency = self.currency(code)
|
811
811
|
if limit is not None:
|
@@ -839,7 +839,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
839
839
|
"""
|
840
840
|
self.load_markets()
|
841
841
|
currency = None
|
842
|
-
request = {}
|
842
|
+
request: dict = {}
|
843
843
|
if code is not None:
|
844
844
|
currency = self.currency(code)
|
845
845
|
if limit is not None:
|
@@ -864,20 +864,20 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
864
864
|
return self.parse_transactions(response, currency, since, limit)
|
865
865
|
|
866
866
|
def parse_deposit_status(self, status):
|
867
|
-
statuses = {
|
867
|
+
statuses: dict = {
|
868
868
|
'PENDING': 'pending',
|
869
869
|
'COMPLETED': 'ok',
|
870
870
|
}
|
871
871
|
return self.safe_string(statuses, status, status)
|
872
872
|
|
873
873
|
def parse_withdrawal_status(self, status):
|
874
|
-
statuses = {
|
874
|
+
statuses: dict = {
|
875
875
|
'PENDING': 'pending',
|
876
876
|
'COMPLETED': 'ok',
|
877
877
|
}
|
878
878
|
return self.safe_string(statuses, status, status)
|
879
879
|
|
880
|
-
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
880
|
+
def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
|
881
881
|
#
|
882
882
|
# fetchDeposits
|
883
883
|
#
|