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/async_support/kucoin.py
CHANGED
@@ -9,7 +9,7 @@ import asyncio
|
|
9
9
|
import hashlib
|
10
10
|
import math
|
11
11
|
import json
|
12
|
-
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
|
12
|
+
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
|
13
13
|
from typing import List
|
14
14
|
from ccxt.base.errors import ExchangeError
|
15
15
|
from ccxt.base.errors import AuthenticationError
|
@@ -33,7 +33,7 @@ from ccxt.base.precise import Precise
|
|
33
33
|
|
34
34
|
class kucoin(Exchange, ImplicitAPI):
|
35
35
|
|
36
|
-
def describe(self):
|
36
|
+
def describe(self) -> Any:
|
37
37
|
return self.deep_extend(super(kucoin, self).describe(), {
|
38
38
|
'id': 'kucoin',
|
39
39
|
'name': 'KuCoin',
|
@@ -1084,7 +1084,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1084
1084
|
def nonce(self):
|
1085
1085
|
return self.milliseconds() - self.options['timeDifference']
|
1086
1086
|
|
1087
|
-
async def fetch_time(self, params={}):
|
1087
|
+
async def fetch_time(self, params={}) -> Int:
|
1088
1088
|
"""
|
1089
1089
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1090
1090
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.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
|
-
async def fetch_time(self, params={}):
|
652
|
+
async def fetch_time(self, params={}) -> Int:
|
653
653
|
"""
|
654
654
|
fetches the current integer timestamp in milliseconds from the exchange server
|
655
655
|
|
ccxt/async_support/kuna.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.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
|
-
async def fetch_time(self, params={}):
|
473
|
+
async def fetch_time(self, params={}) -> Int:
|
474
474
|
"""
|
475
475
|
fetches the current integer timestamp in milliseconds from the exchange server
|
476
476
|
|
ccxt/async_support/latoken.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.latoken import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, Int, 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
|
@@ -26,7 +26,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
26
26
|
|
27
27
|
class latoken(Exchange, ImplicitAPI):
|
28
28
|
|
29
|
-
def describe(self):
|
29
|
+
def describe(self) -> Any:
|
30
30
|
return self.deep_extend(super(latoken, self).describe(), {
|
31
31
|
'id': 'latoken',
|
32
32
|
'name': 'Latoken',
|
@@ -321,7 +321,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
321
321
|
def nonce(self):
|
322
322
|
return self.milliseconds() - self.options['timeDifference']
|
323
323
|
|
324
|
-
async def fetch_time(self, params={}):
|
324
|
+
async def fetch_time(self, params={}) -> Int:
|
325
325
|
"""
|
326
326
|
fetches the current integer timestamp in milliseconds from the exchange server
|
327
327
|
|
ccxt/async_support/lbank.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.lbank import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction
|
10
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFeeInterface, TradingFees, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -28,7 +28,7 @@ from ccxt.base.precise import Precise
|
|
28
28
|
|
29
29
|
class lbank(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(lbank, self).describe(), {
|
33
33
|
'id': 'lbank',
|
34
34
|
'name': 'LBank',
|
@@ -385,7 +385,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
385
385
|
},
|
386
386
|
})
|
387
387
|
|
388
|
-
async def fetch_time(self, params={}):
|
388
|
+
async def fetch_time(self, params={}) -> Int:
|
389
389
|
"""
|
390
390
|
fetches the current integer timestamp in milliseconds from the exchange server
|
391
391
|
|
ccxt/async_support/luno.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.luno import ImplicitAPI
|
8
|
-
from ccxt.base.types import Account, Balances, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface
|
8
|
+
from ccxt.base.types import Account, Any, Balances, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -15,7 +15,7 @@ from ccxt.base.precise import Precise
|
|
15
15
|
|
16
16
|
class luno(Exchange, ImplicitAPI):
|
17
17
|
|
18
|
-
def describe(self):
|
18
|
+
def describe(self) -> Any:
|
19
19
|
return self.deep_extend(super(luno, self).describe(), {
|
20
20
|
'id': 'luno',
|
21
21
|
'name': 'luno',
|
ccxt/async_support/mercado.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.mercado 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
|
@@ -17,7 +17,7 @@ from ccxt.base.precise import Precise
|
|
17
17
|
|
18
18
|
class mercado(Exchange, ImplicitAPI):
|
19
19
|
|
20
|
-
def describe(self):
|
20
|
+
def describe(self) -> Any:
|
21
21
|
return self.deep_extend(super(mercado, self).describe(), {
|
22
22
|
'id': 'mercado',
|
23
23
|
'name': 'Mercado Bitcoin',
|
ccxt/async_support/mexc.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.mexc import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, DepositAddress, IndexType, Int, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, DepositAddress, IndexType, Int, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, 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
|
@@ -28,7 +28,7 @@ from ccxt.base.precise import Precise
|
|
28
28
|
|
29
29
|
class mexc(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(mexc, self).describe(), {
|
33
33
|
'id': 'mexc',
|
34
34
|
'name': 'MEXC Global',
|
@@ -1012,7 +1012,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1012
1012
|
'info': response,
|
1013
1013
|
}
|
1014
1014
|
|
1015
|
-
async def fetch_time(self, params={}):
|
1015
|
+
async def fetch_time(self, params={}) -> Int:
|
1016
1016
|
"""
|
1017
1017
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1018
1018
|
|
ccxt/async_support/myokx.py
CHANGED
@@ -5,11 +5,12 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.okx import okx
|
7
7
|
from ccxt.abstract.myokx import ImplicitAPI
|
8
|
+
from ccxt.base.types import Any
|
8
9
|
|
9
10
|
|
10
11
|
class myokx(okx, ImplicitAPI):
|
11
12
|
|
12
|
-
def describe(self):
|
13
|
+
def describe(self) -> Any:
|
13
14
|
return self.deep_extend(super(myokx, self).describe(), {
|
14
15
|
'id': 'myokx',
|
15
16
|
'name': 'MyOKX(EEA)',
|
ccxt/async_support/ndax.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.ndax import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Account, Balances, Currencies, Currency, DepositAddress, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
|
10
|
+
from ccxt.base.types import Account, Any, Balances, Currencies, Currency, DepositAddress, IndexType, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -20,7 +20,7 @@ from ccxt.base.precise import Precise
|
|
20
20
|
|
21
21
|
class ndax(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(ndax, self).describe(), {
|
25
25
|
'id': 'ndax',
|
26
26
|
'name': 'NDAX',
|
ccxt/async_support/novadax.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.novadax import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Any, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, 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 novadax(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(novadax, self).describe(), {
|
33
33
|
'id': 'novadax',
|
34
34
|
'name': 'NovaDAX',
|
@@ -304,7 +304,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
304
304
|
},
|
305
305
|
})
|
306
306
|
|
307
|
-
async def fetch_time(self, params={}):
|
307
|
+
async def fetch_time(self, params={}) -> Int:
|
308
308
|
"""
|
309
309
|
fetches the current integer timestamp in milliseconds from the exchange server
|
310
310
|
|
ccxt/async_support/oceanex.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.oceanex import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees
|
8
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, OrderBooks, Trade, TradingFees
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -20,7 +20,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
20
20
|
|
21
21
|
class oceanex(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(oceanex, self).describe(), {
|
25
25
|
'id': 'oceanex',
|
26
26
|
'name': 'OceanEx',
|
@@ -622,7 +622,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
622
622
|
'fee': None,
|
623
623
|
}, market)
|
624
624
|
|
625
|
-
async def fetch_time(self, params={}):
|
625
|
+
async def fetch_time(self, params={}) -> Int:
|
626
626
|
"""
|
627
627
|
fetches the current integer timestamp in milliseconds from the exchange server
|
628
628
|
|
ccxt/async_support/okcoin.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.okcoin import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -34,7 +34,7 @@ from ccxt.base.precise import Precise
|
|
34
34
|
|
35
35
|
class okcoin(Exchange, ImplicitAPI):
|
36
36
|
|
37
|
-
def describe(self):
|
37
|
+
def describe(self) -> Any:
|
38
38
|
return self.deep_extend(super(okcoin, self).describe(), {
|
39
39
|
'id': 'okcoin',
|
40
40
|
'name': 'OKCoin',
|
@@ -703,7 +703,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
703
703
|
},
|
704
704
|
})
|
705
705
|
|
706
|
-
async def fetch_time(self, params={}):
|
706
|
+
async def fetch_time(self, params={}) -> Int:
|
707
707
|
"""
|
708
708
|
fetches the current integer timestamp in milliseconds from the exchange server
|
709
709
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/okx.py
CHANGED
@@ -7,9 +7,8 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.okx import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Account, Balances, BorrowInterest, Conversion, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, LeverageTier, LongShortRatio, MarginModification, Market, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, MarketInterface, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Any, Balances, BorrowInterest, Conversion, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, DepositAddress, Greeks, Int, LedgerEntry, Leverage, LeverageTier, LongShortRatio, MarginModification, Market, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, Trade, TradingFeeInterface, Transaction, MarketInterface, TransferEntry
|
11
11
|
from typing import List
|
12
|
-
from typing import Any
|
13
12
|
from ccxt.base.errors import ExchangeError
|
14
13
|
from ccxt.base.errors import AuthenticationError
|
15
14
|
from ccxt.base.errors import PermissionDenied
|
@@ -40,7 +39,7 @@ from ccxt.base.precise import Precise
|
|
40
39
|
|
41
40
|
class okx(Exchange, ImplicitAPI):
|
42
41
|
|
43
|
-
def describe(self):
|
42
|
+
def describe(self) -> Any:
|
44
43
|
return self.deep_extend(super(okx, self).describe(), {
|
45
44
|
'id': 'okx',
|
46
45
|
'name': 'OKX',
|
@@ -1443,7 +1442,7 @@ class okx(Exchange, ImplicitAPI):
|
|
1443
1442
|
update['status'] = 'ok'
|
1444
1443
|
return update
|
1445
1444
|
|
1446
|
-
async def fetch_time(self, params={}):
|
1445
|
+
async def fetch_time(self, params={}) -> Int:
|
1447
1446
|
"""
|
1448
1447
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1449
1448
|
|
ccxt/async_support/onetrading.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.onetrading import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currencies, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees
|
8
|
+
from ccxt.base.types import Any, Balances, Currencies, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -25,7 +25,7 @@ from ccxt.base.precise import Precise
|
|
25
25
|
|
26
26
|
class onetrading(Exchange, ImplicitAPI):
|
27
27
|
|
28
|
-
def describe(self):
|
28
|
+
def describe(self) -> Any:
|
29
29
|
return self.deep_extend(super(onetrading, self).describe(), {
|
30
30
|
'id': 'onetrading',
|
31
31
|
'name': 'One Trading',
|
@@ -374,7 +374,7 @@ class onetrading(Exchange, ImplicitAPI):
|
|
374
374
|
},
|
375
375
|
})
|
376
376
|
|
377
|
-
async def fetch_time(self, params={}):
|
377
|
+
async def fetch_time(self, params={}) -> Int:
|
378
378
|
"""
|
379
379
|
fetches the current integer timestamp in milliseconds from the exchange server
|
380
380
|
|
ccxt/async_support/oxfun.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.oxfun import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Account, Balances, Bool, Currencies, Currency, DepositAddress, Int, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Any, Balances, Bool, Currencies, Currency, DepositAddress, Int, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -30,7 +30,7 @@ from ccxt.base.precise import Precise
|
|
30
30
|
|
31
31
|
class oxfun(Exchange, ImplicitAPI):
|
32
32
|
|
33
|
-
def describe(self):
|
33
|
+
def describe(self) -> Any:
|
34
34
|
return self.deep_extend(super(oxfun, self).describe(), {
|
35
35
|
'id': 'oxfun',
|
36
36
|
'name': 'OXFUN',
|
ccxt/async_support/p2b.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.p2b import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Int, Market, Num, Order, OrderSide, OrderType, Str, Strings, Ticker, Tickers
|
9
|
+
from ccxt.base.types import Any, Int, Market, Num, Order, OrderSide, OrderType, Str, Strings, Ticker, Tickers
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -18,7 +18,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
18
18
|
|
19
19
|
class p2b(Exchange, ImplicitAPI):
|
20
20
|
|
21
|
-
def describe(self):
|
21
|
+
def describe(self) -> Any:
|
22
22
|
return self.deep_extend(super(p2b, self).describe(), {
|
23
23
|
'id': 'p2b',
|
24
24
|
'name': 'p2b',
|
ccxt/async_support/paradex.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.paradex import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
8
|
+
from ccxt.base.types import Any, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -20,7 +20,7 @@ from ccxt.base.precise import Precise
|
|
20
20
|
|
21
21
|
class paradex(Exchange, ImplicitAPI):
|
22
22
|
|
23
|
-
def describe(self):
|
23
|
+
def describe(self) -> Any:
|
24
24
|
return self.deep_extend(super(paradex, self).describe(), {
|
25
25
|
'id': 'paradex',
|
26
26
|
'name': 'Paradex',
|
@@ -354,7 +354,7 @@ class paradex(Exchange, ImplicitAPI):
|
|
354
354
|
},
|
355
355
|
})
|
356
356
|
|
357
|
-
async def fetch_time(self, params={}):
|
357
|
+
async def fetch_time(self, params={}) -> Int:
|
358
358
|
"""
|
359
359
|
fetches the current integer timestamp in milliseconds from the exchange server
|
360
360
|
|
ccxt/async_support/paymium.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.paymium import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Trade, TransferEntry
|
9
|
+
from ccxt.base.types import Any, Balances, Currency, DepositAddress, Int, Market, Num, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Trade, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
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 paymium(Exchange, ImplicitAPI):
|
17
17
|
|
18
|
-
def describe(self):
|
18
|
+
def describe(self) -> Any:
|
19
19
|
return self.deep_extend(super(paymium, self).describe(), {
|
20
20
|
'id': 'paymium',
|
21
21
|
'name': 'Paymium',
|
ccxt/async_support/phemex.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.phemex import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import numbers
|
10
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -29,7 +29,7 @@ from ccxt.base.precise import Precise
|
|
29
29
|
|
30
30
|
class phemex(Exchange, ImplicitAPI):
|
31
31
|
|
32
|
-
def describe(self):
|
32
|
+
def describe(self) -> Any:
|
33
33
|
return self.deep_extend(super(phemex, self).describe(), {
|
34
34
|
'id': 'phemex',
|
35
35
|
'name': 'Phemex',
|
ccxt/async_support/poloniex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.poloniex 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, TransferEntry
|
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, 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 poloniex(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(poloniex, self).describe(), {
|
33
33
|
'id': 'poloniex',
|
34
34
|
'name': 'Poloniex',
|
@@ -648,7 +648,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
648
648
|
'info': market,
|
649
649
|
}
|
650
650
|
|
651
|
-
async def fetch_time(self, params={}):
|
651
|
+
async def fetch_time(self, params={}) -> Int:
|
652
652
|
"""
|
653
653
|
fetches the current integer timestamp in milliseconds from the exchange server
|
654
654
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.poloniexfutures import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade
|
9
|
+
from ccxt.base.types import Any, Balances, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, Trade
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
12
12
|
from ccxt.base.errors import AccountSuspended
|
@@ -24,7 +24,7 @@ from ccxt.base.precise import Precise
|
|
24
24
|
|
25
25
|
class poloniexfutures(Exchange, ImplicitAPI):
|
26
26
|
|
27
|
-
def describe(self):
|
27
|
+
def describe(self) -> Any:
|
28
28
|
return self.deep_extend(super(poloniexfutures, self).describe(), {
|
29
29
|
'id': 'poloniexfutures',
|
30
30
|
'name': 'Poloniex Futures',
|
@@ -776,7 +776,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
776
776
|
trades = self.safe_list(response, 'data', [])
|
777
777
|
return self.parse_trades(trades, market, since, limit)
|
778
778
|
|
779
|
-
async def fetch_time(self, params={}):
|
779
|
+
async def fetch_time(self, params={}) -> Int:
|
780
780
|
"""
|
781
781
|
fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
782
782
|
|
ccxt/async_support/probit.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.probit import ImplicitAPI
|
8
8
|
import math
|
9
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, 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
|
@@ -28,7 +28,7 @@ from ccxt.base.precise import Precise
|
|
28
28
|
|
29
29
|
class probit(Exchange, ImplicitAPI):
|
30
30
|
|
31
|
-
def describe(self):
|
31
|
+
def describe(self) -> Any:
|
32
32
|
return self.deep_extend(super(probit, self).describe(), {
|
33
33
|
'id': 'probit',
|
34
34
|
'name': 'ProBit',
|
@@ -938,7 +938,7 @@ class probit(Exchange, ImplicitAPI):
|
|
938
938
|
'fee': fee,
|
939
939
|
}, market)
|
940
940
|
|
941
|
-
async def fetch_time(self, params={}):
|
941
|
+
async def fetch_time(self, params={}) -> Int:
|
942
942
|
"""
|
943
943
|
|
944
944
|
https://docs-en.probit.com/reference/time
|
ccxt/async_support/timex.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.timex import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction
|
8
|
+
from ccxt.base.types import Any, Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import AuthenticationError
|
@@ -24,7 +24,7 @@ from ccxt.base.precise import Precise
|
|
24
24
|
|
25
25
|
class timex(Exchange, ImplicitAPI):
|
26
26
|
|
27
|
-
def describe(self):
|
27
|
+
def describe(self) -> Any:
|
28
28
|
return self.deep_extend(super(timex, self).describe(), {
|
29
29
|
'id': 'timex',
|
30
30
|
'name': 'TimeX',
|
@@ -354,7 +354,7 @@ class timex(Exchange, ImplicitAPI):
|
|
354
354
|
},
|
355
355
|
})
|
356
356
|
|
357
|
-
async def fetch_time(self, params={}):
|
357
|
+
async def fetch_time(self, params={}) -> Int:
|
358
358
|
"""
|
359
359
|
fetches the current integer timestamp in milliseconds from the exchange server
|
360
360
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -729,6 +729,7 @@ class timex(Exchange, ImplicitAPI):
|
|
729
729
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
730
730
|
:param int [limit]: the maximum amount of candles to fetch
|
731
731
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
732
|
+
:param int [params.until]: timestamp in ms of the latest candle to fetch
|
732
733
|
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
733
734
|
"""
|
734
735
|
await self.load_markets()
|
@@ -739,15 +740,24 @@ class timex(Exchange, ImplicitAPI):
|
|
739
740
|
}
|
740
741
|
# if since and limit are not specified
|
741
742
|
duration = self.parse_timeframe(timeframe)
|
743
|
+
until = self.safe_integer(params, 'until')
|
742
744
|
if limit is None:
|
743
745
|
limit = 1000 # exchange provides tens of thousands of data, but we set generous default value
|
744
746
|
if since is not None:
|
745
747
|
request['from'] = self.iso8601(since)
|
746
|
-
|
748
|
+
if until is None:
|
749
|
+
request['till'] = self.iso8601(self.sum(since, self.sum(limit, 1) * duration * 1000))
|
750
|
+
else:
|
751
|
+
request['till'] = self.iso8601(until)
|
752
|
+
elif until is not None:
|
753
|
+
request['till'] = self.iso8601(until)
|
754
|
+
fromTimestamp = until - self.sum(limit, 1) * duration * 1000
|
755
|
+
request['from'] = self.iso8601(fromTimestamp)
|
747
756
|
else:
|
748
757
|
now = self.milliseconds()
|
749
758
|
request['till'] = self.iso8601(now)
|
750
|
-
request['from'] = self.iso8601(now - limit * duration * 1000 - 1)
|
759
|
+
request['from'] = self.iso8601(now - self.sum(limit, 1) * duration * 1000 - 1)
|
760
|
+
params = self.omit(params, 'until')
|
751
761
|
response = await self.publicGetCandles(self.extend(request, params))
|
752
762
|
#
|
753
763
|
# [
|
ccxt/async_support/tokocrypto.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.tokocrypto import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
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
|
@@ -37,7 +37,7 @@ from ccxt.base.precise import Precise
|
|
37
37
|
|
38
38
|
class tokocrypto(Exchange, ImplicitAPI):
|
39
39
|
|
40
|
-
def describe(self):
|
40
|
+
def describe(self) -> Any:
|
41
41
|
return self.deep_extend(super(tokocrypto, self).describe(), {
|
42
42
|
'id': 'tokocrypto',
|
43
43
|
'name': 'Tokocrypto',
|
@@ -702,7 +702,7 @@ class tokocrypto(Exchange, ImplicitAPI):
|
|
702
702
|
def nonce(self):
|
703
703
|
return self.milliseconds() - self.options['timeDifference']
|
704
704
|
|
705
|
-
async def fetch_time(self, params={}):
|
705
|
+
async def fetch_time(self, params={}) -> Int:
|
706
706
|
"""
|
707
707
|
|
708
708
|
https://www.tokocrypto.com/apidocs/#check-server-time
|