Turns out: The CCXT ids can be literally anything
This commit is contained in:
parent
3151b2ee89
commit
3a2b7ebd25
|
@ -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
|
||||
|
||||
|
|
|
@ -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: ',
|
||||
'!!!!',
|
||||
'::::',
|
||||
'',
|
||||
|
|
Loading…
Reference in New Issue
Block a user