diff --git a/fin_depo/defi_kraken.py b/fin_depo/defi_kraken.py index 249f799..32bfa80 100644 --- a/fin_depo/defi_kraken.py +++ b/fin_depo/defi_kraken.py @@ -55,6 +55,7 @@ class KrakenDepoFetcher(DepoFetcher): updated_time=now, ) + def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset: account = ticker.removesuffix('.HOLD') if account == 'ZEUR': diff --git a/fin_depo/defi_kucoin.py b/fin_depo/defi_kucoin.py index 2f7d5c3..fae474e 100644 --- a/fin_depo/defi_kucoin.py +++ b/fin_depo/defi_kucoin.py @@ -12,6 +12,7 @@ from .data import DepoFetcher, DepoGroup, DepoSingle, TradeOrderDetails logger = logging.getLogger(__name__) + def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset: if ticker == 'KCS': return fin_defs.CryptoCurrency('KCS', coingecko_id='kucoin-shares') @@ -120,7 +121,9 @@ class KucoinDepoFetcher(DepoFetcher): # Convert arguments to kucoin client arguments if input_asset == fin_defs.USDT: - symbol: str = f'{output_asset.raw_short_name()}-{input_asset.raw_short_name()}' + symbol: str = ( + f'{output_asset.raw_short_name()}-{input_asset.raw_short_name()}' + ) side: str = 'buy' size = None funds = str(input_amount)