ccxt 3.0.86__py2.py3-none-any.whl → 3.0.87__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/ace.py +2 -1
- ccxt/alpaca.py +2 -1
- ccxt/ascendex.py +2 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +2 -1
- ccxt/async_support/alpaca.py +2 -1
- ccxt/async_support/ascendex.py +2 -1
- ccxt/async_support/base/exchange.py +6 -6
- ccxt/async_support/bequant.py +2 -1
- ccxt/async_support/bigone.py +2 -1
- ccxt/async_support/binance.py +4 -3
- ccxt/async_support/binancecoinm.py +2 -1
- ccxt/async_support/binanceus.py +2 -1
- ccxt/async_support/binanceusdm.py +2 -1
- ccxt/async_support/bit2c.py +2 -1
- ccxt/async_support/bitbank.py +2 -1
- ccxt/async_support/bitbay.py +2 -1
- ccxt/async_support/bitbns.py +2 -1
- ccxt/async_support/bitcoincom.py +2 -1
- ccxt/async_support/bitfinex.py +2 -1
- ccxt/async_support/bitfinex2.py +2 -1
- ccxt/async_support/bitflyer.py +2 -1
- ccxt/async_support/bitforex.py +2 -1
- ccxt/async_support/bitget.py +19 -3
- ccxt/async_support/bithumb.py +2 -1
- ccxt/async_support/bitmart.py +2 -1
- ccxt/async_support/bitmex.py +3 -2
- ccxt/async_support/bitopro.py +2 -1
- ccxt/async_support/bitpanda.py +2 -1
- ccxt/async_support/bitrue.py +3 -2
- ccxt/async_support/bitso.py +2 -1
- ccxt/async_support/bitstamp.py +2 -1
- ccxt/async_support/bitstamp1.py +2 -1
- ccxt/async_support/bittrex.py +2 -1
- ccxt/async_support/bitvavo.py +3 -2
- ccxt/async_support/bkex.py +2 -1
- ccxt/async_support/bl3p.py +2 -1
- ccxt/async_support/blockchaincom.py +2 -1
- ccxt/async_support/btcalpha.py +2 -1
- ccxt/async_support/btcbox.py +4 -3
- ccxt/async_support/btcex.py +2 -1
- ccxt/async_support/btcmarkets.py +2 -1
- ccxt/async_support/btctradeua.py +2 -1
- ccxt/async_support/btcturk.py +2 -1
- ccxt/async_support/bybit.py +2 -1
- ccxt/async_support/cex.py +2 -1
- ccxt/async_support/coinbase.py +2 -1
- ccxt/async_support/coinbaseprime.py +2 -1
- ccxt/async_support/coinbasepro.py +4 -3
- ccxt/async_support/coincheck.py +2 -1
- ccxt/async_support/coinex.py +3 -2
- ccxt/async_support/coinfalcon.py +2 -1
- ccxt/async_support/coinmate.py +2 -1
- ccxt/async_support/coinone.py +2 -1
- ccxt/async_support/coinsph.py +3 -2
- ccxt/async_support/coinspot.py +2 -1
- ccxt/async_support/cryptocom.py +2 -1
- ccxt/async_support/currencycom.py +2 -1
- ccxt/async_support/delta.py +2 -1
- ccxt/async_support/deribit.py +2 -1
- ccxt/async_support/digifinex.py +4 -3
- ccxt/async_support/exmo.py +2 -1
- ccxt/async_support/fmfwio.py +2 -1
- ccxt/async_support/gate.py +2 -1
- ccxt/async_support/gateio.py +2 -1
- ccxt/async_support/gemini.py +2 -1
- ccxt/async_support/hitbtc.py +2 -1
- ccxt/async_support/hitbtc3.py +2 -1
- ccxt/async_support/hollaex.py +2 -1
- ccxt/async_support/huobi.py +2 -1
- ccxt/async_support/huobijp.py +2 -1
- ccxt/async_support/huobipro.py +2 -1
- ccxt/async_support/idex.py +3 -2
- ccxt/async_support/independentreserve.py +2 -1
- ccxt/async_support/indodax.py +2 -1
- ccxt/async_support/kraken.py +2 -1
- ccxt/async_support/krakenfutures.py +2 -1
- ccxt/async_support/kucoin.py +3 -2
- ccxt/async_support/kucoinfutures.py +147 -8
- ccxt/async_support/kuna.py +2 -1
- ccxt/async_support/latoken.py +2 -1
- ccxt/async_support/lbank.py +2 -1
- ccxt/async_support/lbank2.py +2 -1
- ccxt/async_support/luno.py +2 -1
- ccxt/async_support/lykke.py +2 -1
- ccxt/async_support/mercado.py +2 -1
- ccxt/async_support/mexc.py +4 -1
- ccxt/async_support/mexc3.py +2 -1
- ccxt/async_support/ndax.py +2 -1
- ccxt/async_support/novadax.py +2 -1
- ccxt/async_support/oceanex.py +2 -1
- ccxt/async_support/okcoin.py +2 -1
- ccxt/async_support/okex.py +2 -1
- ccxt/async_support/okex5.py +2 -1
- ccxt/async_support/okx.py +5 -1
- ccxt/async_support/paymium.py +2 -1
- ccxt/async_support/phemex.py +2 -1
- ccxt/async_support/poloniex.py +3 -1
- ccxt/async_support/poloniexfutures.py +2 -1
- ccxt/async_support/probit.py +2 -1
- ccxt/async_support/stex.py +3 -2
- ccxt/async_support/tidex.py +2 -1
- ccxt/async_support/timex.py +2 -1
- ccxt/async_support/tokocrypto.py +3 -2
- ccxt/async_support/upbit.py +2 -1
- ccxt/async_support/wavesexchange.py +2 -1
- ccxt/async_support/wazirx.py +2 -1
- ccxt/async_support/whitebit.py +2 -1
- ccxt/async_support/woo.py +2 -1
- ccxt/async_support/xt.py +2 -1
- ccxt/async_support/yobit.py +2 -1
- ccxt/async_support/zaif.py +2 -1
- ccxt/async_support/zonda.py +2 -1
- ccxt/base/exchange.py +6 -74
- ccxt/base/types.py +24 -0
- ccxt/bequant.py +2 -1
- ccxt/bigone.py +2 -1
- ccxt/binance.py +4 -3
- ccxt/binancecoinm.py +2 -1
- ccxt/binanceus.py +2 -1
- ccxt/binanceusdm.py +2 -1
- ccxt/bit2c.py +2 -1
- ccxt/bitbank.py +2 -1
- ccxt/bitbay.py +2 -1
- ccxt/bitbns.py +2 -1
- ccxt/bitcoincom.py +2 -1
- ccxt/bitfinex.py +2 -1
- ccxt/bitfinex2.py +2 -1
- ccxt/bitflyer.py +2 -1
- ccxt/bitforex.py +2 -1
- ccxt/bitget.py +19 -3
- ccxt/bithumb.py +2 -1
- ccxt/bitmart.py +2 -1
- ccxt/bitmex.py +3 -2
- ccxt/bitopro.py +2 -1
- ccxt/bitpanda.py +2 -1
- ccxt/bitrue.py +3 -2
- ccxt/bitso.py +2 -1
- ccxt/bitstamp.py +2 -1
- ccxt/bitstamp1.py +2 -1
- ccxt/bittrex.py +2 -1
- ccxt/bitvavo.py +3 -2
- ccxt/bkex.py +2 -1
- ccxt/bl3p.py +2 -1
- ccxt/blockchaincom.py +2 -1
- ccxt/btcalpha.py +2 -1
- ccxt/btcbox.py +4 -3
- ccxt/btcex.py +2 -1
- ccxt/btcmarkets.py +2 -1
- ccxt/btctradeua.py +2 -1
- ccxt/btcturk.py +2 -1
- ccxt/bybit.py +2 -1
- ccxt/cex.py +2 -1
- ccxt/coinbase.py +2 -1
- ccxt/coinbaseprime.py +2 -1
- ccxt/coinbasepro.py +4 -3
- ccxt/coincheck.py +2 -1
- ccxt/coinex.py +3 -2
- ccxt/coinfalcon.py +2 -1
- ccxt/coinmate.py +2 -1
- ccxt/coinone.py +2 -1
- ccxt/coinsph.py +3 -2
- ccxt/coinspot.py +2 -1
- ccxt/cryptocom.py +2 -1
- ccxt/currencycom.py +2 -1
- ccxt/delta.py +2 -1
- ccxt/deribit.py +2 -1
- ccxt/digifinex.py +4 -3
- ccxt/exmo.py +2 -1
- ccxt/fmfwio.py +2 -1
- ccxt/gate.py +2 -1
- ccxt/gateio.py +2 -1
- ccxt/gemini.py +2 -1
- ccxt/hitbtc.py +2 -1
- ccxt/hitbtc3.py +2 -1
- ccxt/hollaex.py +2 -1
- ccxt/huobi.py +2 -1
- ccxt/huobijp.py +2 -1
- ccxt/huobipro.py +2 -1
- ccxt/idex.py +3 -2
- ccxt/independentreserve.py +2 -1
- ccxt/indodax.py +2 -1
- ccxt/kraken.py +2 -1
- ccxt/krakenfutures.py +2 -1
- ccxt/kucoin.py +3 -2
- ccxt/kucoinfutures.py +147 -8
- ccxt/kuna.py +2 -1
- ccxt/latoken.py +2 -1
- ccxt/lbank.py +2 -1
- ccxt/lbank2.py +2 -1
- ccxt/luno.py +2 -1
- ccxt/lykke.py +2 -1
- ccxt/mercado.py +2 -1
- ccxt/mexc.py +4 -1
- ccxt/mexc3.py +2 -1
- ccxt/ndax.py +2 -1
- ccxt/novadax.py +2 -1
- ccxt/oceanex.py +2 -1
- ccxt/okcoin.py +2 -1
- ccxt/okex.py +2 -1
- ccxt/okex5.py +2 -1
- ccxt/okx.py +5 -1
- ccxt/paymium.py +2 -1
- ccxt/phemex.py +2 -1
- ccxt/poloniex.py +3 -1
- ccxt/poloniexfutures.py +2 -1
- ccxt/pro/__init__.py +1 -1
- ccxt/probit.py +2 -1
- ccxt/stex.py +3 -2
- ccxt/tidex.py +2 -1
- ccxt/timex.py +2 -1
- ccxt/tokocrypto.py +3 -2
- ccxt/upbit.py +2 -1
- ccxt/wavesexchange.py +2 -1
- ccxt/wazirx.py +2 -1
- ccxt/whitebit.py +2 -1
- ccxt/woo.py +2 -1
- ccxt/xt.py +2 -1
- ccxt/yobit.py +2 -1
- ccxt/zaif.py +2 -1
- ccxt/zonda.py +2 -1
- {ccxt-3.0.86.dist-info → ccxt-3.0.87.dist-info}/METADATA +4 -4
- ccxt-3.0.87.dist-info/RECORD +355 -0
- ccxt-3.0.86.dist-info/RECORD +0 -355
- {ccxt-3.0.86.dist-info → ccxt-3.0.87.dist-info}/WHEEL +0 -0
- {ccxt-3.0.86.dist-info → ccxt-3.0.87.dist-info}/top_level.txt +0 -0
ccxt/coinbaseprime.py
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.coinbasepro import coinbasepro
|
7
|
+
from ccxt.abstract.coinbaseprime import ImplicitAPI
|
7
8
|
|
8
9
|
|
9
|
-
class coinbaseprime(coinbasepro):
|
10
|
+
class coinbaseprime(coinbasepro, ImplicitAPI):
|
10
11
|
|
11
12
|
def describe(self):
|
12
13
|
return self.deep_extend(super(coinbaseprime, self).describe(), {
|
ccxt/coinbasepro.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinbasepro import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -23,7 +24,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
23
24
|
from ccxt.base.precise import Precise
|
24
25
|
|
25
26
|
|
26
|
-
class coinbasepro(Exchange):
|
27
|
+
class coinbasepro(Exchange, ImplicitAPI):
|
27
28
|
|
28
29
|
def describe(self):
|
29
30
|
return self.deep_extend(super(coinbasepro, self).describe(), {
|
@@ -1672,8 +1673,8 @@ class coinbasepro(Exchange):
|
|
1672
1673
|
raise ExchangeError(self.id + ' ' + body)
|
1673
1674
|
return None
|
1674
1675
|
|
1675
|
-
def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}
|
1676
|
-
response = self.fetch2(path, api, method, params, headers, body, config
|
1676
|
+
def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}):
|
1677
|
+
response = self.fetch2(path, api, method, params, headers, body, config)
|
1677
1678
|
if not isinstance(response, str):
|
1678
1679
|
if 'message' in response:
|
1679
1680
|
raise ExchangeError(self.id + ' ' + self.json(response))
|
ccxt/coincheck.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coincheck import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -13,7 +14,7 @@ from ccxt.base.errors import AuthenticationError
|
|
13
14
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
14
15
|
|
15
16
|
|
16
|
-
class coincheck(Exchange):
|
17
|
+
class coincheck(Exchange, ImplicitAPI):
|
17
18
|
|
18
19
|
def describe(self):
|
19
20
|
return self.deep_extend(super(coincheck, self).describe(), {
|
ccxt/coinex.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinex import ImplicitAPI
|
7
8
|
from ccxt.base.types import OrderSide
|
8
9
|
from typing import Optional
|
9
10
|
from typing import List
|
@@ -24,7 +25,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
24
25
|
from ccxt.base.precise import Precise
|
25
26
|
|
26
27
|
|
27
|
-
class coinex(Exchange):
|
28
|
+
class coinex(Exchange, ImplicitAPI):
|
28
29
|
|
29
30
|
def describe(self):
|
30
31
|
return self.deep_extend(super(coinex, self).describe(), {
|
@@ -3578,7 +3579,7 @@ class coinex(Exchange):
|
|
3578
3579
|
rates.append({
|
3579
3580
|
'info': entry,
|
3580
3581
|
'symbol': symbolInner,
|
3581
|
-
'fundingRate': self.
|
3582
|
+
'fundingRate': self.safe_number(entry, 'funding_rate'),
|
3582
3583
|
'timestamp': timestamp,
|
3583
3584
|
'datetime': self.iso8601(timestamp),
|
3584
3585
|
})
|
ccxt/coinfalcon.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinfalcon import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -16,7 +17,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
16
17
|
from ccxt.base.precise import Precise
|
17
18
|
|
18
19
|
|
19
|
-
class coinfalcon(Exchange):
|
20
|
+
class coinfalcon(Exchange, ImplicitAPI):
|
20
21
|
|
21
22
|
def describe(self):
|
22
23
|
return self.deep_extend(super(coinfalcon, self).describe(), {
|
ccxt/coinmate.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinmate import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -18,7 +19,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
18
19
|
from ccxt.base.precise import Precise
|
19
20
|
|
20
21
|
|
21
|
-
class coinmate(Exchange):
|
22
|
+
class coinmate(Exchange, ImplicitAPI):
|
22
23
|
|
23
24
|
def describe(self):
|
24
25
|
return self.deep_extend(super(coinmate, self).describe(), {
|
ccxt/coinone.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinone import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -18,7 +19,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
18
19
|
from ccxt.base.precise import Precise
|
19
20
|
|
20
21
|
|
21
|
-
class coinone(Exchange):
|
22
|
+
class coinone(Exchange, ImplicitAPI):
|
22
23
|
|
23
24
|
def describe(self):
|
24
25
|
return self.deep_extend(super(coinone, self).describe(), {
|
ccxt/coinsph.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinsph import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -28,7 +29,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
28
29
|
from ccxt.base.precise import Precise
|
29
30
|
|
30
31
|
|
31
|
-
class coinsph(Exchange):
|
32
|
+
class coinsph(Exchange, ImplicitAPI):
|
32
33
|
|
33
34
|
def describe(self):
|
34
35
|
return self.deep_extend(super(coinsph, self).describe(), {
|
@@ -387,7 +388,7 @@ class coinsph(Exchange):
|
|
387
388
|
},
|
388
389
|
})
|
389
390
|
|
390
|
-
def calculate_rate_limiter_cost(self, api, method, path, params, config={}
|
391
|
+
def calculate_rate_limiter_cost(self, api, method, path, params, config={}):
|
391
392
|
if ('noSymbol' in config) and not ('symbol' in params):
|
392
393
|
return config['noSymbol']
|
393
394
|
elif ('noSymbolAndNoSymbols' in config) and not ('symbol' in params) and not ('symbols' in params):
|
ccxt/coinspot.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.coinspot import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -13,7 +14,7 @@ from ccxt.base.errors import ArgumentsRequired
|
|
13
14
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
14
15
|
|
15
16
|
|
16
|
-
class coinspot(Exchange):
|
17
|
+
class coinspot(Exchange, ImplicitAPI):
|
17
18
|
|
18
19
|
def describe(self):
|
19
20
|
return self.deep_extend(super(coinspot, self).describe(), {
|
ccxt/cryptocom.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.cryptocom import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -25,7 +26,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
25
26
|
from ccxt.base.precise import Precise
|
26
27
|
|
27
28
|
|
28
|
-
class cryptocom(Exchange):
|
29
|
+
class cryptocom(Exchange, ImplicitAPI):
|
29
30
|
|
30
31
|
def describe(self):
|
31
32
|
return self.deep_extend(super(cryptocom, self).describe(), {
|
ccxt/currencycom.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.currencycom import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -23,7 +24,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
23
24
|
from ccxt.base.precise import Precise
|
24
25
|
|
25
26
|
|
26
|
-
class currencycom(Exchange):
|
27
|
+
class currencycom(Exchange, ImplicitAPI):
|
27
28
|
|
28
29
|
def describe(self):
|
29
30
|
return self.deep_extend(super(currencycom, self).describe(), {
|
ccxt/delta.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.delta import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -21,7 +22,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
21
22
|
from ccxt.base.precise import Precise
|
22
23
|
|
23
24
|
|
24
|
-
class delta(Exchange):
|
25
|
+
class delta(Exchange, ImplicitAPI):
|
25
26
|
|
26
27
|
def describe(self):
|
27
28
|
return self.deep_extend(super(delta, self).describe(), {
|
ccxt/deribit.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.deribit import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -25,7 +26,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
25
26
|
from ccxt.base.precise import Precise
|
26
27
|
|
27
28
|
|
28
|
-
class deribit(Exchange):
|
29
|
+
class deribit(Exchange, ImplicitAPI):
|
29
30
|
|
30
31
|
def describe(self):
|
31
32
|
return self.deep_extend(super(deribit, self).describe(), {
|
ccxt/digifinex.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.digifinex import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
import json
|
9
10
|
from ccxt.base.types import OrderSide
|
@@ -29,7 +30,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
29
30
|
from ccxt.base.precise import Precise
|
30
31
|
|
31
32
|
|
32
|
-
class digifinex(Exchange):
|
33
|
+
class digifinex(Exchange, ImplicitAPI):
|
33
34
|
|
34
35
|
def describe(self):
|
35
36
|
return self.deep_extend(super(digifinex, self).describe(), {
|
@@ -2834,7 +2835,7 @@ class digifinex(Exchange):
|
|
2834
2835
|
'estimatedSettlePrice': None,
|
2835
2836
|
'timestamp': None,
|
2836
2837
|
'datetime': None,
|
2837
|
-
'fundingRate': self.
|
2838
|
+
'fundingRate': self.safe_number(contract, 'funding_rate'),
|
2838
2839
|
'fundingTimestamp': timestamp,
|
2839
2840
|
'fundingDatetime': self.iso8601(timestamp),
|
2840
2841
|
'nextFundingRate': self.safe_string(contract, 'next_funding_rate'),
|
@@ -2893,7 +2894,7 @@ class digifinex(Exchange):
|
|
2893
2894
|
rates.append({
|
2894
2895
|
'info': entry,
|
2895
2896
|
'symbol': symbolInner,
|
2896
|
-
'fundingRate': self.
|
2897
|
+
'fundingRate': self.safe_number(entry, 'rate'),
|
2897
2898
|
'timestamp': timestamp,
|
2898
2899
|
'datetime': self.iso8601(timestamp),
|
2899
2900
|
})
|
ccxt/exmo.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.exmo import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -23,7 +24,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
23
24
|
from ccxt.base.precise import Precise
|
24
25
|
|
25
26
|
|
26
|
-
class exmo(Exchange):
|
27
|
+
class exmo(Exchange, ImplicitAPI):
|
27
28
|
|
28
29
|
def describe(self):
|
29
30
|
return self.deep_extend(super(exmo, self).describe(), {
|
ccxt/fmfwio.py
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.hitbtc import hitbtc
|
7
|
+
from ccxt.abstract.fmfwio import ImplicitAPI
|
7
8
|
|
8
9
|
|
9
|
-
class fmfwio(hitbtc):
|
10
|
+
class fmfwio(hitbtc, ImplicitAPI):
|
10
11
|
|
11
12
|
def describe(self):
|
12
13
|
return self.deep_extend(super(fmfwio, self).describe(), {
|
ccxt/gate.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.gate import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -28,7 +29,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
28
29
|
from ccxt.base.precise import Precise
|
29
30
|
|
30
31
|
|
31
|
-
class gate(Exchange):
|
32
|
+
class gate(Exchange, ImplicitAPI):
|
32
33
|
|
33
34
|
def describe(self):
|
34
35
|
return self.deep_extend(super(gate, self).describe(), {
|
ccxt/gateio.py
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.gate import gate
|
7
|
+
from ccxt.abstract.gateio import ImplicitAPI
|
7
8
|
|
8
9
|
|
9
|
-
class gateio(gate):
|
10
|
+
class gateio(gate, ImplicitAPI):
|
10
11
|
|
11
12
|
def describe(self):
|
12
13
|
return self.deep_extend(super(gateio, self).describe(), {
|
ccxt/gemini.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.gemini import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -25,7 +26,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
25
26
|
from ccxt.base.precise import Precise
|
26
27
|
|
27
28
|
|
28
|
-
class gemini(Exchange):
|
29
|
+
class gemini(Exchange, ImplicitAPI):
|
29
30
|
|
30
31
|
def describe(self):
|
31
32
|
return self.deep_extend(super(gemini, self).describe(), {
|
ccxt/hitbtc.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.hitbtc import ImplicitAPI
|
7
8
|
from ccxt.base.types import OrderSide
|
8
9
|
from typing import Optional
|
9
10
|
from typing import List
|
@@ -21,7 +22,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
21
22
|
from ccxt.base.precise import Precise
|
22
23
|
|
23
24
|
|
24
|
-
class hitbtc(Exchange):
|
25
|
+
class hitbtc(Exchange, ImplicitAPI):
|
25
26
|
|
26
27
|
def describe(self):
|
27
28
|
return self.deep_extend(super(hitbtc, self).describe(), {
|
ccxt/hitbtc3.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.hitbtc3 import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -26,7 +27,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
26
27
|
from ccxt.base.precise import Precise
|
27
28
|
|
28
29
|
|
29
|
-
class hitbtc3(Exchange):
|
30
|
+
class hitbtc3(Exchange, ImplicitAPI):
|
30
31
|
|
31
32
|
def describe(self):
|
32
33
|
return self.deep_extend(super(hitbtc3, self).describe(), {
|
ccxt/hollaex.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.hollaex import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -19,7 +20,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
19
20
|
from ccxt.base.precise import Precise
|
20
21
|
|
21
22
|
|
22
|
-
class hollaex(Exchange):
|
23
|
+
class hollaex(Exchange, ImplicitAPI):
|
23
24
|
|
24
25
|
def describe(self):
|
25
26
|
return self.deep_extend(super(hollaex, self).describe(), {
|
ccxt/huobi.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.huobi import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -29,7 +30,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
29
30
|
from ccxt.base.precise import Precise
|
30
31
|
|
31
32
|
|
32
|
-
class huobi(Exchange):
|
33
|
+
class huobi(Exchange, ImplicitAPI):
|
33
34
|
|
34
35
|
def describe(self):
|
35
36
|
return self.deep_extend(super(huobi, self).describe(), {
|
ccxt/huobijp.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.huobijp import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -26,7 +27,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
26
27
|
from ccxt.base.precise import Precise
|
27
28
|
|
28
29
|
|
29
|
-
class huobijp(Exchange):
|
30
|
+
class huobijp(Exchange, ImplicitAPI):
|
30
31
|
|
31
32
|
def describe(self):
|
32
33
|
return self.deep_extend(super(huobijp, self).describe(), {
|
ccxt/huobipro.py
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.huobi import huobi
|
7
|
+
from ccxt.abstract.huobipro import ImplicitAPI
|
7
8
|
|
8
9
|
|
9
|
-
class huobipro(huobi):
|
10
|
+
class huobipro(huobi, ImplicitAPI):
|
10
11
|
|
11
12
|
def describe(self):
|
12
13
|
# self is an alias for backward-compatibility
|
ccxt/idex.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.idex import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -25,7 +26,7 @@ from ccxt.base.decimal_to_precision import PAD_WITH_ZERO
|
|
25
26
|
from ccxt.base.precise import Precise
|
26
27
|
|
27
28
|
|
28
|
-
class idex(Exchange):
|
29
|
+
class idex(Exchange, ImplicitAPI):
|
29
30
|
|
30
31
|
def describe(self):
|
31
32
|
return self.deep_extend(super(idex, self).describe(), {
|
@@ -1579,7 +1580,7 @@ class idex(Exchange):
|
|
1579
1580
|
'fee': fee,
|
1580
1581
|
}
|
1581
1582
|
|
1582
|
-
def calculate_rate_limiter_cost(self, api, method, path, params, config={}
|
1583
|
+
def calculate_rate_limiter_cost(self, api, method, path, params, config={}):
|
1583
1584
|
hasApiKey = (self.apiKey is not None)
|
1584
1585
|
hasSecret = (self.secret is not None)
|
1585
1586
|
hasWalletAddress = (self.walletAddress is not None)
|
ccxt/independentreserve.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.independentreserve import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -11,7 +12,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
11
12
|
from ccxt.base.precise import Precise
|
12
13
|
|
13
14
|
|
14
|
-
class independentreserve(Exchange):
|
15
|
+
class independentreserve(Exchange, ImplicitAPI):
|
15
16
|
|
16
17
|
def describe(self):
|
17
18
|
return self.deep_extend(super(independentreserve, self).describe(), {
|
ccxt/indodax.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.indodax import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -18,7 +19,7 @@ from ccxt.base.errors import AuthenticationError
|
|
18
19
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
19
20
|
|
20
21
|
|
21
|
-
class indodax(Exchange):
|
22
|
+
class indodax(Exchange, ImplicitAPI):
|
22
23
|
|
23
24
|
def describe(self):
|
24
25
|
return self.deep_extend(super(indodax, self).describe(), {
|
ccxt/kraken.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.kraken import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -31,7 +32,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
31
32
|
from ccxt.base.precise import Precise
|
32
33
|
|
33
34
|
|
34
|
-
class kraken(Exchange):
|
35
|
+
class kraken(Exchange, ImplicitAPI):
|
35
36
|
|
36
37
|
def describe(self):
|
37
38
|
return self.deep_extend(super(kraken, self).describe(), {
|
ccxt/krakenfutures.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.krakenfutures import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
from ccxt.base.types import OrderSide
|
9
10
|
from typing import Optional
|
@@ -26,7 +27,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
26
27
|
from ccxt.base.precise import Precise
|
27
28
|
|
28
29
|
|
29
|
-
class krakenfutures(Exchange):
|
30
|
+
class krakenfutures(Exchange, ImplicitAPI):
|
30
31
|
|
31
32
|
def describe(self):
|
32
33
|
return self.deep_extend(super(krakenfutures, self).describe(), {
|
ccxt/kucoin.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
5
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
|
+
from ccxt.abstract.kucoin import ImplicitAPI
|
7
8
|
import hashlib
|
8
9
|
import math
|
9
10
|
import json
|
@@ -28,7 +29,7 @@ from ccxt.base.decimal_to_precision import TICK_SIZE
|
|
28
29
|
from ccxt.base.precise import Precise
|
29
30
|
|
30
31
|
|
31
|
-
class kucoin(Exchange):
|
32
|
+
class kucoin(Exchange, ImplicitAPI):
|
32
33
|
|
33
34
|
def describe(self):
|
34
35
|
return self.deep_extend(super(kucoin, self).describe(), {
|
@@ -2946,7 +2947,7 @@ class kucoin(Exchange):
|
|
2946
2947
|
items = self.safe_value(data, 'items')
|
2947
2948
|
return self.parse_ledger(items, currency, since, limit)
|
2948
2949
|
|
2949
|
-
def calculate_rate_limiter_cost(self, api, method, path, params, config={}
|
2950
|
+
def calculate_rate_limiter_cost(self, api, method, path, params, config={}):
|
2950
2951
|
versions = self.safe_value(self.options, 'versions', {})
|
2951
2952
|
apiVersions = self.safe_value(versions, api, {})
|
2952
2953
|
methodVersions = self.safe_value(apiVersions, method, {})
|