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

from __future__ import annotations

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


# Каноническая неизменяемая модель одной рыночной свечи OHLCV.
@dataclass(frozen=True, slots=True)
class Candle:
    symbol: str
    interval: str

    open_time: datetime

    open_price: Decimal
    high_price: Decimal
    low_price: Decimal
    close_price: Decimal
    volume: Decimal

    source: str