# src/shared/schemas/broker.py
from pydantic import BaseModel
from typing import Dict, Any, Optional

class Position(BaseModel):
    symbol: str
    position_id: str
    qty: float
    avg_entry: float

class BrokerSnapshot(BaseModel):
    initial_cash: float
    cash: float
    commission_rate: float
    slippage_rate: float
    realized_pnl: float
    equity: float
    positions: Dict[str, Position]
    last_price: Dict[str, float]
    trades_count: int
    updated_at: str
