# Generated by ariadne-codegen
# Source: queries.graphql

from datetime import datetime
from decimal import Decimal
from typing import Annotated, Optional

from pydantic import BeforeValidator

from architect_py.common_types import OrderDir
from architect_py.common_types.order_dir import graphql_parse_order_dir

from .base_model import BaseModel


class SubscribeTrades(BaseModel):
    trades: "SubscribeTradesTrades"


class SubscribeTradesTrades(BaseModel):
    timestamp: Optional[datetime]
    direction: Optional[Annotated[OrderDir, BeforeValidator(graphql_parse_order_dir)]]
    price: Decimal
    size: Decimal


SubscribeTrades.model_rebuild()
