Compare commits
3 Commits
30df480c9d
...
326702a680
Author | SHA1 | Date | |
---|---|---|---|
326702a680 | |||
d7e564f3cc | |||
a7c6f83955 |
|
@ -3,15 +3,15 @@
|
||||||
Python library defining base types for financial processing.
|
Python library defining base types for financial processing.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import abc
|
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
from collections.abc import Iterator
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
import enforce_typing
|
import enforce_typing
|
||||||
|
|
||||||
|
from ._version import __version__ # noqa: F401
|
||||||
|
|
||||||
## Ids
|
## Ids
|
||||||
|
|
||||||
RE_TICKER_FORMAT = r'^[A-Z0-9_]+$'
|
RE_TICKER_FORMAT = r'^[A-Z0-9_]+$'
|
||||||
|
@ -176,6 +176,7 @@ BTC = CryptoCurrency('BTC', coingecko_id='bitcoin')
|
||||||
MPC = CryptoCurrency('MPC', coingecko_id='partisia-blockchain')
|
MPC = CryptoCurrency('MPC', coingecko_id='partisia-blockchain')
|
||||||
SPX = Index('SPX')
|
SPX = Index('SPX')
|
||||||
NDX = Index('NDX')
|
NDX = Index('NDX')
|
||||||
|
USDT = CryptoCurrency('USDT', 'tether')
|
||||||
|
|
||||||
COMMON_NAMES: dict[Asset, list[str]] = {
|
COMMON_NAMES: dict[Asset, list[str]] = {
|
||||||
FiatCurrency('USD'): ['U.S. Dollar'],
|
FiatCurrency('USD'): ['U.S. Dollar'],
|
||||||
|
@ -203,7 +204,7 @@ COMMON_NAMES: dict[Asset, list[str]] = {
|
||||||
# Stable-coins
|
# Stable-coins
|
||||||
CryptoCurrency('DAI', 'dai'): ['DAI'],
|
CryptoCurrency('DAI', 'dai'): ['DAI'],
|
||||||
CryptoCurrency('USDC', 'usdc'): ['USD Coin'],
|
CryptoCurrency('USDC', 'usdc'): ['USD Coin'],
|
||||||
CryptoCurrency('USDT', 'tether'): ['Tether USDT'],
|
USDT: ['Tether USDT'],
|
||||||
}
|
}
|
||||||
|
|
||||||
WELL_KNOWN_SYMBOLS = (
|
WELL_KNOWN_SYMBOLS = (
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.27'
|
__version__ = '0.1.28'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user