1
0
This commit is contained in:
Jon Michael Aanes 2024-11-01 11:14:22 +01:00
parent 48d86308e3
commit c459e16571
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 5 additions and 1 deletions

View File

@ -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':

View File

@ -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)