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

from typing import Any, List, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import FillKind
from .fragments import MarketFields


class GetFills(BaseModel):
    fills: "GetFillsFills"


class GetFillsFills(BaseModel):
    normal: List["GetFillsFillsNormal"]


class GetFillsFillsNormal(BaseModel):
    kind: FillKind
    fill_id: Any = Field(alias="fillId")
    order_id: Optional[Any] = Field(alias="orderId")
    market: "GetFillsFillsNormalMarket"
    dir: Any
    price: Any
    quantity: Any
    recv_time: Optional[Any] = Field(alias="recvTime")
    trade_time: Any = Field(alias="tradeTime")


class GetFillsFillsNormalMarket(MarketFields):
    pass


GetFills.model_rebuild()
GetFillsFills.model_rebuild()
GetFillsFillsNormal.model_rebuild()
