ccxt 4.2.88__py2.py3-none-any.whl → 4.2.90__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/abstract/bingx.py +2 -0
- ccxt/abstract/bybit.py +2 -0
- ccxt/ascendex.py +6 -3
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ascendex.py +6 -3
- ccxt/async_support/base/exchange.py +15 -2
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +88 -14
- ccxt/async_support/bingx.py +96 -3
- ccxt/async_support/bit2c.py +2 -2
- ccxt/async_support/bitbank.py +2 -2
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +4 -3
- ccxt/async_support/bitflyer.py +4 -2
- ccxt/async_support/bitget.py +12 -5
- ccxt/async_support/bitmart.py +6 -4
- ccxt/async_support/bitmex.py +3 -2
- ccxt/async_support/bitopro.py +3 -3
- ccxt/async_support/bitrue.py +3 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +89 -97
- 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 +4 -2
- ccxt/async_support/bybit.py +57 -5
- ccxt/async_support/cex.py +3 -3
- ccxt/async_support/coinbase.py +42 -22
- ccxt/async_support/coinbaseinternational.py +3 -2
- ccxt/async_support/coinbasepro.py +3 -3
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +101 -13
- 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 +6 -4
- ccxt/async_support/cryptocom.py +1 -0
- ccxt/async_support/currencycom.py +3 -3
- ccxt/async_support/delta.py +3 -2
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +7 -4
- ccxt/async_support/exmo.py +4 -3
- ccxt/async_support/gate.py +8 -4
- ccxt/async_support/gemini.py +13 -12
- ccxt/async_support/hitbtc.py +8 -5
- ccxt/async_support/hollaex.py +3 -3
- ccxt/async_support/htx.py +7 -4
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/hyperliquid.py +3 -2
- ccxt/async_support/idex.py +3 -3
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/kraken.py +3 -3
- ccxt/async_support/kucoin.py +43 -18
- ccxt/async_support/kucoinfutures.py +32 -4
- ccxt/async_support/kuna.py +2 -2
- ccxt/async_support/latoken.py +7 -3
- ccxt/async_support/lbank.py +7 -5
- ccxt/async_support/luno.py +4 -2
- ccxt/async_support/lykke.py +2 -2
- ccxt/async_support/mexc.py +57 -9
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/oceanex.py +2 -2
- ccxt/async_support/okcoin.py +2 -2
- ccxt/async_support/okx.py +149 -12
- ccxt/async_support/onetrading.py +3 -3
- ccxt/async_support/phemex.py +3 -2
- ccxt/async_support/poloniex.py +3 -3
- ccxt/async_support/probit.py +2 -2
- ccxt/async_support/timex.py +6 -4
- ccxt/async_support/upbit.py +2 -2
- ccxt/async_support/wazirx.py +2 -2
- ccxt/async_support/whitebit.py +3 -3
- ccxt/async_support/woo.py +4 -3
- ccxt/async_support/yobit.py +2 -2
- ccxt/base/exchange.py +65 -12
- ccxt/base/types.py +33 -0
- ccxt/bigone.py +2 -2
- ccxt/binance.py +88 -14
- ccxt/bingx.py +96 -3
- ccxt/bit2c.py +2 -2
- ccxt/bitbank.py +2 -2
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +4 -3
- ccxt/bitflyer.py +4 -2
- ccxt/bitget.py +12 -5
- ccxt/bitmart.py +6 -4
- ccxt/bitmex.py +3 -2
- ccxt/bitopro.py +3 -3
- ccxt/bitrue.py +3 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +89 -97
- ccxt/bitteam.py +2 -2
- ccxt/bitvavo.py +3 -3
- ccxt/bl3p.py +2 -2
- ccxt/blockchaincom.py +2 -2
- ccxt/blofin.py +4 -2
- ccxt/bybit.py +57 -5
- ccxt/cex.py +3 -3
- ccxt/coinbase.py +42 -22
- ccxt/coinbaseinternational.py +3 -2
- ccxt/coinbasepro.py +3 -3
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +101 -13
- ccxt/coinlist.py +3 -3
- ccxt/coinmate.py +2 -2
- ccxt/coinmetro.py +2 -2
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +6 -4
- ccxt/cryptocom.py +1 -0
- ccxt/currencycom.py +3 -3
- ccxt/delta.py +3 -2
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +7 -4
- ccxt/exmo.py +4 -3
- ccxt/gate.py +8 -4
- ccxt/gemini.py +13 -12
- ccxt/hitbtc.py +8 -5
- ccxt/hollaex.py +3 -3
- ccxt/htx.py +7 -4
- ccxt/huobijp.py +2 -2
- ccxt/hyperliquid.py +3 -2
- ccxt/idex.py +3 -3
- ccxt/independentreserve.py +2 -2
- ccxt/kraken.py +3 -3
- ccxt/kucoin.py +43 -18
- ccxt/kucoinfutures.py +32 -4
- ccxt/kuna.py +2 -2
- ccxt/latoken.py +7 -3
- ccxt/lbank.py +7 -5
- ccxt/luno.py +4 -2
- ccxt/lykke.py +2 -2
- ccxt/mexc.py +57 -9
- ccxt/ndax.py +2 -2
- ccxt/oceanex.py +2 -2
- ccxt/okcoin.py +2 -2
- ccxt/okx.py +149 -12
- ccxt/onetrading.py +3 -3
- ccxt/phemex.py +3 -2
- ccxt/poloniex.py +3 -3
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitget.py +2 -0
- ccxt/pro/bitvavo.py +2 -2
- ccxt/probit.py +2 -2
- ccxt/timex.py +6 -4
- ccxt/upbit.py +2 -2
- ccxt/wazirx.py +2 -2
- ccxt/whitebit.py +3 -3
- ccxt/woo.py +4 -3
- ccxt/yobit.py +2 -2
- {ccxt-4.2.88.dist-info → ccxt-4.2.90.dist-info}/METADATA +4 -4
- {ccxt-4.2.88.dist-info → ccxt-4.2.90.dist-info}/RECORD +156 -156
- {ccxt-4.2.88.dist-info → ccxt-4.2.90.dist-info}/WHEEL +0 -0
- {ccxt-4.2.88.dist-info → ccxt-4.2.90.dist-info}/top_level.txt +0 -0
ccxt/async_support/coinsph.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.coinsph 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, Transaction
|
9
|
+
from ccxt.base.types import Balances, Currency, 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 PermissionDenied
|
@@ -1421,7 +1421,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1421
1421
|
}
|
1422
1422
|
return self.safe_string(statuses, status, status)
|
1423
1423
|
|
1424
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
1424
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1425
1425
|
"""
|
1426
1426
|
fetch the trading fees for a market
|
1427
1427
|
:see: https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
@@ -1447,7 +1447,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1447
1447
|
tradingFee = self.safe_value(response, 0, {})
|
1448
1448
|
return self.parse_trading_fee(tradingFee, market)
|
1449
1449
|
|
1450
|
-
async def fetch_trading_fees(self, params={}):
|
1450
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1451
1451
|
"""
|
1452
1452
|
fetch the trading fees for multiple markets
|
1453
1453
|
:see: https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
@@ -1477,7 +1477,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1477
1477
|
result[symbol] = fee
|
1478
1478
|
return result
|
1479
1479
|
|
1480
|
-
def parse_trading_fee(self, fee, market: Market = None):
|
1480
|
+
def parse_trading_fee(self, fee, market: Market = None) -> TradingFeeInterface:
|
1481
1481
|
#
|
1482
1482
|
# {
|
1483
1483
|
# "symbol": "ETHUSDT",
|
@@ -1493,6 +1493,8 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1493
1493
|
'symbol': symbol,
|
1494
1494
|
'maker': self.safe_number(fee, 'makerCommission'),
|
1495
1495
|
'taker': self.safe_number(fee, 'takerCommission'),
|
1496
|
+
'percentage': None,
|
1497
|
+
'tierBased': None,
|
1496
1498
|
}
|
1497
1499
|
|
1498
1500
|
async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
|
ccxt/async_support/cryptocom.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.currencycom import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currency, Int, Leverage, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
|
+
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, 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 ArgumentsRequired
|
@@ -326,7 +326,7 @@ class currencycom(Exchange, ImplicitAPI):
|
|
326
326
|
#
|
327
327
|
return self.safe_integer(response, 'serverTime')
|
328
328
|
|
329
|
-
async def fetch_currencies(self, params={}):
|
329
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
330
330
|
"""
|
331
331
|
fetches all available currencies on an exchange
|
332
332
|
:see: https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getCurrenciesUsingGET
|
@@ -628,7 +628,7 @@ class currencycom(Exchange, ImplicitAPI):
|
|
628
628
|
})
|
629
629
|
return result
|
630
630
|
|
631
|
-
async def fetch_trading_fees(self, params={}):
|
631
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
632
632
|
"""
|
633
633
|
fetch the trading fees for multiple markets
|
634
634
|
:see: https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
ccxt/async_support/delta.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.delta import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Greeks, Int, Leverage, MarginMode, MarginModification, Market, MarketInterface, Num, Option, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, Greeks, Int, Leverage, MarginMode, MarginModification, Market, MarketInterface, Num, Option, Order, OrderBook, OrderSide, OrderType, Position, 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
|
@@ -409,7 +409,7 @@ class delta(Exchange, ImplicitAPI):
|
|
409
409
|
'info': response,
|
410
410
|
}
|
411
411
|
|
412
|
-
async def fetch_currencies(self, params={}):
|
412
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
413
413
|
"""
|
414
414
|
fetches all available currencies on an exchange
|
415
415
|
:see: https://docs.delta.exchange/#get-list-of-all-assets
|
@@ -2566,6 +2566,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2566
2566
|
'info': data,
|
2567
2567
|
'symbol': market['symbol'],
|
2568
2568
|
'type': None,
|
2569
|
+
'marginMode': 'isolated',
|
2569
2570
|
'amount': None,
|
2570
2571
|
'total': self.safe_number(data, 'margin'),
|
2571
2572
|
'code': None,
|
ccxt/async_support/deribit.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.deribit import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Account, Balances, Currency, Greeks, Int, Market, MarketInterface, Num, Option, OptionChain, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Account, Balances, Currencies, Currency, Greeks, Int, Market, MarketInterface, Num, Option, OptionChain, 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 PermissionDenied
|
@@ -518,7 +518,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
518
518
|
#
|
519
519
|
return self.safe_integer(response, 'result')
|
520
520
|
|
521
|
-
async def fetch_currencies(self, params={}):
|
521
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
522
522
|
"""
|
523
523
|
fetches all available currencies on an exchange
|
524
524
|
:see: https://docs.deribit.com/#public-get_currencies
|
@@ -1435,7 +1435,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
1435
1435
|
trades = self.safe_list(result, 'trades', [])
|
1436
1436
|
return self.parse_trades(trades, market, since, limit)
|
1437
1437
|
|
1438
|
-
async def fetch_trading_fees(self, params={}):
|
1438
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1439
1439
|
"""
|
1440
1440
|
fetch the trading fees for multiple markets
|
1441
1441
|
:see: https://docs.deribit.com/#private-get_account_summary
|
ccxt/async_support/digifinex.py
CHANGED
@@ -8,7 +8,7 @@ from ccxt.abstract.digifinex import ImplicitAPI
|
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
10
|
import json
|
11
|
-
from ccxt.base.types import Balances, Currency, Int, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
11
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
|
12
12
|
from typing import List
|
13
13
|
from ccxt.base.errors import ExchangeError
|
14
14
|
from ccxt.base.errors import PermissionDenied
|
@@ -366,7 +366,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
366
366
|
},
|
367
367
|
})
|
368
368
|
|
369
|
-
async def fetch_currencies(self, params={}):
|
369
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
370
370
|
"""
|
371
371
|
fetches all available currencies on an exchange
|
372
372
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3076,7 +3076,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3076
3076
|
sorted = self.sort_by(rates, 'timestamp')
|
3077
3077
|
return self.filter_by_symbol_since_limit(sorted, symbol, since, limit)
|
3078
3078
|
|
3079
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
3079
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
3080
3080
|
"""
|
3081
3081
|
fetch the trading fees for a market
|
3082
3082
|
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
@@ -3105,7 +3105,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3105
3105
|
data = self.safe_value(response, 'data', {})
|
3106
3106
|
return self.parse_trading_fee(data, market)
|
3107
3107
|
|
3108
|
-
def parse_trading_fee(self, fee, market: Market = None):
|
3108
|
+
def parse_trading_fee(self, fee, market: Market = None) -> TradingFeeInterface:
|
3109
3109
|
#
|
3110
3110
|
# {
|
3111
3111
|
# "instrument_id": "BTCUSDTPERP",
|
@@ -3120,6 +3120,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3120
3120
|
'symbol': symbol,
|
3121
3121
|
'maker': self.safe_number(fee, 'maker_fee_rate'),
|
3122
3122
|
'taker': self.safe_number(fee, 'taker_fee_rate'),
|
3123
|
+
'percentage': None,
|
3124
|
+
'tierBased': None,
|
3123
3125
|
}
|
3124
3126
|
|
3125
3127
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
@@ -3849,6 +3851,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3849
3851
|
'info': data,
|
3850
3852
|
'symbol': self.safe_symbol(marketId, market, None, 'swap'),
|
3851
3853
|
'type': 'add' if (rawType == 1) else 'reduce',
|
3854
|
+
'marginMode': 'isolated',
|
3852
3855
|
'amount': self.safe_number(data, 'amount'),
|
3853
3856
|
'total': None,
|
3854
3857
|
'code': market['settle'],
|
ccxt/async_support/exmo.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.exmo import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, MarginModification, 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 PermissionDenied
|
@@ -273,6 +273,7 @@ class exmo(Exchange, ImplicitAPI):
|
|
273
273
|
'info': data,
|
274
274
|
'symbol': self.safe_symbol(None, market),
|
275
275
|
'type': None,
|
276
|
+
'marginMode': 'isolated',
|
276
277
|
'amount': None,
|
277
278
|
'total': None,
|
278
279
|
'code': self.safe_value(market, 'quote'),
|
@@ -303,7 +304,7 @@ class exmo(Exchange, ImplicitAPI):
|
|
303
304
|
"""
|
304
305
|
return await self.modify_margin_helper(symbol, amount, 'add', params)
|
305
306
|
|
306
|
-
async def fetch_trading_fees(self, params={}):
|
307
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
307
308
|
"""
|
308
309
|
fetch the trading fees for multiple markets
|
309
310
|
:see: https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
|
@@ -573,7 +574,7 @@ class exmo(Exchange, ImplicitAPI):
|
|
573
574
|
}
|
574
575
|
return self.assign_default_deposit_withdraw_fees(result)
|
575
576
|
|
576
|
-
async def fetch_currencies(self, params={}):
|
577
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
577
578
|
"""
|
578
579
|
fetches all available currencies on an exchange
|
579
580
|
:see: https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
|
ccxt/async_support/gate.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.gate import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Balances, Currency, FundingHistory, Greeks, Int, Leverage, Leverages, MarginModification, Market, MarketInterface, Num, Option, OptionChain, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Balances, Currencies, Currency, FundingHistory, Greeks, Int, Leverage, Leverages, MarginModification, Market, MarketInterface, Num, Option, OptionChain, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import PermissionDenied
|
@@ -139,6 +139,7 @@ class gate(Exchange, ImplicitAPI):
|
|
139
139
|
'fetchLeverages': True,
|
140
140
|
'fetchLeverageTiers': True,
|
141
141
|
'fetchLiquidations': True,
|
142
|
+
'fetchMarginAdjustmentHistory': False,
|
142
143
|
'fetchMarginMode': False,
|
143
144
|
'fetchMarketLeverageTiers': True,
|
144
145
|
'fetchMarkets': True,
|
@@ -1521,7 +1522,7 @@ class gate(Exchange, ImplicitAPI):
|
|
1521
1522
|
defaultSettle = ['usdt'] if (type == 'swap') else ['btc']
|
1522
1523
|
return self.safe_value(fetchMarketsContractOptions, 'settlementCurrencies', defaultSettle)
|
1523
1524
|
|
1524
|
-
async def fetch_currencies(self, params={}):
|
1525
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
1525
1526
|
"""
|
1526
1527
|
fetches all available currencies on an exchange
|
1527
1528
|
:see: https://www.gate.io/docs/developers/apiv4/en/#list-all-currencies-details
|
@@ -1929,7 +1930,7 @@ class gate(Exchange, ImplicitAPI):
|
|
1929
1930
|
'network': network,
|
1930
1931
|
}
|
1931
1932
|
|
1932
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
1933
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1933
1934
|
"""
|
1934
1935
|
fetch the trading fees for a market
|
1935
1936
|
:see: https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
@@ -1959,7 +1960,7 @@ class gate(Exchange, ImplicitAPI):
|
|
1959
1960
|
#
|
1960
1961
|
return self.parse_trading_fee(response, market)
|
1961
1962
|
|
1962
|
-
async def fetch_trading_fees(self, params={}):
|
1963
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1963
1964
|
"""
|
1964
1965
|
fetch the trading fees for multiple markets
|
1965
1966
|
:see: https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
@@ -2018,6 +2019,8 @@ class gate(Exchange, ImplicitAPI):
|
|
2018
2019
|
'symbol': self.safe_string(market, 'symbol'),
|
2019
2020
|
'maker': self.safe_number(info, makerKey),
|
2020
2021
|
'taker': self.safe_number(info, takerKey),
|
2022
|
+
'percentage': None,
|
2023
|
+
'tierBased': None,
|
2021
2024
|
}
|
2022
2025
|
|
2023
2026
|
async def fetch_transaction_fees(self, codes: List[str] = None, params={}):
|
@@ -5686,6 +5689,7 @@ class gate(Exchange, ImplicitAPI):
|
|
5686
5689
|
'info': data,
|
5687
5690
|
'symbol': market['symbol'],
|
5688
5691
|
'type': None,
|
5692
|
+
'marginMode': 'isolated',
|
5689
5693
|
'amount': None,
|
5690
5694
|
'total': total,
|
5691
5695
|
'code': self.safe_value(market, 'quote'),
|
ccxt/async_support/gemini.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.gemini import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import PermissionDenied
|
@@ -122,6 +122,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
122
122
|
# https://github.com/ccxt/ccxt/issues/7874
|
123
123
|
# https://github.com/ccxt/ccxt/issues/7894
|
124
124
|
'web': 'https://docs.gemini.com',
|
125
|
+
'webExchange': 'https://exchange.gemini.com',
|
125
126
|
},
|
126
127
|
'fees': [
|
127
128
|
'https://gemini.com/api-fee-schedule',
|
@@ -303,7 +304,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
303
304
|
},
|
304
305
|
})
|
305
306
|
|
306
|
-
async def fetch_currencies(self, params={}):
|
307
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
307
308
|
"""
|
308
309
|
fetches all available currencies on an exchange
|
309
310
|
:param dict [params]: extra parameters specific to the endpoint
|
@@ -630,7 +631,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
630
631
|
quoteId = None
|
631
632
|
settleId = None
|
632
633
|
tickSize = None
|
633
|
-
|
634
|
+
amountPrecision = None
|
634
635
|
minSize = None
|
635
636
|
status = None
|
636
637
|
swap = False
|
@@ -641,9 +642,9 @@ class gemini(Exchange, ImplicitAPI):
|
|
641
642
|
isArray = (isinstance(response, list))
|
642
643
|
if not isString and not isArray:
|
643
644
|
marketId = self.safe_string_lower(response, 'symbol')
|
645
|
+
amountPrecision = self.safe_number(response, 'tick_size') # right, exchange has an imperfect naming and self turns out to be an amount-precision
|
646
|
+
tickSize = self.safe_number(response, 'quote_increment') # self is tick-size actually
|
644
647
|
minSize = self.safe_number(response, 'min_order_size')
|
645
|
-
tickSize = self.safe_number(response, 'tick_size')
|
646
|
-
increment = self.safe_number(response, 'quote_increment')
|
647
648
|
status = self.parse_market_active(self.safe_string(response, 'status'))
|
648
649
|
baseId = self.safe_string(response, 'base_currency')
|
649
650
|
quoteId = self.safe_string(response, 'quote_currency')
|
@@ -654,9 +655,9 @@ class gemini(Exchange, ImplicitAPI):
|
|
654
655
|
marketId = response
|
655
656
|
else:
|
656
657
|
marketId = self.safe_string_lower(response, 0)
|
657
|
-
|
658
|
-
|
659
|
-
|
658
|
+
tickSize = self.parse_number(self.parse_precision(self.safe_string(response, 1))) # priceTickDecimalPlaces
|
659
|
+
amountPrecision = self.parse_number(self.parse_precision(self.safe_string(response, 2))) # quantityTickDecimalPlaces
|
660
|
+
minSize = self.safe_number(response, 3) # quantityMinimum
|
660
661
|
marketIdUpper = marketId.upper()
|
661
662
|
isPerp = (marketIdUpper.find('PERP') >= 0)
|
662
663
|
marketIdWithoutPerp = marketIdUpper.replace('PERP', '')
|
@@ -705,8 +706,8 @@ class gemini(Exchange, ImplicitAPI):
|
|
705
706
|
'strike': None,
|
706
707
|
'optionType': None,
|
707
708
|
'precision': {
|
708
|
-
'price':
|
709
|
-
'amount':
|
709
|
+
'price': tickSize,
|
710
|
+
'amount': amountPrecision,
|
710
711
|
},
|
711
712
|
'limits': {
|
712
713
|
'leverage': {
|
@@ -1049,7 +1050,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
1049
1050
|
result[code] = account
|
1050
1051
|
return self.safe_balance(result)
|
1051
1052
|
|
1052
|
-
async def fetch_trading_fees(self, params={}):
|
1053
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1053
1054
|
"""
|
1054
1055
|
fetch the trading fees for multiple markets
|
1055
1056
|
:see: https://docs.gemini.com/rest-api/#get-notional-volume
|
@@ -1708,7 +1709,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
1708
1709
|
apiKey = self.apiKey
|
1709
1710
|
if apiKey.find('account') < 0:
|
1710
1711
|
raise AuthenticationError(self.id + ' sign() requires an account-key, master-keys are not-supported')
|
1711
|
-
nonce = self.nonce()
|
1712
|
+
nonce = str(self.nonce())
|
1712
1713
|
request = self.extend({
|
1713
1714
|
'request': url,
|
1714
1715
|
'nonce': nonce,
|
ccxt/async_support/hitbtc.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hitbtc import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Leverage, MarginMode, MarginModes, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, Leverage, MarginMode, MarginModes, MarginModification, 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 PermissionDenied
|
@@ -802,7 +802,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
802
802
|
})
|
803
803
|
return result
|
804
804
|
|
805
|
-
async def fetch_currencies(self, params={}):
|
805
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
806
806
|
"""
|
807
807
|
fetches all available currencies on an exchange
|
808
808
|
:see: https://api.hitbtc.com/#currencies
|
@@ -1547,7 +1547,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1547
1547
|
timestamp = self.parse8601(self.safe_string(response, 'timestamp'))
|
1548
1548
|
return self.parse_order_book(response, symbol, timestamp, 'bid', 'ask')
|
1549
1549
|
|
1550
|
-
def parse_trading_fee(self, fee, market: Market = None):
|
1550
|
+
def parse_trading_fee(self, fee, market: Market = None) -> TradingFeeInterface:
|
1551
1551
|
#
|
1552
1552
|
# {
|
1553
1553
|
# "symbol":"ARVUSDT", # returned from fetchTradingFees only
|
@@ -1564,9 +1564,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1564
1564
|
'symbol': symbol,
|
1565
1565
|
'taker': taker,
|
1566
1566
|
'maker': maker,
|
1567
|
+
'percentage': None,
|
1568
|
+
'tierBased': None,
|
1567
1569
|
}
|
1568
1570
|
|
1569
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
1571
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1570
1572
|
"""
|
1571
1573
|
fetch the trading fees for a market
|
1572
1574
|
:see: https://api.hitbtc.com/#get-trading-commission
|
@@ -1595,7 +1597,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1595
1597
|
#
|
1596
1598
|
return self.parse_trading_fee(response, market)
|
1597
1599
|
|
1598
|
-
async def fetch_trading_fees(self, params={}):
|
1600
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1599
1601
|
"""
|
1600
1602
|
fetch the trading fees for multiple markets
|
1601
1603
|
:see: https://api.hitbtc.com/#get-all-trading-commissions
|
@@ -3080,6 +3082,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3080
3082
|
'info': data,
|
3081
3083
|
'symbol': market['symbol'],
|
3082
3084
|
'type': None,
|
3085
|
+
'marginMode': 'isolated',
|
3083
3086
|
'amount': None,
|
3084
3087
|
'total': None,
|
3085
3088
|
'code': self.safe_string(currencyInfo, 'code'),
|
ccxt/async_support/hollaex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hollaex 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, Transaction
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ArgumentsRequired
|
12
12
|
from ccxt.base.errors import BadRequest
|
@@ -328,7 +328,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
328
328
|
})
|
329
329
|
return result
|
330
330
|
|
331
|
-
async def fetch_currencies(self, params={}):
|
331
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
332
332
|
"""
|
333
333
|
fetches all available currencies on an exchange
|
334
334
|
:see: https://apidocs.hollaex.com/#constants
|
@@ -679,7 +679,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
679
679
|
'fee': fee,
|
680
680
|
}, market)
|
681
681
|
|
682
|
-
async def fetch_trading_fees(self, params={}):
|
682
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
683
683
|
"""
|
684
684
|
fetch the trading fees for multiple markets
|
685
685
|
:see: https://apidocs.hollaex.com/#tiers
|
ccxt/async_support/htx.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.htx import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Account, Balances, Currency, Int, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, 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 PermissionDenied
|
@@ -103,6 +103,7 @@ class htx(Exchange, ImplicitAPI):
|
|
103
103
|
'fetchLeverage': False,
|
104
104
|
'fetchLeverageTiers': True,
|
105
105
|
'fetchLiquidations': True,
|
106
|
+
'fetchMarginAdjustmentHistory': False,
|
106
107
|
'fetchMarketLeverageTiers': True,
|
107
108
|
'fetchMarkets': True,
|
108
109
|
'fetchMarkOHLCV': True,
|
@@ -1486,7 +1487,7 @@ class htx(Exchange, ImplicitAPI):
|
|
1486
1487
|
#
|
1487
1488
|
return self.safe_integer_2(response, 'data', 'ts')
|
1488
1489
|
|
1489
|
-
def parse_trading_fee(self, fee, market: Market = None):
|
1490
|
+
def parse_trading_fee(self, fee, market: Market = None) -> TradingFeeInterface:
|
1490
1491
|
#
|
1491
1492
|
# {
|
1492
1493
|
# "symbol":"btcusdt",
|
@@ -1502,9 +1503,11 @@ class htx(Exchange, ImplicitAPI):
|
|
1502
1503
|
'symbol': self.safe_symbol(marketId, market),
|
1503
1504
|
'maker': self.safe_number(fee, 'actualMakerRate'),
|
1504
1505
|
'taker': self.safe_number(fee, 'actualTakerRate'),
|
1506
|
+
'percentage': None,
|
1507
|
+
'tierBased': None,
|
1505
1508
|
}
|
1506
1509
|
|
1507
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
1510
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1508
1511
|
"""
|
1509
1512
|
fetch the trading fees for a market
|
1510
1513
|
:param str symbol: unified market symbol
|
@@ -2987,7 +2990,7 @@ class htx(Exchange, ImplicitAPI):
|
|
2987
2990
|
defaultAccount = self.safe_value(accounts, 0, {})
|
2988
2991
|
return self.safe_string(defaultAccount, 'id')
|
2989
2992
|
|
2990
|
-
async def fetch_currencies(self, params={}):
|
2993
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
2991
2994
|
"""
|
2992
2995
|
fetches all available currencies on an exchange
|
2993
2996
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/huobijp.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.huobijp 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
|
9
|
+
from ccxt.base.types import Account, Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import PermissionDenied
|
@@ -954,7 +954,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
954
954
|
response = await self.privateGetAccountAccounts(params)
|
955
955
|
return response['data']
|
956
956
|
|
957
|
-
async def fetch_currencies(self, params={}):
|
957
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
958
958
|
"""
|
959
959
|
fetches all available currencies on an exchange
|
960
960
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.hyperliquid import ImplicitAPI
|
8
8
|
import asyncio
|
9
|
-
from ccxt.base.types import Balances, Int, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Trade, TransferEntry
|
9
|
+
from ccxt.base.types import Balances, Currencies, Int, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Trade, TransferEntry
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -208,7 +208,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
208
208
|
super(hyperliquid, self).set_sandbox_mode(enabled)
|
209
209
|
self.options['sandboxMode'] = enabled
|
210
210
|
|
211
|
-
async def fetch_currencies(self, params={}):
|
211
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
212
212
|
"""
|
213
213
|
fetches all available currencies on an exchange
|
214
214
|
:see: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-exchange-metadata
|
@@ -2025,6 +2025,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2025
2025
|
'info': data,
|
2026
2026
|
'symbol': self.safe_symbol(None, market),
|
2027
2027
|
'type': None,
|
2028
|
+
'marginMode': 'isolated',
|
2028
2029
|
'amount': None,
|
2029
2030
|
'total': None,
|
2030
2031
|
'code': self.safe_string(market, 'settle'),
|
ccxt/async_support/idex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.idex 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, Transaction
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import BadRequest
|
@@ -609,7 +609,7 @@ class idex(Exchange, ImplicitAPI):
|
|
609
609
|
'fee': fee,
|
610
610
|
}, market)
|
611
611
|
|
612
|
-
async def fetch_trading_fees(self, params={}):
|
612
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
613
613
|
"""
|
614
614
|
fetch the trading fees for multiple markets
|
615
615
|
:see: https://api-docs-v3.idex.io/#get-api-account
|
@@ -712,7 +712,7 @@ class idex(Exchange, ImplicitAPI):
|
|
712
712
|
descending = side == 'bids'
|
713
713
|
return self.sort_by(result, 0, descending)
|
714
714
|
|
715
|
-
async def fetch_currencies(self, params={}):
|
715
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
716
716
|
"""
|
717
717
|
fetches all available currencies on an exchange
|
718
718
|
:see: https://api-docs-v3.idex.io/#get-assets
|
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.independentreserve import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade
|
9
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
12
12
|
from ccxt.base.precise import Precise
|
@@ -586,7 +586,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
586
586
|
response = await self.publicGetGetRecentTrades(self.extend(request, params))
|
587
587
|
return self.parse_trades(response['Trades'], market, since, limit)
|
588
588
|
|
589
|
-
async def fetch_trading_fees(self, params={}):
|
589
|
+
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
590
590
|
"""
|
591
591
|
fetch the trading fees for multiple markets
|
592
592
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/kraken.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.kraken 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, TransferEntry
|
9
|
+
from ccxt.base.types import Balances, Currencies, Currency, IndexType, 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 PermissionDenied
|
@@ -641,7 +641,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
641
641
|
result.append(self.extend(defaults, markets[i]))
|
642
642
|
return result
|
643
643
|
|
644
|
-
async def fetch_currencies(self, params={}):
|
644
|
+
async def fetch_currencies(self, params={}) -> Currencies:
|
645
645
|
"""
|
646
646
|
fetches all available currencies on an exchange
|
647
647
|
:see: https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getAssetInfo
|
@@ -697,7 +697,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
697
697
|
}
|
698
698
|
return result
|
699
699
|
|
700
|
-
async def fetch_trading_fee(self, symbol: str, params={}):
|
700
|
+
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
701
701
|
"""
|
702
702
|
fetch the trading fees for a market
|
703
703
|
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|