Trading Assistant API Documentation - v0.1.0
    Preparing search index...

    Interface PortfolioState

    interface PortfolioState {
        portfolios: Portfolio[];
        currentPortfolio: Portfolio | null;
        positions: Position[];
        trades: Trade[];
        performance: PerformanceMetrics | null;
        performanceHistory: PerformanceMetrics[];
        allocation: AllocationResponse | null;
        recommendations: Recommendation[];
        loading: boolean;
        error: string | null;
        lastUpdated: Date | null;
        selectedPeriod: "week" | "month" | "quarter" | "year" | "all" | "day";
        showClosedPositions: boolean;
        sortBy: "symbol" | "pnl" | "value" | "pnl_pct" | "sector";
        sortDirection: "asc" | "desc";
    }
    Index

    Properties

    portfolios: Portfolio[]
    currentPortfolio: Portfolio | null
    positions: Position[]
    trades: Trade[]
    performance: PerformanceMetrics | null
    performanceHistory: PerformanceMetrics[]
    allocation: AllocationResponse | null
    recommendations: Recommendation[]
    loading: boolean
    error: string | null
    lastUpdated: Date | null
    selectedPeriod: "week" | "month" | "quarter" | "year" | "all" | "day"
    showClosedPositions: boolean
    sortBy: "symbol" | "pnl" | "value" | "pnl_pct" | "sector"
    sortDirection: "asc" | "desc"