from dataclasses import dataclass
from http import HTTPMethod

from aiomexc.types import Order
from .base import MexcMethod


@dataclass(kw_only=True)
class QueryOrder(MexcMethod):
    __returning__ = Order
    __api_http_method__ = HTTPMethod.GET
    __api_method__ = "order"
    __requires_auth__ = True

    symbol: str
    order_id: str | None
    orig_client_order_id: str | None
