# generated by datamodel-codegen:
#   filename:  Marketdata/TickersResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from .Ticker import Ticker


class TickersResponse(Struct, omit_defaults=True):
    tickers: List[Ticker]

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        tickers: List[Ticker],
    ):
        return cls(
            tickers,
        )

    def __str__(self) -> str:
        return f"TickersResponse(tickers={self.tickers})"
