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/blockchaincom.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.blockchaincom import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
8
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -18,7 +18,7 @@ from ccxt.base.precise import Precise
|
|
18
18
|
|
19
19
|
class blockchaincom(Exchange, ImplicitAPI):
|
20
20
|
|
21
|
-
def describe(self):
|
21
|
+
def describe(self) -> Any:
|
22
22
|
return self.deep_extend(super(blockchaincom, self).describe(), {
|
23
23
|
'id': 'blockchaincom',
|
24
24
|
'secret': None,
|
ccxt/blofin.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.blofin import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, LedgerEntry, Leverage, Leverages, MarginMode, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, Int, LedgerEntry, Leverage, Leverages, MarginMode, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, 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
|
@@ -22,7 +22,7 @@ from ccxt.base.precise import Precise
|
|
22
22
|
|
23
23
|
class blofin(Exchange, ImplicitAPI):
|
24
24
|
|
25
|
-
def describe(self):
|
25
|
+
def describe(self) -> Any:
|
26
26
|
return self.deep_extend(super(blofin, self).describe(), {
|
27
27
|
'id': 'blofin',
|
28
28
|
'name': 'BloFin',
|
@@ -328,8 +328,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
328
328
|
'takeProfitPrice': True,
|
329
329
|
'attachedStopLossTakeProfit': {
|
330
330
|
'triggerPriceType': None,
|
331
|
-
'
|
332
|
-
'price': None,
|
331
|
+
'price': True,
|
333
332
|
},
|
334
333
|
'hedged': True,
|
335
334
|
},
|
ccxt/btcalpha.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.btcalpha import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, IndexType, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, IndexType, 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 InsufficientFunds
|
@@ -17,7 +17,7 @@ from ccxt.base.precise import Precise
|
|
17
17
|
|
18
18
|
class btcalpha(Exchange, ImplicitAPI):
|
19
19
|
|
20
|
-
def describe(self):
|
20
|
+
def describe(self) -> Any:
|
21
21
|
return self.deep_extend(super(btcalpha, self).describe(), {
|
22
22
|
'id': 'btcalpha',
|
23
23
|
'name': 'BTC-Alpha',
|
ccxt/btcbox.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.btcbox import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Balances, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
10
|
+
from ccxt.base.types import Any, Balances, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -23,7 +23,7 @@ from ccxt.base.precise import Precise
|
|
23
23
|
|
24
24
|
class btcbox(Exchange, ImplicitAPI):
|
25
25
|
|
26
|
-
def describe(self):
|
26
|
+
def describe(self) -> Any:
|
27
27
|
return self.deep_extend(super(btcbox, self).describe(), {
|
28
28
|
'id': 'btcbox',
|
29
29
|
'name': 'BtcBox',
|
ccxt/btcmarkets.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.btcmarkets import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -20,7 +20,7 @@ from ccxt.base.precise import Precise
|
|
20
20
|
|
21
21
|
class btcmarkets(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(btcmarkets, self).describe(), {
|
25
25
|
'id': 'btcmarkets',
|
26
26
|
'name': 'BTC Markets',
|
@@ -532,7 +532,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
532
532
|
'info': market,
|
533
533
|
}
|
534
534
|
|
535
|
-
def fetch_time(self, params={}):
|
535
|
+
def fetch_time(self, params={}) -> Int:
|
536
536
|
"""
|
537
537
|
fetches the current integer timestamp in milliseconds from the exchange server
|
538
538
|
|
ccxt/btcturk.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.btcturk import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import math
|
10
|
-
from ccxt.base.types import Balances, Bool, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
10
|
+
from ccxt.base.types import Any, Balances, Bool, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import BadRequest
|
@@ -19,7 +19,7 @@ from ccxt.base.precise import Precise
|
|
19
19
|
|
20
20
|
class btcturk(Exchange, ImplicitAPI):
|
21
21
|
|
22
|
-
def describe(self):
|
22
|
+
def describe(self) -> Any:
|
23
23
|
return self.deep_extend(super(btcturk, self).describe(), {
|
24
24
|
'id': 'btcturk',
|
25
25
|
'name': 'BTCTurk',
|
ccxt/bybit.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bybit import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, BorrowInterest, Conversion, CrossBorrowRate, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, LeverageTier, LeverageTiers, LongShortRatio, 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, Conversion, CrossBorrowRate, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, LeverageTier, LeverageTiers, LongShortRatio, 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
|
@@ -31,7 +31,7 @@ from ccxt.base.precise import Precise
|
|
31
31
|
|
32
32
|
class bybit(Exchange, ImplicitAPI):
|
33
33
|
|
34
|
-
def describe(self):
|
34
|
+
def describe(self) -> Any:
|
35
35
|
return self.deep_extend(super(bybit, self).describe(), {
|
36
36
|
'id': 'bybit',
|
37
37
|
'name': 'Bybit',
|
@@ -1420,8 +1420,8 @@ class bybit(Exchange, ImplicitAPI):
|
|
1420
1420
|
|
1421
1421
|
def create_expired_option_market(self, symbol: str):
|
1422
1422
|
# support expired option contracts
|
1423
|
-
quote =
|
1424
|
-
settle =
|
1423
|
+
quote = None
|
1424
|
+
settle = None
|
1425
1425
|
optionParts = symbol.split('-')
|
1426
1426
|
symbolBase = symbol.split('/')
|
1427
1427
|
base = None
|
@@ -1429,9 +1429,20 @@ class bybit(Exchange, ImplicitAPI):
|
|
1429
1429
|
if symbol.find('/') > -1:
|
1430
1430
|
base = self.safe_string(symbolBase, 0)
|
1431
1431
|
expiry = self.safe_string(optionParts, 1)
|
1432
|
+
symbolQuoteAndSettle = self.safe_string(symbolBase, 1)
|
1433
|
+
splitQuote = symbolQuoteAndSettle.split(':')
|
1434
|
+
quoteAndSettle = self.safe_string(splitQuote, 0)
|
1435
|
+
quote = quoteAndSettle
|
1436
|
+
settle = quoteAndSettle
|
1432
1437
|
else:
|
1433
1438
|
base = self.safe_string(optionParts, 0)
|
1434
1439
|
expiry = self.convert_market_id_expire_date(self.safe_string(optionParts, 1))
|
1440
|
+
if symbol.endswith('-USDT'):
|
1441
|
+
quote = 'USDT'
|
1442
|
+
settle = 'USDT'
|
1443
|
+
else:
|
1444
|
+
quote = 'USDC'
|
1445
|
+
settle = 'USDC'
|
1435
1446
|
strike = self.safe_string(optionParts, 2)
|
1436
1447
|
optionType = self.safe_string(optionParts, 3)
|
1437
1448
|
datetime = self.convert_expire_date(expiry)
|
@@ -1535,7 +1546,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1535
1546
|
return self.cost_to_precision(symbol, cost)
|
1536
1547
|
return cost
|
1537
1548
|
|
1538
|
-
def fetch_time(self, params={}):
|
1549
|
+
def fetch_time(self, params={}) -> Int:
|
1539
1550
|
"""
|
1540
1551
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1541
1552
|
|
@@ -3895,7 +3906,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
3895
3906
|
elif price is not None:
|
3896
3907
|
request['qty'] = self.get_cost(symbol, Precise.string_mul(amountString, priceString))
|
3897
3908
|
else:
|
3898
|
-
request['qty'] =
|
3909
|
+
request['qty'] = amountString
|
3899
3910
|
else:
|
3900
3911
|
if not isTrailingAmountOrder and not isAlternativeEndpoint:
|
3901
3912
|
request['qty'] = amountString
|
ccxt/cex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.cex import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, 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
|
@@ -21,7 +21,7 @@ from ccxt.base.precise import Precise
|
|
21
21
|
|
22
22
|
class cex(Exchange, ImplicitAPI):
|
23
23
|
|
24
|
-
def describe(self):
|
24
|
+
def describe(self) -> Any:
|
25
25
|
return self.deep_extend(super(cex, self).describe(), {
|
26
26
|
'id': 'cex',
|
27
27
|
'name': 'CEX.IO',
|
@@ -459,7 +459,7 @@ class cex(Exchange, ImplicitAPI):
|
|
459
459
|
'info': market,
|
460
460
|
})
|
461
461
|
|
462
|
-
def fetch_time(self, params={}):
|
462
|
+
def fetch_time(self, params={}) -> Int:
|
463
463
|
"""
|
464
464
|
fetches the current integer timestamp in milliseconds from the exchange server
|
465
465
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/coinbase.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinbase import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Conversion, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, MarketInterface
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Conversion, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, MarketInterface
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -24,13 +24,13 @@ from ccxt.base.precise import Precise
|
|
24
24
|
|
25
25
|
class coinbase(Exchange, ImplicitAPI):
|
26
26
|
|
27
|
-
def describe(self):
|
27
|
+
def describe(self) -> Any:
|
28
28
|
return self.deep_extend(super(coinbase, self).describe(), {
|
29
29
|
'id': 'coinbase',
|
30
30
|
'name': 'Coinbase Advanced',
|
31
31
|
'countries': ['US'],
|
32
32
|
'pro': True,
|
33
|
-
'certified':
|
33
|
+
'certified': False,
|
34
34
|
# rate-limits:
|
35
35
|
# ADVANCED API: https://docs.cloud.coinbase.com/advanced-trade/docs/rest-api-rate-limits
|
36
36
|
# - max 30 req/second for private data, 10 req/s for public data
|
@@ -473,7 +473,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
473
473
|
},
|
474
474
|
})
|
475
475
|
|
476
|
-
def fetch_time(self, params={}):
|
476
|
+
def fetch_time(self, params={}) -> Int:
|
477
477
|
"""
|
478
478
|
fetches the current integer timestamp in milliseconds from the exchange server
|
479
479
|
|
@@ -4795,10 +4795,17 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4795
4795
|
# }
|
4796
4796
|
# ]
|
4797
4797
|
# }
|
4798
|
+
# or
|
4799
|
+
# {
|
4800
|
+
# "error": "UNKNOWN_FAILURE_REASON",
|
4801
|
+
# "message": "",
|
4802
|
+
# "error_details": "",
|
4803
|
+
# "preview_failure_reason": "PREVIEW_STOP_PRICE_BELOW_LAST_TRADE_PRICE"
|
4804
|
+
# }
|
4798
4805
|
#
|
4799
4806
|
errorCode = self.safe_string(response, 'error')
|
4800
4807
|
if errorCode is not None:
|
4801
|
-
errorMessage = self.
|
4808
|
+
errorMessage = self.safe_string_2(response, 'error_description', 'preview_failure_reason')
|
4802
4809
|
self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, feedback)
|
4803
4810
|
self.throw_broadly_matched_exception(self.exceptions['broad'], errorMessage, feedback)
|
4804
4811
|
raise ExchangeError(feedback)
|
ccxt/coinbaseadvanced.py
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
|
6
6
|
from ccxt.coinbase import coinbase
|
7
7
|
from ccxt.abstract.coinbaseadvanced import ImplicitAPI
|
8
|
+
from ccxt.base.types import Any
|
8
9
|
|
9
10
|
|
10
11
|
class coinbaseadvanced(coinbase, ImplicitAPI):
|
11
12
|
|
12
|
-
def describe(self):
|
13
|
+
def describe(self) -> Any:
|
13
14
|
return self.deep_extend(super(coinbaseadvanced, self).describe(), {
|
14
15
|
'id': 'coinbaseadvanced',
|
15
16
|
'name': 'Coinbase Advanced',
|
ccxt/coinbaseexchange.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinbaseexchange import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, Int, LedgerEntry, 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
|
@@ -24,7 +24,7 @@ from ccxt.base.precise import Precise
|
|
24
24
|
|
25
25
|
class coinbaseexchange(Exchange, ImplicitAPI):
|
26
26
|
|
27
|
-
def describe(self):
|
27
|
+
def describe(self) -> Any:
|
28
28
|
return self.deep_extend(super(coinbaseexchange, self).describe(), {
|
29
29
|
'id': 'coinbaseexchange',
|
30
30
|
'name': 'Coinbase Exchange',
|
@@ -1051,7 +1051,7 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1051
1051
|
#
|
1052
1052
|
return self.parse_ohlcvs(response, market, timeframe, since, limit)
|
1053
1053
|
|
1054
|
-
def fetch_time(self, params={}):
|
1054
|
+
def fetch_time(self, params={}) -> Int:
|
1055
1055
|
"""
|
1056
1056
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1057
1057
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/coinbaseinternational.py
CHANGED
@@ -6,9 +6,8 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinbaseinternational import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Order, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, Int, Market, Order, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
|
-
from typing import Any
|
12
11
|
from ccxt.base.errors import ExchangeError
|
13
12
|
from ccxt.base.errors import AuthenticationError
|
14
13
|
from ccxt.base.errors import PermissionDenied
|
@@ -22,12 +21,12 @@ from ccxt.base.precise import Precise
|
|
22
21
|
|
23
22
|
class coinbaseinternational(Exchange, ImplicitAPI):
|
24
23
|
|
25
|
-
def describe(self):
|
24
|
+
def describe(self) -> Any:
|
26
25
|
return self.deep_extend(super(coinbaseinternational, self).describe(), {
|
27
26
|
'id': 'coinbaseinternational',
|
28
27
|
'name': 'Coinbase International',
|
29
28
|
'countries': ['US'],
|
30
|
-
'certified':
|
29
|
+
'certified': False,
|
31
30
|
'pro': True,
|
32
31
|
'rateLimit': 100, # 10 requests per second
|
33
32
|
'version': 'v1',
|
ccxt/coincatch.py
CHANGED
@@ -8,7 +8,7 @@ from ccxt.abstract.coincatch import ImplicitAPI
|
|
8
8
|
import hashlib
|
9
9
|
import math
|
10
10
|
import json
|
11
|
-
from ccxt.base.types import Balances, Bool, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, MarginMode, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction, TransferEntry
|
11
|
+
from ccxt.base.types import Any, Balances, Bool, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, MarginMode, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction, TransferEntry
|
12
12
|
from typing import List
|
13
13
|
from ccxt.base.errors import ExchangeError
|
14
14
|
from ccxt.base.errors import AuthenticationError
|
@@ -30,7 +30,7 @@ from ccxt.base.precise import Precise
|
|
30
30
|
|
31
31
|
class coincatch(Exchange, ImplicitAPI):
|
32
32
|
|
33
|
-
def describe(self):
|
33
|
+
def describe(self) -> Any:
|
34
34
|
return self.deep_extend(super(coincatch, self).describe(), {
|
35
35
|
'id': 'coincatch',
|
36
36
|
'name': 'CoinCatch',
|
@@ -586,7 +586,7 @@ class coincatch(Exchange, ImplicitAPI):
|
|
586
586
|
else:
|
587
587
|
return cost
|
588
588
|
|
589
|
-
def fetch_time(self, params={}):
|
589
|
+
def fetch_time(self, params={}) -> Int:
|
590
590
|
"""
|
591
591
|
fetches the current integer timestamp in milliseconds from the exchange server
|
592
592
|
|
ccxt/coincheck.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coincheck import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, 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 ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -16,7 +16,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
16
16
|
|
17
17
|
class coincheck(Exchange, ImplicitAPI):
|
18
18
|
|
19
|
-
def describe(self):
|
19
|
+
def describe(self) -> Any:
|
20
20
|
return self.deep_extend(super(coincheck, self).describe(), {
|
21
21
|
'id': 'coincheck',
|
22
22
|
'name': 'coincheck',
|
ccxt/coinex.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinex import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, BorrowInterest, Currencies, Currency, DepositAddress, Int, IsolatedBorrowRate, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
8
|
+
from ccxt.base.types import Any, Balances, BorrowInterest, Currencies, Currency, DepositAddress, Int, IsolatedBorrowRate, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -27,7 +27,7 @@ from ccxt.base.precise import Precise
|
|
27
27
|
|
28
28
|
class coinex(Exchange, ImplicitAPI):
|
29
29
|
|
30
|
-
def describe(self):
|
30
|
+
def describe(self) -> Any:
|
31
31
|
return self.deep_extend(super(coinex, self).describe(), {
|
32
32
|
'id': 'coinex',
|
33
33
|
'name': 'CoinEx',
|
@@ -1205,7 +1205,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
1205
1205
|
data = self.safe_list(response, 'data', [])
|
1206
1206
|
return self.parse_tickers(data, symbols)
|
1207
1207
|
|
1208
|
-
def fetch_time(self, params={}):
|
1208
|
+
def fetch_time(self, params={}) -> Int:
|
1209
1209
|
"""
|
1210
1210
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1211
1211
|
|
ccxt/coinlist.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.coinlist import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import math
|
10
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -27,7 +27,7 @@ from ccxt.base.precise import Precise
|
|
27
27
|
|
28
28
|
class coinlist(Exchange, ImplicitAPI):
|
29
29
|
|
30
|
-
def describe(self):
|
30
|
+
def describe(self) -> Any:
|
31
31
|
return self.deep_extend(super(coinlist, self).describe(), {
|
32
32
|
'id': 'coinlist',
|
33
33
|
'name': 'Coinlist',
|
@@ -405,7 +405,7 @@ class coinlist(Exchange, ImplicitAPI):
|
|
405
405
|
return int(math.ceil(length / 2))
|
406
406
|
return 1
|
407
407
|
|
408
|
-
def fetch_time(self, params={}):
|
408
|
+
def fetch_time(self, params={}) -> Int:
|
409
409
|
"""
|
410
410
|
fetches the current integer timestamp in milliseconds from the exchange server
|
411
411
|
|
ccxt/coinmate.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinmate import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -21,7 +21,7 @@ from ccxt.base.precise import Precise
|
|
21
21
|
|
22
22
|
class coinmate(Exchange, ImplicitAPI):
|
23
23
|
|
24
|
-
def describe(self):
|
24
|
+
def describe(self) -> Any:
|
25
25
|
return self.deep_extend(super(coinmate, self).describe(), {
|
26
26
|
'id': 'coinmate',
|
27
27
|
'name': 'CoinMate',
|
ccxt/coinmetro.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinmetro import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currencies, Currency, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
8
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import PermissionDenied
|
@@ -22,7 +22,7 @@ from ccxt.base.precise import Precise
|
|
22
22
|
|
23
23
|
class coinmetro(Exchange, ImplicitAPI):
|
24
24
|
|
25
|
-
def describe(self):
|
25
|
+
def describe(self) -> Any:
|
26
26
|
return self.deep_extend(super(coinmetro, self).describe(), {
|
27
27
|
'id': 'coinmetro',
|
28
28
|
'name': 'Coinmetro',
|
ccxt/coinone.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinone import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -20,7 +20,7 @@ from ccxt.base.precise import Precise
|
|
20
20
|
|
21
21
|
class coinone(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(coinone, self).describe(), {
|
25
25
|
'id': 'coinone',
|
26
26
|
'name': 'CoinOne',
|
ccxt/coinsph.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinsph import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction
|
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 coinsph(Exchange, ImplicitAPI):
|
32
32
|
|
33
|
-
def describe(self):
|
33
|
+
def describe(self) -> Any:
|
34
34
|
return self.deep_extend(super(coinsph, self).describe(), {
|
35
35
|
'id': 'coinsph',
|
36
36
|
'name': 'Coins.ph',
|
@@ -541,7 +541,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
541
541
|
'info': response,
|
542
542
|
}
|
543
543
|
|
544
|
-
def fetch_time(self, params={}):
|
544
|
+
def fetch_time(self, params={}) -> Int:
|
545
545
|
"""
|
546
546
|
fetches the current integer timestamp in milliseconds from the exchange server
|
547
547
|
|
ccxt/coinspot.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinspot import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, Market, Num, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
9
|
+
from ccxt.base.types import Any, Balances, Int, Market, Num, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -16,7 +16,7 @@ from ccxt.base.precise import Precise
|
|
16
16
|
|
17
17
|
class coinspot(Exchange, ImplicitAPI):
|
18
18
|
|
19
|
-
def describe(self):
|
19
|
+
def describe(self) -> Any:
|
20
20
|
return self.deep_extend(super(coinspot, self).describe(), {
|
21
21
|
'id': 'coinspot',
|
22
22
|
'name': 'CoinSpot',
|
ccxt/cryptocom.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.cryptocom import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction
|
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 cryptocom(Exchange, ImplicitAPI):
|
32
32
|
|
33
|
-
def describe(self):
|
33
|
+
def describe(self) -> Any:
|
34
34
|
return self.deep_extend(super(cryptocom, self).describe(), {
|
35
35
|
'id': 'cryptocom',
|
36
36
|
'name': 'Crypto.com',
|
ccxt/currencycom.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.currencycom import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, 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 currencycom(Exchange, ImplicitAPI):
|
28
28
|
|
29
|
-
def describe(self):
|
29
|
+
def describe(self) -> Any:
|
30
30
|
return self.deep_extend(super(currencycom, self).describe(), {
|
31
31
|
'id': 'currencycom',
|
32
32
|
'name': 'Currency.com',
|
@@ -387,7 +387,7 @@ class currencycom(Exchange, ImplicitAPI):
|
|
387
387
|
def nonce(self):
|
388
388
|
return self.milliseconds() - self.options['timeDifference']
|
389
389
|
|
390
|
-
def fetch_time(self, params={}):
|
390
|
+
def fetch_time(self, params={}) -> Int:
|
391
391
|
"""
|
392
392
|
fetches the current integer timestamp in milliseconds from the exchange server
|
393
393
|
|
ccxt/defx.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.defx import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, LedgerEntry, Leverage, Market, Num, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, Int, LedgerEntry, Leverage, Market, Num, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -20,7 +20,7 @@ from ccxt.base.precise import Precise
|
|
20
20
|
|
21
21
|
class defx(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(defx, self).describe(), {
|
25
25
|
'id': 'defx',
|
26
26
|
'name': 'Defx X',
|
@@ -398,7 +398,7 @@ class defx(Exchange, ImplicitAPI):
|
|
398
398
|
'info': response,
|
399
399
|
}
|
400
400
|
|
401
|
-
def fetch_time(self, params={}):
|
401
|
+
def fetch_time(self, params={}) -> Int:
|
402
402
|
"""
|
403
403
|
fetches the current integer timestamp in milliseconds from the exchange server
|
404
404
|
|
ccxt/delta.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.delta import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, MarginMode, MarginModification, Market, Num, Option, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, MarketInterface
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, MarginMode, MarginModification, Market, Num, Option, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, MarketInterface
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -23,7 +23,7 @@ from ccxt.base.precise import Precise
|
|
23
23
|
|
24
24
|
class delta(Exchange, ImplicitAPI):
|
25
25
|
|
26
|
-
def describe(self):
|
26
|
+
def describe(self) -> Any:
|
27
27
|
return self.deep_extend(super(delta, self).describe(), {
|
28
28
|
'id': 'delta',
|
29
29
|
'name': 'Delta Exchange',
|
@@ -413,7 +413,7 @@ class delta(Exchange, ImplicitAPI):
|
|
413
413
|
return self.create_expired_option_market(marketId)
|
414
414
|
return super(delta, self).safe_market(marketId, market, delimiter, marketType)
|
415
415
|
|
416
|
-
def fetch_time(self, params={}):
|
416
|
+
def fetch_time(self, params={}) -> Int:
|
417
417
|
"""
|
418
418
|
fetches the current integer timestamp in milliseconds from the exchange server
|
419
419
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|