1
0

Documetation
All checks were successful
Test and Package Python / Test (push) Successful in 19s
Test and Package Python / Package (push) Successful in 24s

This commit is contained in:
Jon Michael Aanes 2024-05-27 23:32:55 +02:00
parent 144f9ba8ed
commit 3c72b38b15
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -30,6 +30,11 @@ class StockExchange:
@enforce_typing.enforce_types @enforce_typing.enforce_types
@dataclasses.dataclass(frozen=True) @dataclasses.dataclass(frozen=True)
class Asset: class Asset:
"""An identifier representing some abstract financial asset.
Subtypes represent the various asset types in existence, for example fiat
currencies, stocks or even crypto currencies.
"""
def names(self) -> list[str]: def names(self) -> list[str]:
return COMMON_NAMES.get(self, []) return COMMON_NAMES.get(self, [])