ruff
This commit is contained in:
parent
48d86308e3
commit
c459e16571
|
@ -55,6 +55,7 @@ class KrakenDepoFetcher(DepoFetcher):
|
||||||
updated_time=now,
|
updated_time=now,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset:
|
def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset:
|
||||||
account = ticker.removesuffix('.HOLD')
|
account = ticker.removesuffix('.HOLD')
|
||||||
if account == 'ZEUR':
|
if account == 'ZEUR':
|
||||||
|
|
|
@ -12,6 +12,7 @@ from .data import DepoFetcher, DepoGroup, DepoSingle, TradeOrderDetails
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset:
|
def parse_asset_from_ticker(ticker: str) -> fin_defs.Asset:
|
||||||
if ticker == 'KCS':
|
if ticker == 'KCS':
|
||||||
return fin_defs.CryptoCurrency('KCS', coingecko_id='kucoin-shares')
|
return fin_defs.CryptoCurrency('KCS', coingecko_id='kucoin-shares')
|
||||||
|
@ -120,7 +121,9 @@ class KucoinDepoFetcher(DepoFetcher):
|
||||||
|
|
||||||
# Convert arguments to kucoin client arguments
|
# Convert arguments to kucoin client arguments
|
||||||
if input_asset == fin_defs.USDT:
|
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'
|
side: str = 'buy'
|
||||||
size = None
|
size = None
|
||||||
funds = str(input_amount)
|
funds = str(input_amount)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user