Compare commits
No commits in common. "c37d83107a93ac46351e8e2addc691388806162d" and "00995f85a5e4d985d895f4fa2729d0ade62f6b81" have entirely different histories.
c37d83107a
...
00995f85a5
|
@ -1,3 +1,3 @@
|
|||
# Finance Definitions
|
||||
|
||||
Python library for defining base types for financial work.
|
||||
Python library for defining base types for financial work.
|
|
@ -1,8 +1,3 @@
|
|||
"""# Finance Definitions.
|
||||
|
||||
Python library defining base types for financial processing.
|
||||
"""
|
||||
|
||||
import abc
|
||||
import dataclasses
|
||||
import datetime
|
||||
|
@ -100,11 +95,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 +219,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,7 +283,8 @@ 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'),
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.21'
|
||||
__version__ = '0.1.21'
|
Loading…
Reference in New Issue
Block a user