# generated by datamodel-codegen:
#   filename:  Algo/AlgoOrdersResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from .AlgoOrder import AlgoOrder


class AlgoOrdersResponse(Struct, omit_defaults=True):
    algo_orders: List[AlgoOrder]

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

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