1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
c37d83107a
Ruff check
All checks were successful
Test Python / Test (push) Successful in 22s
2024-07-08 19:02:44 +02:00
d7c73c95dc
Module docstring 2024-07-08 19:02:28 +02:00
3 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,8 @@
"""# Finance Definitions.
Python library defining base types for financial processing.
"""
import abc
import dataclasses
import datetime
@ -95,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
@ -284,7 +289,6 @@ EXCHANGES = [
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='NYSE Arca', mic='ARCX'),
StockExchange(name='BATS Global Markets', mic='BATS'),
StockExchange(name='NYSE American', mic='XASE'),