Source code for strike_api.models.rates

from __future__ import annotations

from typing import List
import typing

from strike_api.models.generic import StrikeAPIModel


[docs]class Rate(StrikeAPIModel): amount: str source_currency: str target_currency: str
[docs]class Rates(StrikeAPIModel): __root__: List[Rate] def __iter__(self) -> typing.Iterable[Rate]: # type: ignore return iter(self.__root__) def __getitem__(self, index: int): return self.__root__[index]