"""
=========================================
CV6 AI Trading OS
Market Models
=========================================
"""

from pydantic import BaseModel
from typing import Optional


class MarketSymbol(BaseModel):
    exchange: str
    symbol: str
    token: Optional[str] = None


class LTPResponse(BaseModel):
    exchange: str
    symbol: str
    ltp: float
    timestamp: str


class OHLCResponse(BaseModel):
    exchange: str
    symbol: str

    open: float
    high: float
    low: float
    close: float

    volume: int

    timestamp: str