ruff
This commit is contained in:
parent
48d86308e3
commit
c459e16571
|
@ -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':
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user