1
0
fin-depo/fin_depo/data.py
Jon Michael Aanes 58b5a204f4
Some checks failed
Test Python / Test (push) Failing after 20s
Kraken and Kucoin depos
2024-05-29 22:29:44 +02:00

24 lines
479 B
Python

import enforce_typing
import dataclasses
from decimal import Decimal
from collections.abc import Mapping
from fin_defs import Asset
import datetime
@enforce_typing.enforce_types
@dataclasses.dataclass
class Depo:
name: str
updated_time: datetime.datetime
@enforce_typing.enforce_types
@dataclasses.dataclass
class DepoSingle(Depo):
assets: Mapping[Asset, Decimal]
@enforce_typing.enforce_types
@dataclasses.dataclass
class DepoGroup(Depo):
nested: list[Depo]