# generated by datamodel-codegen:
#   filename:  OptionsMarketdata/OptionsContractGreeksRequest.json

from __future__ import annotations
from architect_py.grpc.models.OptionsMarketdata.OptionsGreeks import OptionsGreeks

from msgspec import Struct


class OptionsContractGreeksRequest(Struct, omit_defaults=True):
    tradable_product: str

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        tradable_product: str,
    ):
        return cls(
            tradable_product,
        )

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

    @staticmethod
    def get_response_type():
        return OptionsGreeks

    @staticmethod
    def get_unannotated_response_type():
        return OptionsGreeks

    @staticmethod
    def get_route() -> str:
        return "/json.architect.OptionsMarketdata/OptionsContractGreeks"

    @staticmethod
    def get_rpc_method():
        return "unary"
