from typing import Optional


class CurrencyUnit:
  name: str
  rate: float
  symbol: Optional[str]
  precision: Optional[float]


# ----------------------------------------
# Data Transfer Object Interface
# ----------------------------------------


class CurrencyUnitDto:
  name: str
  rate: float
  symbol: Optional[str]
  precision: Optional[float]
