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

from __future__ import annotations

from typing import List

from msgspec import Struct

from .Candle import Candle


class HistoricalCandlesResponse(Struct, omit_defaults=True):
    candles: List[Candle]

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

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