ccxt 4.4.57__py2.py3-none-any.whl → 4.4.59__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 -3
- ccxt/abstract/xt.py +1 -0
- ccxt/ace.py +2 -2
- ccxt/alpaca.py +4 -4
- ccxt/ascendex.py +5 -3
- ccxt/async_support/__init__.py +1 -3
- ccxt/async_support/ace.py +2 -2
- ccxt/async_support/alpaca.py +4 -4
- ccxt/async_support/ascendex.py +5 -3
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bequant.py +2 -1
- ccxt/async_support/bigone.py +5 -5
- ccxt/async_support/binance.py +22 -6
- ccxt/async_support/binancecoinm.py +2 -1
- ccxt/async_support/binanceus.py +2 -1
- ccxt/async_support/binanceusdm.py +2 -1
- ccxt/async_support/bingx.py +3 -3
- ccxt/async_support/bit2c.py +9 -9
- ccxt/async_support/bitbank.py +2 -2
- ccxt/async_support/bitbns.py +2 -2
- ccxt/async_support/bitcoincom.py +2 -1
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex1.py +2 -2
- ccxt/async_support/bitflyer.py +2 -2
- ccxt/async_support/bitget.py +8 -3
- ccxt/async_support/bithumb.py +2 -2
- ccxt/async_support/bitmart.py +150 -89
- ccxt/async_support/bitmex.py +2 -2
- ccxt/async_support/bitopro.py +2 -2
- ccxt/async_support/bitpanda.py +2 -1
- ccxt/async_support/bitrue.py +3 -3
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +2 -2
- ccxt/async_support/bitteam.py +2 -2
- ccxt/async_support/bitvavo.py +3 -3
- ccxt/async_support/bl3p.py +2 -2
- ccxt/async_support/blockchaincom.py +2 -2
- ccxt/async_support/blofin.py +3 -4
- ccxt/async_support/btcalpha.py +2 -2
- ccxt/async_support/btcbox.py +2 -2
- ccxt/async_support/btcmarkets.py +3 -3
- ccxt/async_support/btcturk.py +2 -2
- ccxt/async_support/bybit.py +17 -6
- ccxt/async_support/cex.py +3 -3
- ccxt/async_support/coinbase.py +12 -5
- ccxt/async_support/coinbaseadvanced.py +2 -1
- ccxt/async_support/coinbaseexchange.py +3 -3
- ccxt/async_support/coinbaseinternational.py +3 -4
- ccxt/async_support/coincatch.py +3 -3
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +3 -3
- ccxt/async_support/coinlist.py +3 -3
- ccxt/async_support/coinmate.py +2 -2
- ccxt/async_support/coinmetro.py +2 -2
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +3 -3
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +2 -2
- ccxt/async_support/currencycom.py +3 -3
- ccxt/async_support/defx.py +3 -3
- ccxt/async_support/delta.py +3 -3
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +3 -3
- ccxt/async_support/ellipx.py +1 -1
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/fmfwio.py +2 -1
- ccxt/async_support/gate.py +3 -3
- ccxt/async_support/gateio.py +2 -1
- ccxt/async_support/gemini.py +2 -2
- ccxt/async_support/hashkey.py +2 -2
- ccxt/async_support/hitbtc.py +3 -3
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/htx.py +3 -3
- ccxt/async_support/huobi.py +2 -1
- ccxt/async_support/huobijp.py +3 -3
- ccxt/async_support/hyperliquid.py +91 -6
- ccxt/async_support/idex.py +3 -3
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/indodax.py +3 -3
- ccxt/async_support/kraken.py +3 -3
- ccxt/async_support/krakenfutures.py +2 -2
- ccxt/async_support/kucoin.py +3 -3
- ccxt/async_support/kucoinfutures.py +3 -3
- ccxt/async_support/kuna.py +3 -3
- ccxt/async_support/latoken.py +3 -3
- ccxt/async_support/lbank.py +3 -3
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/mercado.py +2 -2
- ccxt/async_support/mexc.py +3 -3
- ccxt/async_support/myokx.py +2 -1
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/novadax.py +3 -3
- ccxt/async_support/oceanex.py +3 -3
- ccxt/async_support/okcoin.py +3 -3
- ccxt/async_support/okx.py +3 -4
- ccxt/async_support/onetrading.py +3 -3
- ccxt/async_support/oxfun.py +2 -2
- ccxt/async_support/p2b.py +2 -2
- ccxt/async_support/paradex.py +3 -3
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +2 -2
- ccxt/async_support/poloniex.py +3 -3
- ccxt/async_support/poloniexfutures.py +3 -3
- ccxt/async_support/probit.py +3 -3
- ccxt/async_support/timex.py +15 -5
- ccxt/async_support/tokocrypto.py +3 -3
- ccxt/async_support/tradeogre.py +2 -2
- ccxt/async_support/upbit.py +2 -2
- ccxt/async_support/vertex.py +5 -5
- ccxt/async_support/wavesexchange.py +2 -3
- ccxt/async_support/whitebit.py +5 -4
- ccxt/async_support/woo.py +3 -4
- ccxt/async_support/woofipro.py +3 -4
- ccxt/async_support/xt.py +57 -4
- ccxt/async_support/yobit.py +2 -2
- ccxt/async_support/zaif.py +2 -2
- ccxt/async_support/zonda.py +2 -2
- ccxt/base/exchange.py +5 -4
- ccxt/bequant.py +2 -1
- ccxt/bigone.py +5 -5
- ccxt/binance.py +22 -6
- ccxt/binancecoinm.py +2 -1
- ccxt/binanceus.py +2 -1
- ccxt/binanceusdm.py +2 -1
- ccxt/bingx.py +3 -3
- ccxt/bit2c.py +9 -9
- ccxt/bitbank.py +2 -2
- ccxt/bitbns.py +2 -2
- ccxt/bitcoincom.py +2 -1
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex1.py +2 -2
- ccxt/bitflyer.py +2 -2
- ccxt/bitget.py +8 -3
- ccxt/bithumb.py +2 -2
- ccxt/bitmart.py +150 -89
- ccxt/bitmex.py +2 -2
- ccxt/bitopro.py +2 -2
- ccxt/bitpanda.py +2 -1
- ccxt/bitrue.py +3 -3
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +2 -2
- ccxt/bitteam.py +2 -2
- ccxt/bitvavo.py +3 -3
- ccxt/bl3p.py +2 -2
- ccxt/blockchaincom.py +2 -2
- ccxt/blofin.py +3 -4
- ccxt/btcalpha.py +2 -2
- ccxt/btcbox.py +2 -2
- ccxt/btcmarkets.py +3 -3
- ccxt/btcturk.py +2 -2
- ccxt/bybit.py +17 -6
- ccxt/cex.py +3 -3
- ccxt/coinbase.py +12 -5
- ccxt/coinbaseadvanced.py +2 -1
- ccxt/coinbaseexchange.py +3 -3
- ccxt/coinbaseinternational.py +3 -4
- ccxt/coincatch.py +3 -3
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +3 -3
- ccxt/coinlist.py +3 -3
- ccxt/coinmate.py +2 -2
- ccxt/coinmetro.py +2 -2
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +3 -3
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +2 -2
- ccxt/currencycom.py +3 -3
- ccxt/defx.py +3 -3
- ccxt/delta.py +3 -3
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +3 -3
- ccxt/ellipx.py +1 -1
- ccxt/exmo.py +2 -2
- ccxt/fmfwio.py +2 -1
- ccxt/gate.py +3 -3
- ccxt/gateio.py +2 -1
- ccxt/gemini.py +2 -2
- ccxt/hashkey.py +2 -2
- ccxt/hitbtc.py +3 -3
- ccxt/hollaex.py +2 -2
- ccxt/htx.py +3 -3
- ccxt/huobi.py +2 -1
- ccxt/huobijp.py +3 -3
- ccxt/hyperliquid.py +91 -6
- ccxt/idex.py +3 -3
- ccxt/independentreserve.py +2 -2
- ccxt/indodax.py +3 -3
- ccxt/kraken.py +3 -3
- ccxt/krakenfutures.py +2 -2
- ccxt/kucoin.py +3 -3
- ccxt/kucoinfutures.py +3 -3
- ccxt/kuna.py +3 -3
- ccxt/latoken.py +3 -3
- ccxt/lbank.py +3 -3
- ccxt/luno.py +2 -2
- ccxt/mercado.py +2 -2
- ccxt/mexc.py +3 -3
- ccxt/myokx.py +2 -1
- ccxt/ndax.py +2 -2
- ccxt/novadax.py +3 -3
- ccxt/oceanex.py +3 -3
- ccxt/okcoin.py +3 -3
- ccxt/okx.py +3 -4
- ccxt/onetrading.py +3 -3
- ccxt/oxfun.py +2 -2
- ccxt/p2b.py +2 -2
- ccxt/paradex.py +3 -3
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +2 -2
- ccxt/poloniex.py +3 -3
- ccxt/poloniexfutures.py +3 -3
- ccxt/pro/__init__.py +1 -3
- ccxt/pro/alpaca.py +2 -2
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/bequant.py +2 -1
- ccxt/pro/binance.py +2 -3
- ccxt/pro/binancecoinm.py +2 -1
- ccxt/pro/binanceus.py +3 -2
- ccxt/pro/binanceusdm.py +2 -1
- ccxt/pro/bingx.py +2 -2
- ccxt/pro/bitcoincom.py +2 -1
- ccxt/pro/bitfinex.py +2 -2
- ccxt/pro/bitfinex1.py +2 -2
- ccxt/pro/bitget.py +2 -3
- ccxt/pro/bithumb.py +2 -2
- ccxt/pro/bitmart.py +2 -2
- ccxt/pro/bitmex.py +2 -2
- ccxt/pro/bitopro.py +2 -2
- ccxt/pro/bitpanda.py +2 -1
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bitvavo.py +2 -2
- ccxt/pro/blockchaincom.py +2 -2
- ccxt/pro/blofin.py +1 -1
- ccxt/pro/bybit.py +6 -4
- ccxt/pro/cex.py +2 -2
- ccxt/pro/coinbase.py +2 -2
- ccxt/pro/coinbaseadvanced.py +2 -1
- ccxt/pro/coinbaseexchange.py +2 -2
- ccxt/pro/coinbaseinternational.py +2 -2
- ccxt/pro/coincatch.py +2 -3
- ccxt/pro/coincheck.py +2 -2
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/coinone.py +2 -2
- ccxt/pro/cryptocom.py +2 -3
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/defx.py +2 -3
- ccxt/pro/deribit.py +2 -2
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +2 -3
- ccxt/pro/gateio.py +2 -1
- ccxt/pro/gemini.py +2 -2
- ccxt/pro/hashkey.py +2 -2
- ccxt/pro/hitbtc.py +2 -2
- ccxt/pro/hollaex.py +2 -2
- ccxt/pro/htx.py +2 -2
- ccxt/pro/huobi.py +2 -1
- ccxt/pro/huobijp.py +2 -2
- ccxt/pro/hyperliquid.py +2 -3
- ccxt/pro/idex.py +2 -2
- ccxt/pro/independentreserve.py +2 -2
- ccxt/pro/kraken.py +2 -2
- ccxt/pro/krakenfutures.py +2 -2
- ccxt/pro/kucoin.py +2 -3
- ccxt/pro/kucoinfutures.py +2 -3
- ccxt/pro/lbank.py +2 -2
- ccxt/pro/luno.py +2 -2
- ccxt/pro/mexc.py +5 -3
- ccxt/pro/myokx.py +2 -1
- ccxt/pro/ndax.py +2 -2
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +2 -3
- ccxt/pro/onetrading.py +2 -2
- ccxt/pro/oxfun.py +2 -2
- ccxt/pro/p2b.py +2 -2
- ccxt/pro/paradex.py +2 -2
- ccxt/pro/phemex.py +2 -2
- ccxt/pro/poloniex.py +2 -2
- ccxt/pro/poloniexfutures.py +2 -2
- ccxt/pro/probit.py +2 -2
- ccxt/pro/upbit.py +2 -2
- ccxt/pro/vertex.py +2 -2
- ccxt/pro/wazirx.py +2 -2
- ccxt/pro/whitebit.py +2 -2
- ccxt/pro/woo.py +2 -2
- ccxt/pro/woofipro.py +2 -2
- ccxt/pro/xt.py +2 -2
- ccxt/probit.py +3 -3
- ccxt/test/tests_init.py +2 -2
- ccxt/timex.py +15 -5
- ccxt/tokocrypto.py +3 -3
- ccxt/tradeogre.py +2 -2
- ccxt/upbit.py +2 -2
- ccxt/vertex.py +5 -5
- ccxt/wavesexchange.py +2 -3
- ccxt/whitebit.py +5 -4
- ccxt/woo.py +3 -4
- ccxt/woofipro.py +3 -4
- ccxt/xt.py +57 -4
- ccxt/yobit.py +2 -2
- ccxt/zaif.py +2 -2
- ccxt/zonda.py +2 -2
- {ccxt-4.4.57.dist-info → ccxt-4.4.59.dist-info}/METADATA +30 -33
- {ccxt-4.4.57.dist-info → ccxt-4.4.59.dist-info}/RECORD +307 -310
- ccxt/abstract/wazirx.py +0 -30
- ccxt/async_support/wazirx.py +0 -1336
- ccxt/wazirx.py +0 -1336
- {ccxt-4.4.57.dist-info → ccxt-4.4.59.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.57.dist-info → ccxt-4.4.59.dist-info}/WHEEL +0 -0
- {ccxt-4.4.57.dist-info → ccxt-4.4.59.dist-info}/top_level.txt +0 -0
ccxt/deribit.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.deribit import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, DepositAddress, Greeks, Int, Market, Num, Option, OptionChain, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFees, Transaction, MarketInterface, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, DepositAddress, Greeks, Int, Market, Num, Option, OptionChain, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFees, Transaction, MarketInterface, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -27,7 +27,7 @@ from ccxt.base.precise import Precise
|
|
27
27
|
|
28
28
|
class deribit(Exchange, ImplicitAPI):
|
29
29
|
|
30
|
-
def describe(self):
|
30
|
+
def describe(self) -> Any:
|
31
31
|
return self.deep_extend(super(deribit, self).describe(), {
|
32
32
|
'id': 'deribit',
|
33
33
|
'name': 'Deribit',
|
@@ -585,7 +585,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
585
585
|
return self.create_expired_option_market(marketId)
|
586
586
|
return super(deribit, self).safe_market(marketId, market, delimiter, marketType)
|
587
587
|
|
588
|
-
def fetch_time(self, params={}):
|
588
|
+
def fetch_time(self, params={}) -> Int:
|
589
589
|
"""
|
590
590
|
fetches the current integer timestamp in milliseconds from the exchange server
|
591
591
|
|
ccxt/digifinex.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.digifinex import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Balances, BorrowInterest, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, DepositAddress, Int, LedgerEntry, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Any, Balances, BorrowInterest, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, DepositAddress, Int, LedgerEntry, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -32,7 +32,7 @@ from ccxt.base.precise import Precise
|
|
32
32
|
|
33
33
|
class digifinex(Exchange, ImplicitAPI):
|
34
34
|
|
35
|
-
def describe(self):
|
35
|
+
def describe(self) -> Any:
|
36
36
|
return self.deep_extend(super(digifinex, self).describe(), {
|
37
37
|
'id': 'digifinex',
|
38
38
|
'name': 'DigiFinex',
|
@@ -1416,7 +1416,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1416
1416
|
'fee': fee,
|
1417
1417
|
}, market)
|
1418
1418
|
|
1419
|
-
def fetch_time(self, params={}):
|
1419
|
+
def fetch_time(self, params={}) -> Int:
|
1420
1420
|
"""
|
1421
1421
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1422
1422
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/ellipx.py
CHANGED
ccxt/exmo.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.exmo import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -25,7 +25,7 @@ from ccxt.base.precise import Precise
|
|
25
25
|
|
26
26
|
class exmo(Exchange, ImplicitAPI):
|
27
27
|
|
28
|
-
def describe(self):
|
28
|
+
def describe(self) -> Any:
|
29
29
|
return self.deep_extend(super(exmo, self).describe(), {
|
30
30
|
'id': 'exmo',
|
31
31
|
'name': 'EXMO',
|
ccxt/fmfwio.py
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
|
6
6
|
from ccxt.hitbtc import hitbtc
|
7
7
|
from ccxt.abstract.fmfwio import ImplicitAPI
|
8
|
+
from ccxt.base.types import Any
|
8
9
|
|
9
10
|
|
10
11
|
class fmfwio(hitbtc, ImplicitAPI):
|
11
12
|
|
12
|
-
def describe(self):
|
13
|
+
def describe(self) -> Any:
|
13
14
|
return self.deep_extend(super(fmfwio, self).describe(), {
|
14
15
|
'id': 'fmfwio',
|
15
16
|
'name': 'FMFW.io',
|
ccxt/gate.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.gate import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, BorrowInterest, Bool, Currencies, Currency, DepositAddress, FundingHistory, Greeks, Int, LedgerEntry, Leverage, Leverages, LeverageTier, LeverageTiers, MarginModification, Market, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, MarketInterface, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, BorrowInterest, Bool, Currencies, Currency, DepositAddress, FundingHistory, Greeks, Int, LedgerEntry, Leverage, Leverages, LeverageTier, LeverageTiers, MarginModification, Market, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, MarketInterface, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -30,7 +30,7 @@ from ccxt.base.precise import Precise
|
|
30
30
|
|
31
31
|
class gate(Exchange, ImplicitAPI):
|
32
32
|
|
33
|
-
def describe(self):
|
33
|
+
def describe(self) -> Any:
|
34
34
|
return self.deep_extend(super(gate, self).describe(), {
|
35
35
|
'id': 'gate',
|
36
36
|
'name': 'Gate.io',
|
@@ -1078,7 +1078,7 @@ class gate(Exchange, ImplicitAPI):
|
|
1078
1078
|
def upgrade_unified_trade_account(self, params={}):
|
1079
1079
|
return self.privateUnifiedPutUnifiedMode(params)
|
1080
1080
|
|
1081
|
-
def fetch_time(self, params={}):
|
1081
|
+
def fetch_time(self, params={}) -> Int:
|
1082
1082
|
"""
|
1083
1083
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1084
1084
|
|
ccxt/gateio.py
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
|
6
6
|
from ccxt.gate import gate
|
7
7
|
from ccxt.abstract.gateio import ImplicitAPI
|
8
|
+
from ccxt.base.types import Any
|
8
9
|
|
9
10
|
|
10
11
|
class gateio(gate, ImplicitAPI):
|
11
12
|
|
12
|
-
def describe(self):
|
13
|
+
def describe(self) -> Any:
|
13
14
|
return self.deep_extend(super(gateio, self).describe(), {
|
14
15
|
'id': 'gateio',
|
15
16
|
'alias': True,
|
ccxt/gemini.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.gemini import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -27,7 +27,7 @@ from ccxt.base.precise import Precise
|
|
27
27
|
|
28
28
|
class gemini(Exchange, ImplicitAPI):
|
29
29
|
|
30
|
-
def describe(self):
|
30
|
+
def describe(self) -> Any:
|
31
31
|
return self.deep_extend(super(gemini, self).describe(), {
|
32
32
|
'id': 'gemini',
|
33
33
|
'name': 'Gemini',
|
ccxt/hashkey.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hashkey import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Bool, Currencies, Currency, DepositAddress, Int, LastPrice, LastPrices, LedgerEntry, Leverage, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Bool, Currencies, Currency, DepositAddress, Int, LastPrice, LastPrices, LedgerEntry, Leverage, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -38,7 +38,7 @@ from ccxt.base.precise import Precise
|
|
38
38
|
|
39
39
|
class hashkey(Exchange, ImplicitAPI):
|
40
40
|
|
41
|
-
def describe(self):
|
41
|
+
def describe(self) -> Any:
|
42
42
|
return self.deep_extend(super(hashkey, self).describe(), {
|
43
43
|
'id': 'hashkey',
|
44
44
|
'name': 'HashKey Global',
|
ccxt/hitbtc.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hitbtc import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Leverage, MarginMode, MarginModes, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, OrderBooks, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Leverage, MarginMode, MarginModes, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, OrderBooks, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -28,7 +28,7 @@ from ccxt.base.precise import Precise
|
|
28
28
|
|
29
29
|
class hitbtc(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(hitbtc, self).describe(), {
|
33
33
|
'id': 'hitbtc',
|
34
34
|
'name': 'HitBTC',
|
@@ -1408,7 +1408,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1408
1408
|
fee = None
|
1409
1409
|
feeCostString = self.safe_string(trade, 'fee')
|
1410
1410
|
taker = self.safe_value(trade, 'taker')
|
1411
|
-
takerOrMaker
|
1411
|
+
takerOrMaker: str
|
1412
1412
|
if taker is not None:
|
1413
1413
|
takerOrMaker = 'taker' if taker else 'maker'
|
1414
1414
|
else:
|
ccxt/hollaex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hollaex import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -21,7 +21,7 @@ from ccxt.base.precise import Precise
|
|
21
21
|
|
22
22
|
class hollaex(Exchange, ImplicitAPI):
|
23
23
|
|
24
|
-
def describe(self):
|
24
|
+
def describe(self) -> Any:
|
25
25
|
return self.deep_extend(super(hollaex, self).describe(), {
|
26
26
|
'id': 'hollaex',
|
27
27
|
'name': 'HollaEx',
|
ccxt/htx.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.htx import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, BorrowInterest, Currencies, Currency, DepositAddress, Int, IsolatedBorrowRate, IsolatedBorrowRates, LedgerEntry, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Any, Balances, BorrowInterest, Currencies, Currency, DepositAddress, Int, IsolatedBorrowRate, IsolatedBorrowRates, LedgerEntry, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -31,7 +31,7 @@ from ccxt.base.precise import Precise
|
|
31
31
|
|
32
32
|
class htx(Exchange, ImplicitAPI):
|
33
33
|
|
34
|
-
def describe(self):
|
34
|
+
def describe(self) -> Any:
|
35
35
|
return self.deep_extend(super(htx, self).describe(), {
|
36
36
|
'id': 'htx',
|
37
37
|
'name': 'HTX',
|
@@ -1605,7 +1605,7 @@ class htx(Exchange, ImplicitAPI):
|
|
1605
1605
|
'info': response,
|
1606
1606
|
}
|
1607
1607
|
|
1608
|
-
def fetch_time(self, params={}):
|
1608
|
+
def fetch_time(self, params={}) -> Int:
|
1609
1609
|
"""
|
1610
1610
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1611
1611
|
|
ccxt/huobi.py
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
|
6
6
|
from ccxt.htx import htx
|
7
7
|
from ccxt.abstract.huobi import ImplicitAPI
|
8
|
+
from ccxt.base.types import Any
|
8
9
|
|
9
10
|
|
10
11
|
class huobi(htx, ImplicitAPI):
|
11
12
|
|
12
|
-
def describe(self):
|
13
|
+
def describe(self) -> Any:
|
13
14
|
return self.deep_extend(super(huobi, self).describe(), {
|
14
15
|
'id': 'huobi',
|
15
16
|
'alias': True,
|
ccxt/huobijp.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.huobijp import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -29,7 +29,7 @@ from ccxt.base.precise import Precise
|
|
29
29
|
|
30
30
|
class huobijp(Exchange, ImplicitAPI):
|
31
31
|
|
32
|
-
def describe(self):
|
32
|
+
def describe(self) -> Any:
|
33
33
|
return self.deep_extend(super(huobijp, self).describe(), {
|
34
34
|
'id': 'huobijp',
|
35
35
|
'name': 'Huobi Japan',
|
@@ -424,7 +424,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
424
424
|
},
|
425
425
|
})
|
426
426
|
|
427
|
-
def fetch_time(self, params={}):
|
427
|
+
def fetch_time(self, params={}) -> Int:
|
428
428
|
"""
|
429
429
|
fetches the current integer timestamp in milliseconds from the exchange server
|
430
430
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/hyperliquid.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hyperliquid import ImplicitAPI
|
8
8
|
import math
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, Int, LedgerEntry, MarginModification, Market, Num, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, Int, LedgerEntry, MarginModification, Market, Num, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -24,7 +24,7 @@ from ccxt.base.precise import Precise
|
|
24
24
|
|
25
25
|
class hyperliquid(Exchange, ImplicitAPI):
|
26
26
|
|
27
|
-
def describe(self):
|
27
|
+
def describe(self) -> Any:
|
28
28
|
return self.deep_extend(super(hyperliquid, self).describe(), {
|
29
29
|
'id': 'hyperliquid',
|
30
30
|
'name': 'Hyperliquid',
|
@@ -76,7 +76,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
76
76
|
'fetchDeposits': True,
|
77
77
|
'fetchDepositWithdrawFee': 'emulated',
|
78
78
|
'fetchDepositWithdrawFees': False,
|
79
|
-
'fetchFundingHistory':
|
79
|
+
'fetchFundingHistory': True,
|
80
80
|
'fetchFundingRate': False,
|
81
81
|
'fetchFundingRateHistory': True,
|
82
82
|
'fetchFundingRates': True,
|
@@ -203,7 +203,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
203
203
|
'broad': {
|
204
204
|
'Price must be divisible by tick size.': InvalidOrder,
|
205
205
|
'Order must have minimum value of $10': InvalidOrder,
|
206
|
-
'Insufficient margin to place order.':
|
206
|
+
'Insufficient margin to place order.': InsufficientFunds,
|
207
207
|
'Reduce only order would increase position.': InvalidOrder,
|
208
208
|
'Post only order would have immediately matched,': InvalidOrder,
|
209
209
|
'Order could not immediately match against any resting orders.': InvalidOrder,
|
@@ -601,7 +601,9 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
601
601
|
amountPrecisionStr = self.safe_string(innerBaseTokenInfo, 'szDecimals')
|
602
602
|
amountPrecision = int(amountPrecisionStr)
|
603
603
|
price = self.safe_number(extraData, 'midPx')
|
604
|
-
pricePrecision =
|
604
|
+
pricePrecision = 0
|
605
|
+
if price is not None:
|
606
|
+
pricePrecision = self.calculate_price_precision(price, amountPrecision, 8)
|
605
607
|
pricePrecisionStr = self.number_to_string(pricePrecision)
|
606
608
|
# quotePrecision = self.parse_number(self.parse_precision(self.safe_string(innerQuoteTokenInfo, 'szDecimals')))
|
607
609
|
baseId = self.number_to_string(index + 10000)
|
@@ -698,7 +700,9 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
698
700
|
amountPrecisionStr = self.safe_string(market, 'szDecimals')
|
699
701
|
amountPrecision = int(amountPrecisionStr)
|
700
702
|
price = self.safe_number(market, 'markPx', 0)
|
701
|
-
pricePrecision =
|
703
|
+
pricePrecision = 0
|
704
|
+
if price is not None:
|
705
|
+
pricePrecision = self.calculate_price_precision(price, amountPrecision, 6)
|
702
706
|
pricePrecisionStr = self.number_to_string(pricePrecision)
|
703
707
|
isDelisted = self.safe_bool(market, 'isDelisted')
|
704
708
|
active = True
|
@@ -3224,6 +3228,86 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
3224
3228
|
'info': interest,
|
3225
3229
|
}, market)
|
3226
3230
|
|
3231
|
+
def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3232
|
+
"""
|
3233
|
+
fetch the history of funding payments paid and received on self account
|
3234
|
+
:param str [symbol]: unified market symbol
|
3235
|
+
:param int [since]: the earliest time in ms to fetch funding history for
|
3236
|
+
:param int [limit]: the maximum number of funding history structures to retrieve
|
3237
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3238
|
+
:returns dict: a `funding history structure <https://docs.ccxt.com/#/?id=funding-history-structure>`
|
3239
|
+
"""
|
3240
|
+
self.load_markets()
|
3241
|
+
market = None
|
3242
|
+
if symbol is not None:
|
3243
|
+
market = self.market(symbol)
|
3244
|
+
userAddress = None
|
3245
|
+
userAddress, params = self.handle_public_address('fetchFundingHistory', params)
|
3246
|
+
request: dict = {
|
3247
|
+
'user': userAddress,
|
3248
|
+
'type': 'userFunding',
|
3249
|
+
}
|
3250
|
+
if since is not None:
|
3251
|
+
request['startTime'] = since
|
3252
|
+
until = self.safe_integer(params, 'until')
|
3253
|
+
params = self.omit(params, 'until')
|
3254
|
+
if until is not None:
|
3255
|
+
request['endTime'] = until
|
3256
|
+
response = self.publicPostInfo(self.extend(request, params))
|
3257
|
+
#
|
3258
|
+
# [
|
3259
|
+
# {
|
3260
|
+
# "time": 1734026400057,
|
3261
|
+
# "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
3262
|
+
# "delta": {
|
3263
|
+
# "type": "funding",
|
3264
|
+
# "coin": "SOL",
|
3265
|
+
# "usdc": "75.635093",
|
3266
|
+
# "szi": "-7375.9",
|
3267
|
+
# "fundingRate": "0.00004381",
|
3268
|
+
# "nSamples": null
|
3269
|
+
# }
|
3270
|
+
# }
|
3271
|
+
# ]
|
3272
|
+
#
|
3273
|
+
return self.parse_incomes(response, market, since, limit)
|
3274
|
+
|
3275
|
+
def parse_income(self, income, market: Market = None):
|
3276
|
+
#
|
3277
|
+
# {
|
3278
|
+
# "time": 1734026400057,
|
3279
|
+
# "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
3280
|
+
# "delta": {
|
3281
|
+
# "type": "funding",
|
3282
|
+
# "coin": "SOL",
|
3283
|
+
# "usdc": "75.635093",
|
3284
|
+
# "szi": "-7375.9",
|
3285
|
+
# "fundingRate": "0.00004381",
|
3286
|
+
# "nSamples": null
|
3287
|
+
# }
|
3288
|
+
# }
|
3289
|
+
#
|
3290
|
+
id = self.safe_string(income, 'hash')
|
3291
|
+
timestamp = self.safe_integer(income, 'time')
|
3292
|
+
delta = self.safe_dict(income, 'delta')
|
3293
|
+
baseId = self.safe_string(delta, 'coin')
|
3294
|
+
marketSymbol = baseId + '/USDC:USDC'
|
3295
|
+
market = self.safe_market(marketSymbol)
|
3296
|
+
symbol = market['symbol']
|
3297
|
+
amount = self.safe_string(delta, 'usdc')
|
3298
|
+
code = self.safe_currency_code('USDC')
|
3299
|
+
rate = self.safe_number(delta, 'fundingRate')
|
3300
|
+
return {
|
3301
|
+
'info': income,
|
3302
|
+
'symbol': symbol,
|
3303
|
+
'code': code,
|
3304
|
+
'timestamp': timestamp,
|
3305
|
+
'datetime': self.iso8601(timestamp),
|
3306
|
+
'id': id,
|
3307
|
+
'amount': self.parse_number(amount),
|
3308
|
+
'rate': rate,
|
3309
|
+
}
|
3310
|
+
|
3227
3311
|
def extract_type_from_delta(self, data=[]):
|
3228
3312
|
records = []
|
3229
3313
|
for i in range(0, len(data)):
|
@@ -3264,6 +3348,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
3264
3348
|
# status: 'ok',
|
3265
3349
|
# response: {type: 'order', data: {statuses: [{error: 'Insufficient margin to place order. asset=4'}]}}
|
3266
3350
|
# }
|
3351
|
+
# {"status":"ok","response":{"type":"order","data":{"statuses":[{"error":"Insufficient margin to place order. asset=84"}]}}}
|
3267
3352
|
#
|
3268
3353
|
status = self.safe_string(response, 'status', '')
|
3269
3354
|
message = None
|
ccxt/idex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.idex import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -26,7 +26,7 @@ from ccxt.base.precise import Precise
|
|
26
26
|
|
27
27
|
class idex(Exchange, ImplicitAPI):
|
28
28
|
|
29
|
-
def describe(self):
|
29
|
+
def describe(self) -> Any:
|
30
30
|
return self.deep_extend(super(idex, self).describe(), {
|
31
31
|
'id': 'idex',
|
32
32
|
'name': 'IDEX',
|
@@ -1590,7 +1590,7 @@ class idex(Exchange, ImplicitAPI):
|
|
1590
1590
|
'info': response,
|
1591
1591
|
}
|
1592
1592
|
|
1593
|
-
def fetch_time(self, params={}):
|
1593
|
+
def fetch_time(self, params={}) -> Int:
|
1594
1594
|
"""
|
1595
1595
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1596
1596
|
|
ccxt/independentreserve.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.independentreserve import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import BadRequest
|
12
12
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
@@ -15,7 +15,7 @@ from ccxt.base.precise import Precise
|
|
15
15
|
|
16
16
|
class independentreserve(Exchange, ImplicitAPI):
|
17
17
|
|
18
|
-
def describe(self):
|
18
|
+
def describe(self) -> Any:
|
19
19
|
return self.deep_extend(super(independentreserve, self).describe(), {
|
20
20
|
'id': 'independentreserve',
|
21
21
|
'name': 'Independent Reserve',
|
ccxt/indodax.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.indodax import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import math
|
10
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -22,7 +22,7 @@ from ccxt.base.precise import Precise
|
|
22
22
|
|
23
23
|
class indodax(Exchange, ImplicitAPI):
|
24
24
|
|
25
|
-
def describe(self):
|
25
|
+
def describe(self) -> Any:
|
26
26
|
return self.deep_extend(super(indodax, self).describe(), {
|
27
27
|
'id': 'indodax',
|
28
28
|
'name': 'INDODAX',
|
@@ -281,7 +281,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
281
281
|
def nonce(self):
|
282
282
|
return self.milliseconds() - self.options['timeDifference']
|
283
283
|
|
284
|
-
def fetch_time(self, params={}):
|
284
|
+
def fetch_time(self, params={}) -> Int:
|
285
285
|
"""
|
286
286
|
fetches the current integer timestamp in milliseconds from the exchange server
|
287
287
|
|
ccxt/kraken.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.kraken import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -33,7 +33,7 @@ from ccxt.base.precise import Precise
|
|
33
33
|
|
34
34
|
class kraken(Exchange, ImplicitAPI):
|
35
35
|
|
36
|
-
def describe(self):
|
36
|
+
def describe(self) -> Any:
|
37
37
|
return self.deep_extend(super(kraken, self).describe(), {
|
38
38
|
'id': 'kraken',
|
39
39
|
'name': 'Kraken',
|
@@ -2715,7 +2715,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2715
2715
|
#
|
2716
2716
|
return self.parse_transactions_by_type('deposit', response['result'], code, since, limit)
|
2717
2717
|
|
2718
|
-
def fetch_time(self, params={}):
|
2718
|
+
def fetch_time(self, params={}) -> Int:
|
2719
2719
|
"""
|
2720
2720
|
fetches the current integer timestamp in milliseconds from the exchange server
|
2721
2721
|
|
ccxt/krakenfutures.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.krakenfutures import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Leverage, Leverages, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, Int, Leverage, Leverages, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -29,7 +29,7 @@ from ccxt.base.precise import Precise
|
|
29
29
|
|
30
30
|
class krakenfutures(Exchange, ImplicitAPI):
|
31
31
|
|
32
|
-
def describe(self):
|
32
|
+
def describe(self) -> Any:
|
33
33
|
return self.deep_extend(super(krakenfutures, self).describe(), {
|
34
34
|
'id': 'krakenfutures',
|
35
35
|
'name': 'Kraken Futures',
|
ccxt/kucoin.py
CHANGED
@@ -8,7 +8,7 @@ from ccxt.abstract.kucoin import ImplicitAPI
|
|
8
8
|
import hashlib
|
9
9
|
import math
|
10
10
|
import json
|
11
|
-
from ccxt.base.types import Account, Balances, BorrowInterest, Bool, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
11
|
+
from ccxt.base.types import Account, Any, Balances, BorrowInterest, Bool, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
12
12
|
from typing import List
|
13
13
|
from ccxt.base.errors import ExchangeError
|
14
14
|
from ccxt.base.errors import AuthenticationError
|
@@ -32,7 +32,7 @@ from ccxt.base.precise import Precise
|
|
32
32
|
|
33
33
|
class kucoin(Exchange, ImplicitAPI):
|
34
34
|
|
35
|
-
def describe(self):
|
35
|
+
def describe(self) -> Any:
|
36
36
|
return self.deep_extend(super(kucoin, self).describe(), {
|
37
37
|
'id': 'kucoin',
|
38
38
|
'name': 'KuCoin',
|
@@ -1083,7 +1083,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1083
1083
|
def nonce(self):
|
1084
1084
|
return self.milliseconds() - self.options['timeDifference']
|
1085
1085
|
|
1086
|
-
def fetch_time(self, params={}):
|
1086
|
+
def fetch_time(self, params={}) -> Int:
|
1087
1087
|
"""
|
1088
1088
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1089
1089
|
|
ccxt/kucoinfutures.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.kucoin import kucoin
|
7
7
|
from ccxt.abstract.kucoinfutures import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Leverage, LeverageTier, MarginMode, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
8
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Leverage, LeverageTier, MarginMode, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import AuthenticationError
|
11
11
|
from ccxt.base.errors import PermissionDenied
|
@@ -25,7 +25,7 @@ from ccxt.base.precise import Precise
|
|
25
25
|
|
26
26
|
class kucoinfutures(kucoin, ImplicitAPI):
|
27
27
|
|
28
|
-
def describe(self):
|
28
|
+
def describe(self) -> Any:
|
29
29
|
return self.deep_extend(super(kucoinfutures, self).describe(), {
|
30
30
|
'id': 'kucoinfutures',
|
31
31
|
'name': 'KuCoin Futures',
|
@@ -649,7 +649,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
649
649
|
})
|
650
650
|
return result
|
651
651
|
|
652
|
-
def fetch_time(self, params={}):
|
652
|
+
def fetch_time(self, params={}) -> Int:
|
653
653
|
"""
|
654
654
|
fetches the current integer timestamp in milliseconds from the exchange server
|
655
655
|
|
ccxt/kuna.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.kuna import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -22,7 +22,7 @@ from ccxt.base.precise import Precise
|
|
22
22
|
|
23
23
|
class kuna(Exchange, ImplicitAPI):
|
24
24
|
|
25
|
-
def describe(self):
|
25
|
+
def describe(self) -> Any:
|
26
26
|
return self.deep_extend(super(kuna, self).describe(), {
|
27
27
|
'id': 'kuna',
|
28
28
|
'name': 'Kuna',
|
@@ -470,7 +470,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
470
470
|
},
|
471
471
|
})
|
472
472
|
|
473
|
-
def fetch_time(self, params={}):
|
473
|
+
def fetch_time(self, params={}) -> Int:
|
474
474
|
"""
|
475
475
|
fetches the current integer timestamp in milliseconds from the exchange server
|
476
476
|
|