1
0

Turns out: The CCXT ids can be literally anything
All checks were successful
Python Ruff Code Quality / ruff (push) Successful in 23s
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2024-11-15 10:59:13 +01:00
parent 3151b2ee89
commit 3a2b7ebd25
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 1 additions and 6 deletions

View File

@ -268,11 +268,6 @@ class CryptoCurrency(Currency):
ccxt_symbol: str
coingecko_id: str | None = None
def __post_init__(self) -> None:
if not re.match(r'^\S.*\S$', self.ccxt_symbol):
msg = f'ccxt_symbol was not in correct format: {self.ccxt_symbol}'
raise ValueError(msg)
def raw_short_name(self) -> str:
return self.ccxt_symbol

View File

@ -17,6 +17,7 @@ VALID_IDS = [
'crypto:LOLCOIN',
'commodity:ALUMINUM',
'unknown:XXX',
'crypto: ', # CCXT actually found one with only whitespace. Why?
]
@ -41,7 +42,6 @@ INVALID_IDS = [
'fiat:TEST:TEST',
'index:TEST:TEST',
'commodity:TEST:TEST',
'crypto: ',
'!!!!',
'::::',
'',