# app/src/market_data/acquisition/models/quote.py

from __future__ import annotations

from dataclasses import dataclass
from datetime import datetime
from decimal import Decimal


# Независимый от источника снимок текущей рыночной котировки инструмента.
@dataclass(frozen=True, slots=True)
class Quote:
    symbol: str

    last_price: Decimal
    bid_price: Decimal
    ask_price: Decimal

    exchange_timestamp: datetime | None
    received_at: datetime

    source: str