1
0

Ruff check
All checks were successful
Test Python / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2024-07-08 19:02:44 +02:00
parent d7c73c95dc
commit c37d83107a
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 5 additions and 6 deletions

View File

@ -100,11 +100,11 @@ class CryptoCurrency(Currency):
coingecko_id: str | None
def __post_init__(self):
'''TODO
"""TODO
if not re.match(RE_CRYPTO_TICKER_FORMAT, self.ccxt_symbol):
msg = f'ccxt_symbol was not in correct format: {self.ccxt_symbol}'
raise ValueError(msg)
'''
"""
def __str__(self):
return self.ccxt_symbol
@ -224,7 +224,7 @@ WELL_KNOWN_SYMBOLS = (
'CZK',
]
}
| { 'XXBT': BTC }
| {'XXBT': BTC}
| {str(k): k for k in COMMON_NAMES}
| {'SPX500': SPX, 'SP500': SPX, 'Nasdaq 100': NDX}
)
@ -288,8 +288,7 @@ EXCHANGES = [
StockExchange(name='Australian Securities Exchange', mic='XASX'),
StockExchange(name='Johannesburg Stock Exchange', mic='XJSE'),
StockExchange(name='Tehran Stock Exchange', mic='XTEH'),
StockExchange(name='Over The Counter (Unlisted)', mic='OTC'), # TODO: Unofficial
StockExchange(name='Over The Counter (Unlisted)', mic='OTC'), # TODO: Unofficial
StockExchange(name='NYSE Arca', mic='ARCX'),
StockExchange(name='BATS Global Markets', mic='BATS'),
StockExchange(name='NYSE American', mic='XASE'),

View File

@ -1 +1 @@
__version__ = '0.1.21'
__version__ = '0.1.21'